/* ========================================
   BEFINDX HEADER STYLES
   Prefix: bfx-header-
   ======================================== */

/* Navbar Container */
.bfx-header-navbar {
    background: var(--bfx-bg-primary);
    box-shadow: var(--bfx-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all var(--bfx-transition-normal);
}

.bfx-header-navbar-scrolled {
    box-shadow: var(--bfx-shadow-md);
    backdrop-filter: blur(10px);
    background: rgba(var(--bfx-bg-primary-rgb), 0.9);
}

/* Logo */
.bfx-header-logo {
    font-size: var(--bfx-font-size-2xl);
    font-weight: bold;
}

.bfx-header-logo-link {
    display: flex;
    align-items: center;
    gap: var(--bfx-spacing-2);
    color: var(--bfx-text-primary);
}

.bfx-header-logo-icon {
    font-size: var(--bfx-font-size-3xl);
    color: var(--bfx-primary);
}

/* Search Form */
.bfx-header-search {
    flex: 1;
    max-width: 500px;
}

.bfx-header-search-form {
    position: relative;
    width: 100%;
}

.bfx-header-search-icon {
    position: absolute;
    left: var(--bfx-spacing-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--bfx-text-light);
}

.bfx-header-search-input {
    width: 100%;
    padding: var(--bfx-spacing-3) var(--bfx-spacing-4) var(--bfx-spacing-3) var(--bfx-spacing-10);
    border: 1px solid var(--bfx-border-light);
    border-radius: var(--bfx-radius-xl);
    background: var(--bfx-bg-tertiary);
    color: var(--bfx-text-primary);
    transition: all var(--bfx-transition-fast);
}

.bfx-header-search-input:focus {
    outline: none;
    border-color: var(--bfx-primary);
    box-shadow: 0 0 0 3px rgba(243, 167, 44, 0.1);
    background: var(--bfx-bg-primary);
}

.bfx-header-search-btn {
    position: absolute;
    right: var(--bfx-spacing-2);
    top: 50%;
    transform: translateY(-50%);
    padding: var(--bfx-spacing-1) var(--bfx-spacing-3);
    background: var(--bfx-primary);
    color: white;
    border: none;
    border-radius: var(--bfx-radius-lg);
    font-size: var(--bfx-font-size-sm);
    cursor: pointer;
    transition: all var(--bfx-transition-fast);
}

.bfx-header-search-btn:hover {
    background: var(--bfx-primary-dark);
}

/* Navigation Links */
.bfx-header-nav-links {
    display: flex;
    gap: var(--bfx-spacing-8);
}

.bfx-header-nav-link {
    color: var(--bfx-text-secondary);
    transition: color var(--bfx-transition-fast);
    position: relative;
}

.bfx-header-nav-link:hover {
    color: var(--bfx-primary);
}

.bfx-header-nav-link-active {
    color: var(--bfx-primary);
}

.bfx-header-nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--bfx-primary);
}

/* Auth Buttons */
.bfx-header-auth {
    display: flex;
    gap: var(--bfx-spacing-3);
}

.bfx-header-login-btn {
    padding: var(--bfx-spacing-2) var(--bfx-spacing-4);
    border: 1px solid var(--bfx-primary);
    border-radius: var(--bfx-radius-lg);
    color: var(--bfx-primary);
    background: transparent;
    transition: all var(--bfx-transition-fast);
}

.bfx-header-login-btn:hover {
    background: var(--bfx-primary-light);
}

.bfx-header-signup-btn {
    padding: var(--bfx-spacing-2) var(--bfx-spacing-4);
    background: var(--bfx-primary);
    border-radius: var(--bfx-radius-lg);
    color: white;
    transition: all var(--bfx-transition-fast);
}

.bfx-header-signup-btn:hover {
    background: var(--bfx-primary-dark);
    transform: translateY(-2px);
}

/* User Menu */
.bfx-header-user-menu {
    position: relative;
}

.bfx-header-user-btn {
    display: flex;
    align-items: center;
    gap: var(--bfx-spacing-2);
    padding: var(--bfx-spacing-2);
    cursor: pointer;
    color: var(--bfx-text-primary);
    background: transparent;
    border: none;
}

.bfx-header-user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: var(--bfx-spacing-2);
    width: 200px;
    background: var(--bfx-bg-primary);
    border: 1px solid var(--bfx-border-light);
    border-radius: var(--bfx-radius-lg);
    box-shadow: var(--bfx-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--bfx-transition-fast);
    z-index: 50;
}

.bfx-header-user-menu:hover .bfx-header-user-dropdown {
    opacity: 1;
    visibility: visible;
}

.bfx-header-dropdown-item {
    display: block;
    padding: var(--bfx-spacing-2) var(--bfx-spacing-4);
    color: var(--bfx-text-secondary);
    transition: all var(--bfx-transition-fast);
}

.bfx-header-dropdown-item:hover {
    background: var(--bfx-primary-light);
    color: var(--bfx-primary);
}

/* Mobile Menu */
.bfx-header-mobile-btn {
    display: none;
    width: 50px;
    height: 50px;
    background: var(--bfx-primary);
    border-radius: var(--bfx-radius-full);
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: var(--bfx-shadow-lg);
}

