/*
Theme Name: Bashell Aurora
Theme URI: https://bashell.com
Description: Next-Gen Ultra-Premium Dark Tube Theme featuring Electric Aurora accents, Glassmorphism, 5-column dense grid, and right-aligned navigation.
Version: 1.0.1
Author: b4sh311
Text Domain: bashell-aurora
*/

:root {
    --bg-main: #080b12;
    --bg-surface: #0e1422;
    --bg-surface-glass: rgba(14, 20, 34, 0.85);
    --bg-card: #121a2c;
    --bg-card-hover: #17223b;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 152, 0.35);
    --accent: #00f298;
    --accent-glow: rgba(0, 242, 152, 0.25);
    --accent-hover: #10b981;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 10px 30px rgba(0, 242, 152, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   Header & Right-Aligned Menu
========================================== */
.site-header {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.site-logo:hover {
    color: var(--accent);
}

.site-title-wrap {
    display: flex;
    flex-direction: column;
}

.site-tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-logo-link img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* Search Bar (Centered or balanced) */
.header-search {
    flex: 1;
    max-width: 440px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 45px 10px 18px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: #04100c;
    border: none;
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--white);
}

/* Right-Aligned Navigation */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto; /* Pushes menu to the right */
}

.desktop-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.desktop-menu li a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.desktop-menu li a:hover,
.desktop-menu li.current-menu-item > a {
    color: var(--white);
    background: rgba(0, 242, 152, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0, 242, 152, 0.3);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 20px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Mobile Slide-Out Drawer (Slides from Right) */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    z-index: 2000;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);
}

.mobile-nav-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-items li a {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.mobile-menu-items li a:hover,
.mobile-menu-items li.current-menu-item > a {
    color: var(--accent);
    background: rgba(0, 242, 152, 0.1);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================
   Main Container & 5-Column Video Grid
========================================== */
.container {
    max-width: 1580px;
    width: 100%;
    margin: 24px auto;
    padding: 0 20px;
    flex: 1;
}

.page-title-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.page-title-banner h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-title-banner h1::before {
    content: "";
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: var(--radius-pill);
}

/* 5 Items Per Row Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

/* Video Card Item */
.video-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
}

.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #090e18;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-item:hover .video-thumb img {
    transform: scale(1.05);
}

/* Video Badges */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.video-hd {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #00f298 0%, #06b6d4 100%);
    color: #04140e;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 242, 152, 0.4);
}

.video-cat-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(14, 20, 34, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Content Meta */
.video-meta {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.video-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.video-item:hover .video-title {
    color: var(--accent);
}

.video-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-muted);
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================
   Trending Tags Cloud
========================================== */
.trending-section {
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.trending-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.tag-cloud a:hover {
    color: #04100c;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-2px);
}

/* ==========================================
   Pagination (Aurora Style)
========================================== */
.aurora-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.aurora-pagination a,
.aurora-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.aurora-pagination a:hover {
    background: rgba(0, 242, 152, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.aurora-pagination span.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #04140e;
    font-weight: 800;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================
   Single Video Page
========================================== */
.single-container {
    max-width: 1280px;
    margin: 20px auto 40px;
    padding: 0 20px;
}

.single-player-wrapper {
    background: #000000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 152, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.single-player-wrapper iframe,
.single-player-wrapper video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

.single-info-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
}

.single-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--white);
    margin-bottom: 12px;
}

.single-stats-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.live-views-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.single-desc-box {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
    margin-top: 14px;
}

.single-desc-box strong {
    color: var(--text-primary);
}

/* ==========================================
   Page Template (Legal, DMCA, Privacy)
========================================== */
.page-container {
    max-width: 900px;
    margin: 30px auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.page-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 22px;
    color: var(--white);
    font-weight: 800;
}

.page-content {
    line-height: 1.7;
    color: var(--text-secondary);
}

.page-content p {
    margin-bottom: 16px;
}

/* ==========================================
   Footer
========================================== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 35px 20px;
    margin-top: auto;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-nav a {
    color: var(--text-secondary);
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-disclaimer {
    max-width: 700px;
    margin: 0 auto 12px;
    font-size: 12px;
    line-height: 1.5;
}

/* ==========================================
   Responsive Breakpoints
========================================== */
@media (max-width: 1400px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 860px) {
    .desktop-menu {
        display: none;
    }
    .menu-toggle {
        display: inline-block;
    }
    .site-header {
        padding: 10px 16px;
    }
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
    }
    .site-header {
        flex-wrap: wrap;
    }
    .header-right {
        order: 2;
    }
}

@media (max-width: 650px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .container {
        padding: 0 12px;
        margin: 16px auto;
    }
    .video-meta {
        padding: 8px;
    }
    .video-title {
        font-size: 12px;
    }
    .video-stats {
        font-size: 10.5px;
    }
}
