/**
 * PornHub-Style Header
 * Exact replica of the design shown
 */

/* ===== HEADER CONTAINER ===== */
.header {
    background: #000 !important;
    padding: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

.header .container {
    display: none !important; /* Hide old header container */
}

.header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    max-width: 100% !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

/* ===== MENU ICON (Orange Hamburger) ===== */
.menu-icon {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.menu-icon:active {
    background: rgba(255, 255, 255, 0.1);
}

.menu-icon span {
    width: 24px;
    height: 3px;
    background: #ff9000;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Menu open animation */
.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== LOGO (Center) ===== */
.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    letter-spacing: -0.5px;
}

.header-logo a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.logo-porn {
    color: white;
}

.logo-hub {
    background: #ff9000;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 2px;
}

/* ===== SEARCH ICON ===== */
.search-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.search-icon:active {
    background: rgba(255, 255, 255, 0.1);
}

.search-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

/* ===== SLIDE-OUT MENU ===== */
.slide-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #1a1a1a;
    z-index: 9999;
    transition: left 0.3s ease-out;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.5);
}

.slide-menu.active {
    left: 0;
}

.menu-header {
    padding: 20px;
    background: #000;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.menu-close {
    font-size: 28px;
    color: white;
    cursor: pointer;
    line-height: 1;
}

.menu-title {
    display: none; /* Hide "Menu" text */
}

.menu-items {
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-item {
    border-bottom: 1px solid #2a2a2a;
}

.menu-item a {
    display: block;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
}

.menu-item a:hover,
.menu-item a:active {
    background: #2a2a2a;
}

.menu-item.active a {
    background: #2a2a2a;
    color: #ff9000;
}

/* Menu divider */
.menu-divider {
    height: 8px;
    background: #000;
    border: none;
}

/* View toggle button - REMOVED */
.menu-item.view-toggle {
    display: none !important; /* Hide view toggle completely */
}

.view-toggle-btn {
    display: none !important;
}

/* ===== MENU OVERLAY ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    padding-top: 60px;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: white;
    cursor: pointer;
}

.search-input-large {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    color: white;
    outline: none;
}

.search-input-large:focus {
    border-color: #ff9000;
}

.search-suggestions {
    margin-top: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.search-suggestion {
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.2s;
}

.search-suggestion:hover {
    background: #2a2a2a;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 12px;
    }
    
    .header-logo {
        font-size: 20px;
    }
    
    .menu-icon,
    .search-icon {
        width: 36px;
        height: 36px;
    }
}

/* ===== SECTION HEADINGS (NOT STICKY) ===== */
.section-header {
    display: none !important; /* Hide all section headers */
}

/* Categories page - no sticky header */
.categories-section .section-header {
    position: static !important;
    top: auto !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.categories-page-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    padding: 0;
}

@media (max-width: 768px) {
    .categories-page-title {
        display: none;
    }
}

.section-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    flex: 1;
    min-width: 150px;
}

.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-bar label {
    color: #999;
    font-size: 14px;
}

.sort-select {
    background: #2a2a2a;
    color: white;
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: #ff9000;
}

/* ===== 1 COLUMN VIEW - REMOVED ===== */
/* View toggle feature removed */

/* ===== BLUE OVERLAY ANIMATION ===== */
@keyframes blueWave {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(102, 126, 234, 0.3), 
        transparent
    );
    pointer-events: none;
    transition: left 0.6s ease;
}

.video-card:hover::after,
.video-card:active::after {
    animation: blueWave 0.6s ease;
}

/* ===== PAGE HEADING ===== */
.page-heading {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: bold !important;
    margin: 20px 0 15px 0 !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .page-heading {
        font-size: 20px !important;
        margin: 15px 0 12px 0 !important;
    }
}

/* ===== TAGS BAR (BELOW HEADING) ===== */
.tags-bar-content {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

.tags-scroll {
    display: flex !important;
    gap: 10px !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
    white-space: nowrap !important;
    margin: 0 !important;
}

.tags-scroll::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
}

.tag-pill {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: #ff9000 !important;
    color: #000 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    border: none !important;
    margin: 0 !important;
    border-radius: 20px !important;
}

/* Blue background on hover/click */
.tag-pill:hover,
.tag-pill:active {
    background: #1e90ff !important;
    color: #fff !important;
    transform: scale(1.05) !important;
}

/* Active tag (when on tag page) */
.tag-pill.active {
    background: #1e90ff !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .tags-bar-content {
        margin: 0 0 15px 0 !important;
    }
}

/* ===== DESKTOP NAVIGATION ===== */
.desktop-nav {
    display: none;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 12px 0;
}

.desktop-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    padding: 0 20px;
    align-items: center;
}

.desktop-nav .nav-link {
    color: #ccc;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: #2a2a2a;
    border-radius: 25px;
    border: none;
}

.desktop-nav .nav-link:hover {
    background: #3a3a3a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.desktop-nav .nav-link.active {
    background: #1e90ff;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

/* ===== DESKTOP ADJUSTMENTS ===== */
@media (min-width: 769px) {
    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 12px 20px;
    }
    
    .slide-menu {
        width: 320px;
        left: -320px;
    }
    
    .section-header {
        top: 110px; /* Below header + desktop nav */
        margin: 0 0 20px 0;
        padding: 16px 0;
    }
    
    .desktop-nav {
        display: block;
    }
    
    /* Hide mobile menu icon on desktop */
    .menu-icon {
        display: none;
    }
    
    /* Desktop: Logo STAYS CENTERED */
    .header-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .search-icon {
        margin-left: auto;
    }
}
