/**
 * FlavaFlix Header & Footer Improvements
 * Clean, modern styling upgrade
 */

/* ========== HEADER IMPROVEMENTS ========== */
#wrapper > header {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#topNavUpper {
    background: transparent;
    padding: 0;
}

#headerLogo {
    background: transparent !important;
    padding: 8px 15px;
    display: flex;
    align-items: center;
}

#headerLogo a {
    background-image: url('/images/flavaflix_logo.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    min-width: 200px;
}

/* Search bar styling */
#topMenu input[type="search"],
#topMenu input[type="text"],
.search-input {
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    border-radius: 6px !important;
    color: #fff !important;
    padding: 8px 14px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

#topMenu input[type="search"]:focus,
#topMenu input[type="text"]:focus,
.search-input:focus {
    border-color: #ff0000 !important;
    box-shadow: 0 0 0 2px rgba(255,0,0,0.2) !important;
    outline: none !important;
}

/* Navigation menu items */
#topNavLower {
    background: linear-gradient(180deg, #252525 0%, #1a1a1a 100%);
    border-top: 1px solid #333;
}

#topNavLower .nav-link,
#topMenuItems .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 12px 18px !important;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

#topNavLower .nav-link:hover,
#topMenuItems .nav-link:hover {
    color: #ff0000 !important;
    background: rgba(255,0,0,0.1) !important;
}

/* User menu dropdown */
#userMenu .dropdown-toggle {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s;
}

#userMenu .dropdown-toggle:hover {
    background: rgba(255,255,255,0.1);
}

#userMenu .dropdown-menu {
    background: #1a1a1a !important;
    border: 1px solid #ff0000 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
}

#userMenu .dropdown-item {
    color: #ccc !important;
    padding: 10px 20px !important;
    transition: all 0.2s;
}

#userMenu .dropdown-item:hover {
    background: rgba(255,0,0,0.15) !important;
    color: #fff !important;
}

/* ========== FOOTER IMPROVEMENTS ========== */
#pageFooter {
    background: linear-gradient(180deg, #0d0d0d 0%, #000 100%);
    border-top: 3px solid #ff0000;
    padding: 30px 20px 20px !important;
    margin-top: 40px;
}

#bottomLogo {
    margin-bottom: 15px;
}

#bottomLogo img {
    max-width: 180px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.2s;
}

#bottomLogo img:hover {
    opacity: 1;
}

#twitterWidget {
    margin: 10px 0;
}

#twitterWidget a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1da1f2;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

#twitterWidget a:hover {
    background: #0c85d0;
    transform: translateY(-1px);
}

#footerContent {
    padding: 15px 0 !important;
    border-bottom: 1px solid #222;
    margin-bottom: 15px;
}

#footerContent p {
    color: #888 !important;
    font-size: 0.85em !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

#footerContent a {
    color: #ff0000 !important;
    text-decoration: none;
    transition: color 0.2s;
}

#footerContent a:hover {
    color: #ff4444 !important;
    text-decoration: underline;
}

#footerLinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 10px 0 !important;
    margin: 0 !important;
}

#footerLinks a {
    color: #aaa !important;
    font-size: 0.85em;
    padding: 6px 12px !important;
    transition: all 0.2s;
    border-radius: 4px;
}

#footerLinks a:hover {
    color: #ff0000 !important;
    background: rgba(255,0,0,0.1);
}

/* Star rating in footer */
#footerLinks img[src*="stars"] {
    vertical-align: middle;
    margin: 0 5px;
    filter: brightness(1.1);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 991px) {
    #pageFooter {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 15px !important;
    }
    
    #bottomLogo {
        order: 1;
        margin-bottom: 20px;
    }
    
    #twitterWidget {
        order: 2;
        margin-bottom: 20px;
    }
    
    #footerContent {
        order: 3;
        width: 100%;
    }
    
    #footerLinks {
        order: 4;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    #headerLogo {
        padding: 5px 10px;
    }
    
    #headerLogo a {
        min-width: 150px;
        background-size: contain !important;
    }
    
    #footerLinks a {
        padding: 8px 10px !important;
        font-size: 0.8em;
    }
}

/* ========== LOGO AREA FIX ========== */
#headerLogo {
    background: #000 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
}

#headerLogo a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 15px !important;
    background: #000 !important;
}

#topNavUpper {
    background: #000 !important;
}

#wrapper > header {
    background: #000 !important;
}

/* Remove gradient from header area */
#topMenu {
    background: #000 !important;
}

/* Nav bar background */
#topNavLower {
    background: #333 !important;
}

/* ========== LOGO FIX ========== */
#headerLogo {
    background: #000 !important;
    flex: 0 0 auto !important;
    min-height: 80px !important;
}

#headerLogo a {
    background-color: #000 !important;
    background-image: url('/images/flavaflix_logo.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;
    min-width: 220px !important;
    min-height: 70px !important;
    display: block !important;
}
