/* VFM Specific Styles - Extends V13 */

/* V13 Navigation Styles (from original) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Righteous', cursive;
    font-size: 24px;
    color: #ED1C24;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.logo img {
    height: 48px;
}

.logo:hover {
    transform: scale(1.02);
}

.menu-hint {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: #ED1C24;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
}

.menu-hint-hidden {
    opacity: 0;
}

.countdown-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.countdown-label {
    font-size: 11px;
    color: #6C757D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.countdown-display {
    display: flex;
    gap: 12px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-family: 'Righteous', cursive;
    font-size: 24px;
    color: #ED1C24;
    line-height: 1;
}

.countdown-unit {
    font-size: 10px;
    color: #6C757D;
    text-transform: uppercase;
}

.nav-menu {
    position: fixed;
    top: 60px;
    left: -280px;
    width: 280px;
    height: calc(100vh - 60px);
    background: #FFFFFF;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 24px;
    align-items: flex-start;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    margin: 0;
}

.nav-menu.active {
    left: 0;
}

.nav-menu li {
    width: 100%;
    margin: 0;
}

.nav-menu a {
    font-weight: 500;
    color: #1A1A1A;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
}

.nav-menu a:not(.btn-register):hover {
    color: #ED1C24;
}

.btn-register {
    background: linear-gradient(135deg, #ED1C24, #C41318);
    color: #FFFFFF;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.3);
    text-align: center;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 28, 36, 0.4);
    color: #FFFFFF;
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
    .countdown-timer {
        display: none;
    }
}

/* VFM Header */
.vfm-header {
    background: linear-gradient(135deg, #053c7d, #002147);
    color: white;
    padding: 40px 24px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 40px;
}

.header-left {
    flex: 1;
}

.header-left h1 {
    font-family: 'Righteous', cursive;
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 12px;
}

.header-right {
    min-width: 400px;
}

.login-compact {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 8px;
}

.login-inputs-compact {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.login-inputs-compact input {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9);
}

.btn-login {
    background: #ED1C24;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-login:hover {
    background: #C41318;
}

.login-compact small {
    font-size: 11px;
    opacity: 0.9;
}

.user-compact {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-compact span {
    flex: 1;
    font-size: 14px;
}

.vfm-header h1 {
    font-family: 'Righteous', cursive;
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 12px;
}

.vfm-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.vfm-bgg-link {
    margin-bottom: 20px;
}

.vfm-bgg-link a {
    color: white;
    text-decoration: underline;
    font-size: 16px;
    transition: opacity 0.3s;
}

.vfm-bgg-link a:hover {
    opacity: 0.8;
}

.vfm-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.vfm-stats span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Main Layout */
.vfm-main {
    padding: 40px 0;
    background: #F8F9FA;
    min-height: calc(100vh - 280px);
}

.vfm-main .container {
    max-width: 1400px;
}

/* Horizontal Filters */
.vfm-filters-horizontal {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
}

/* Letter Navigation */
.letter-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 2px solid #E9ECEF;
}

.letter-btn {
    background: white;
    border: 2px solid #E9ECEF;
    color: #053c7d;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    min-width: 30px;
}

.letter-btn:hover {
    border-color: #053c7d;
    background: #F8F9FA;
}

.letter-btn.active {
    background: #053c7d;
    color: white;
    border-color: #053c7d;
}

.filter-row-main {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
}

.filter-row-advanced {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-item label {
    font-weight: 600;
    font-size: 13px;
    color: #1A1A1A;
}

.filter-item input,
.filter-item select {
    padding: 10px 12px;
    border: 2px solid #E9ECEF;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: #053c7d;
}

.filter-search {
    flex: 2;
    min-width: 300px;
}

.search-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #053c7d;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background: #F8F9FA;
}

.autocomplete-item strong {
    color: #ED1C24;
}

.price-inputs-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-inputs-inline input {
    flex: 1;
    min-width: 80px;
}

.price-inputs-inline span {
    color: #6C757D;
}

.filter-item small {
    font-size: 11px;
    color: #6C757D;
    margin-top: 4px;
}

/* Advanced Filters Section */
.advanced-filters {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #E9ECEF;
}

.block-sellers-section {
    margin-top: 20px;
}

.block-sellers-section h4 {
    font-family: 'Righteous', cursive;
    font-size: 16px;
    color: #053c7d;
    margin-bottom: 12px;
}

#blockedSellersList {
    margin-top: 8px;
    min-height: 20px;
}