.bfx-header-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--bfx-bg-primary);
    box-shadow: var(--bfx-shadow-xl);
    transform: translateX(100%);
    transition: transform var(--bfx-transition-normal);
    z-index: 100;
}

.bfx-header-sidebar-open {
    transform: translateX(0);
}

.bfx-header-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--bfx-spacing-6);
    border-bottom: 1px solid var(--bfx-border-light);
}

.bfx-header-sidebar-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bfx-radius-full);
    background: var(--bfx-bg-tertiary);
    cursor: pointer;
}

.bfx-header-sidebar-links {
    padding: var(--bfx-spacing-6);
    display: flex;
    flex-direction: column;
    gap: var(--bfx-spacing-4);
}

/* Hero Slider - FIXED BUTTON OVERLAP */
.bfx-master-slider {
    position: relative;
    height: 90vh;
    min-height: 700px;
    width: 100%;
    overflow: hidden;
    background: #000;
    margin-bottom: 0;
}

.bfx-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.bfx-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.bfx-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.bfx-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.bfx-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bfx-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bfx-slide.active .bfx-slide-bg img {
    transform: scale(1);
}

.bfx-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
}

.bfx-slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    /* Add bottom padding to prevent button overlap */
    padding-bottom: 120px;
}

.bfx-slide.active .bfx-slide-content {
    transform: translateY(0);
    opacity: 1;
}

/* Slide Meta */
.bfx-slide-meta {
    margin-bottom: 30px;
}

.bfx-slide-category {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.bfx-slide-rating {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.bfx-slide-rating i {
    color: #ffd700;
    margin-right: 2px;
}

.bfx-slide-rating span {
    margin-left: 8px;
}

/* Slide Title */
.bfx-slide-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.bfx-gradient-text {
    background: linear-gradient(135deg, var(--bfx-primary), #ffd700, var(--bfx-primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: bfx-gradient-shift 3s ease infinite;
}

@keyframes bfx-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Description */
.bfx-slide-description {
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 35px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

/* Buttons */
.bfx-slide-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.bfx-btn-primary-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--bfx-primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(243,167,44,0.3);
}

.bfx-btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(243,167,44,0.5);
    gap: 15px;
}

.bfx-btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.bfx-btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* Thumbnail Strip - MOVED UP TO AVOID OVERLAP */
.bfx-thumbnail-strip {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.bfx-thumbnail-track {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    pointer-events: auto;
    padding: 0 20px;
}

.bfx-thumbnail {
    position: relative;
    width: 100px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.bfx-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bfx-thumbnail:hover img {
    transform: scale(1.1);
}

.bfx-thumbnail.active {
    border-color: var(--bfx-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.bfx-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    transition: background 0.3s ease;
}

.bfx-thumbnail.active .bfx-thumbnail-overlay {
    background: rgba(243,167,44,0.3);
}

.bfx-thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Scroll Hint */
.bfx-scroll-hint {
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    cursor: pointer;
}

.bfx-scroll-text {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.bfx-scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.bfx-scroll-wheel {
    width: 3px;
    height: 8px;
    background: white;
    border-radius: 2px;
    margin-top: 8px;
    animation: bfx-scroll-wheel 2s ease infinite;
}

@keyframes bfx-scroll-wheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(5px); opacity: 0.5; }
}

/* Progress Indicator */
.bfx-progress-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.2);
    z-index: 30;
}

.bfx-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--bfx-primary);
    transition: width 0.1s linear;
}

/* Slide Counter */
.bfx-slide-counter {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 30;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 30px;
    letter-spacing: 2px;
}

.bfx-counter-sep {
    margin: 0 5px;
    color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .bfx-header-nav-links,
    .bfx-header-auth {
        display: none;
    }
    
    .bfx-header-mobile-btn {
        display: flex;
    }
    
    .bfx-header-search {
        order: 3;
        margin-top: var(--bfx-spacing-3);
        max-width: 100%;
    }
    
    .bfx-master-slider {
        height: 80vh;
        min-height: 600px;
    }
    
    .bfx-slide-title {
        font-size: 2rem;
    }
    
    .bfx-slide-description {
        font-size: 0.9rem;
        padding: 0 20px;
    }
    
    .bfx-slide-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .bfx-btn-primary-glow,
    .bfx-btn-outline-light {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .bfx-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .bfx-thumbnail-label {
        font-size: 0.55rem;
        padding: 3px;
    }
    
    .bfx-thumbnail-track {
        gap: 8px;
    }
    
    .bfx-scroll-text {
        display: none;
    }
    
    .bfx-slide-counter {
        bottom: 20px;
        right: 20px;
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .bfx-slide-meta {
        margin-bottom: 20px;
    }
    
    /* MORE SPACE FOR BUTTONS ON MOBILE */
    .bfx-slide-content {
        padding-bottom: 100px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bfx-header-search {
        max-width: 300px;
    }
    
    .bfx-slide-title {
        font-size: 3rem;
    }
    
    .bfx-thumbnail {
        width: 80px;
        height: 55px;
    }
}

/* Hover effects */
.bfx-thumbnail:hover {
    transform: translateY(-3px);
}