/*
Theme Name: Bashell Luminous
Theme URI: https://reactionpromax.com
Author: Bashell
Author URI: https://reactionpromax.com
Description: Ultra-fast, Bright & Vibrant Glassmorphism Theme. Fully SEO optimized.
Version: 2.1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bashell-luminous
*/

/* ==========================================================================
   1. CSS Variables (The Luminous Design System)
   ========================================================================== */
:root {
    /* Colors */
    --c-bg: #f0f4f8; /* Soft off-white for depth */
    --c-surface: rgba(255, 255, 255, 0.85); /* Glassmorphism surface */
    --c-surface-solid: #ffffff;
    --c-text-main: #1a202c;
    --c-text-muted: #718096;
    --c-primary: #0066ff; /* Electric Blue */
    --c-primary-hover: #0052cc;
    --c-accent: #ff3366; /* Vibrant Pink/Red for hot items */
    --c-border: rgba(226, 232, 240, 0.8);
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --container-w: 1280px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Shadows (Glassmorphism & Depth) */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --glass-blur: blur(12px);
    
    /* Transitions */
    --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    background-color: var(--c-bg);
    color: var(--c-text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color var(--trans-fast);
}
a:hover {
    color: var(--c-primary-hover);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
ul, ol {
    list-style: none;
}
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================================================
   3. Header & Navigation (Glassmorphism)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--c-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-branding a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-text-main);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-branding span.accent {
    color: var(--c-primary);
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-menu {
    display: flex;
    gap: 1.5rem;
}
.nav-menu a {
    color: var(--c-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-primary);
    transition: width var(--trans-fast);
}
.nav-menu a:hover::after, .nav-menu .current-menu-item > a::after {
    width: 100%;
}
.header-search {
    position: relative;
}
.search-form {
    display: flex;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 99px;
    padding: 4px 4px 4px 16px;
    transition: box-shadow var(--trans-fast);
}
.search-form:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
    border-color: var(--c-primary);
    background: var(--c-surface-solid);
}
.search-field {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    width: 180px;
    color: var(--c-text-main);
}
.search-submit {
    background: var(--c-primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--trans-fast);
}
.search-submit:hover {
    background: var(--c-primary-hover);
}
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--c-text-main);
    cursor: pointer;
}

/* ==========================================================================
   4. Main Content & Video Grid
   ========================================================================== */
.site-main {
    padding: 2rem 0 4rem;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--c-primary);
    border-radius: 4px;
}

/* Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Video Card (Luminous Effect) */
.video-card {
    background: var(--c-surface-solid);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--trans-fast), box-shadow var(--trans-fast);
    border: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.video-thumb-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e2e8f0;
}
.video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.video-card:hover .video-thumb-wrap img {
    transform: scale(1.05);
}
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}
.video-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.video-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--c-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card:hover .video-title {
    color: var(--c-primary);
}
.video-meta {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   5. Single Video Watch Page
   ========================================================================== */
.watch-container {
    max-width: 1000px;
    margin: 0 auto;
}
.player-wrapper {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16/9;
    width: 100%;
}
.watch-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.watch-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 1.5rem;
}
.watch-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--c-text-muted);
    font-weight: 500;
}
.watch-actions {
    display: flex;
    gap: 0.5rem;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-text-main);
    cursor: pointer;
    transition: all var(--trans-fast);
}
.btn-action:hover {
    background: var(--c-surface-solid);
    border-color: var(--c-primary);
    color: var(--c-primary);
}

/* Content Area */
.watch-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.watch-description {
    background: var(--c-surface-solid);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    font-size: 0.95rem;
    color: var(--c-text-main);
}
.related-videos-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.related-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.related-card {
    display: flex;
    gap: 12px;
    background: transparent;
    transition: transform var(--trans-fast);
}
.related-card:hover {
    transform: translateX(4px);
}
.related-card .video-thumb-wrap {
    width: 160px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}
.related-card .video-title {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
}

/* ==========================================================================
   6. Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--c-surface-solid);
    border: 1px solid var(--c-border);
    color: var(--c-text-main);
    font-weight: 600;
    transition: all var(--trans-fast);
}
.pagination a:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}
.pagination .current {
    background: var(--c-primary);
    color: white;
    border-color: var(--c-primary);
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
    background: var(--c-surface-solid);
    border-top: 1px solid var(--c-border);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.footer-copy {
    color: var(--c-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   8. Responsive Design (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--c-surface-solid);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--c-border);
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    .main-nav.active {
        transform: translateY(0);
    }
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .nav-menu a {
        display: block;
        padding: 0.75rem;
        background: var(--c-bg);
        border-radius: var(--radius-sm);
    }
    .header-search {
        width: 100%;
        margin-top: 1rem;
    }
    .search-form {
        width: 100%;
    }
    .search-field {
        width: 100%;
    }
    .mobile-menu-btn {
        display: block;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    .video-info {
        padding: 0.75rem;
    }
    .video-title {
        font-size: 0.9rem;
    }
    .watch-title {
        font-size: 1.25rem;
    }
    .related-card .video-thumb-wrap {
        width: 120px;
    }
}
