/* ============================================
   UNIVERSAL HEADER STYLES
   Based on profile.css header section
   ============================================ */

/* Main Header Container */
.header {
    background: #000000;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1200px;
    width: calc(100% - 30px);
    z-index: 100;
    height: 20px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Logo Section */
.header .logo {
    display: flex;
    align-items: center;
}

.header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header .logo img {
    height: 35px;
    width: auto;
}

/* Films Section Line (optional decorative line below header) */
.films-section-line {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ff5f3d 50%, transparent 100%);
    max-width: 1200px;
    margin: 0 auto;
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    z-index: 99;
}

/* Header Menu */
.header .menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header .menu ul {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.header .menu ul li {
    margin: 0;
    padding: 0;
}

.header .menu ul li a {
    display: block;
    padding: 10px 10px;
    color: #888888;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .2em;
    transition: color 0.2s;
}

.header .menu ul li a:hover {
    color: #ffffff;
}

.header .menu ul li a.active {
    color: #ff0000;
    font-weight: bold;
}

/* User Section */
.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Login Button (for non-authenticated users) */
.header-login-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.header-login-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ff5f3d;
    color: #ff5f3d;
}

/* Profile Section (for authenticated users) */
.header-profile {
    position: relative;
}

.header-profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5f3d 0%, #ff8a65 100%);
    border: 2px solid #2a2a2a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s;
}

.header-profile-btn:hover {
    border-color: #ff5f3d;
    transform: scale(1.05);
}

.header-profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Dropdown Menu */
.header-profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    min-width: 200px;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.header-profile-dropdown.active {
    display: block;
}

.header-profile-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 1px solid #2a2a2a;
}

.header-profile-dropdown a:last-child {
    border-bottom: none;
}

.header-profile-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.header-profile-dropdown a.logout {
    color: #ff5f3d;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .header {
        padding: 15px;
    }
    
    .films-section-line {
        top: 50px;
    }
    
    .header .menu ul {
        gap: 0;
    }
    
    .header .menu ul li a {
        padding: 10px 8px;
        font-size: 10px;
    }
    
    .header-login-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .header .menu ul li a {
        padding: 8px 6px;
        font-size: 9px;
        letter-spacing: .1em;
    }
    
    .header-profile-dropdown {
        min-width: 180px;
        right: -10px;
    }
}