.blocked-seller-tag {
    display: inline-block;
    background: #E9ECEF;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    margin: 4px 4px 4px 0;
}

.blocked-seller-tag button {
    background: none;
    border: none;
    color: #ED1C24;
    font-weight: bold;
    margin-left: 8px;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: white;
    color: #053c7d;
    padding: 10px 20px;
    border: 2px solid #053c7d;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    font-size: 14px;
}

.btn-primary:hover {
    background: #053c7d;
    color: white;
}

.btn-secondary {
    background: white;
    color: #053c7d;
    padding: 10px 20px;
    border: 2px solid #053c7d;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #053c7d;
    color: white;
}

/* Content Area */
.vfm-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.vfm-toolbar {
    padding: 20px 24px;
    background: #F8F9FA;
    border-bottom: 2px solid #E9ECEF;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vfm-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vfm-pagination label {
    font-weight: 600;
    font-size: 14px;
}

.vfm-pagination select {
    padding: 8px 12px;
    border: 2px solid #E9ECEF;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

#toggleFiltersBtn {
    display: none;
    width: auto;
    padding: 10px 20px;
}

.vfm-count {
    font-weight: 600;
    color: #6C757D;
}

/* Items Display */
.vfm-items {
    padding: 24px;
}

.loading {
    text-align: center;
    padding: 60px 24px;
    color: #6C757D;
    font-size: 18px;
}

/* Item Cards - Compact Design */
.item-card-compact {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    border: 2px solid #E9ECEF;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 12px;
}

.item-card-compact:hover {
    border-color: #ED1C24;
    box-shadow: 0 4px 16px rgba(237, 28, 36, 0.15);
    transform: translateY(-2px);
}

.item-line-1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.item-game-link {
    font-family: 'Righteous', cursive;
    font-size: 18px;
    color: #053c7d;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.item-game-link:hover {
    border-bottom-color: #053c7d;
}

.item-meta-inline {
    font-size: 14px;
    color: #6C757D;
    flex: 1;
}

.item-meta-inline strong {
    color: #1A1A1A;
}

.item-price-inline {
    font-size: 20px;
    font-weight: 700;
    color: #ED1C24;
    font-family: 'Righteous', cursive;
    margin-left: auto;
}

.item-description-long {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.item-card {
    background: white;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.item-card:hover {
    border-color: #ED1C24;
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    gap: 12px;
}

.item-game-info {
    flex: 1;
}

.item-price-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.item-game-name {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.item-bgg-link {
    color: #053c7d;
    font-size: 13px;
    text-decoration: underline;
}

.item-price {
    font-size: 24px;
    font-weight: 700;
    color: #ED1C24;
    font-family: 'Righteous', cursive;
}

.btn-interest {
    background: #053c7d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-interest:hover {
    background: #042a5a;
}

.btn-interest.interested {
    background: #ED1C24;
}

.btn-interest.interested:hover {
    background: #C41318;
}

.item-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 14px;
}

.item-meta span {
    padding: 4px 12px;
    background: #F8F9FA;
    border-radius: 16px;
}

.item-seller {
    color: #053c7d;
    font-weight: 600;
}

.item-description {
    color: #6C757D;
    line-height: 1.6;
    margin-top: 12px;
}

/* Grouped Views */
.group-section {
    margin-bottom: 32px;
}

.group-header {
    font-family: 'Righteous', cursive;
    font-size: 24px;
    color: #053c7d;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row-main {
        flex-direction: column;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .login-inputs {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .vfm-header {
        padding: 24px 16px;
    }
    
    .vfm-items {
        padding: 16px;
    }
    
    .item-card {
        padding: 16px;
    }
    
    .item-header {
        flex-direction: column;
        gap: 8px;
    }
}
