/* ===== MODERN UI 2025 - LIGHT THEME ===== */
/* Design System: Light mode, Clean, Modern, Smooth animations */

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

:root {
    /* Core Colors - Light Theme */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    
    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f7ff 100%);
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Effects */
    --border-color: rgba(148, 163, 184, 0.2);
    --border-glow: rgba(99, 102, 241, 0.3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    
    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html { 
    font-size: 16px; 
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

a { 
    color: var(--accent-primary); 
    text-decoration: none; 
    transition: color var(--transition-fast);
}

a:hover { 
    color: var(--accent-secondary); 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover { 
    text-decoration: none; 
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active { 
    transform: translateY(0); 
}

.btn-primary { 
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.btn-secondary { 
    background: #f1f5f9;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: var(--border-glow);
    color: var(--text-primary);
}

.btn-danger { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

.btn-sm { 
    padding: 0.5rem 1rem; 
    font-size: 0.8rem; 
}

.btn-block { 
    display: flex; 
    width: 100%; 
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-success { 
    background: #ecfdf5; 
    color: #059669; 
    border-color: #a7f3d0;
}

.alert-error { 
    background: #fef2f2; 
    color: #dc2626; 
    border-color: #fecaca;
}

.alert-info {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-film { 
    background: #dbeafe; 
    color: #1d4ed8; 
    border-color: #93c5fd;
}

.badge-articol { 
    background: #fef3c7; 
    color: #b45309; 
    border-color: #fcd34d;
}

.badge-joc { 
    background: #d1fae5; 
    color: #047857; 
    border-color: #6ee7b7;
}

/* ===== Site Header ===== */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo::before {
    content: '◆';
    -webkit-text-fill-color: var(--accent-primary);
    font-size: 1.4rem;
}

.site-logo:hover { 
    text-decoration: none;
    opacity: 0.9;
}

.hamburger {
    display: none;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.hamburger:hover {
    background: #e2e8f0;
    border-color: var(--border-glow);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.main-nav a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.main-nav a:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.06);
    text-decoration: none;
}

.main-nav a:hover::after {
    left: 0.5rem;
    right: 0.5rem;
}

.nav-search {
    position: relative;
}

.nav-search input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    width: 180px;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.nav-search::before {
    content: '🔍';
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.5;
}

.nav-search input::placeholder {
    color: var(--text-muted);
}

.nav-search input:focus { 
    width: 240px; 
    outline: none; 
    border-color: var(--border-glow);
    background: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 10rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 { 
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero p { 
    color: var(--text-secondary); 
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section { 
    padding: 3rem 0; 
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-count { 
    font-size: 0.875rem; 
    color: var(--text-muted); 
    font-weight: 500;
    margin-left: 0.5rem;
}

/* ===== Card Grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* Ensure cards don't stretch too wide */
.card-grid > * {
    min-width: 0;
}

/* Explicit grid breakpoints for better control */
@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-body h3 {
        font-size: 0.9rem;
    }
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--text-primary);
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover .card-image::after {
    opacity: 1;
}

.card-image-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-placeholder::before {
    content: '◆';
    font-size: 3rem;
    color: #cbd5e1;
}

.card-body { 
    padding: 1.25rem; 
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.card-body h3 { 
    font-size: 1.1rem; 
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.card-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-top: auto;
}

.rating { 
    color: #f59e0b; 
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating::before {
    content: '★';
}

.subcategories { 
    display: flex; 
    gap: 0.5rem; 
    flex-wrap: wrap; 
    margin-top: 0.75rem; 
}

/* Category Card Specific */
.category-card .card-image {
    height: 140px;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    padding: 1.5rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumbs a { 
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

.breadcrumbs .sep { 
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* ===== Page Header ===== */
.page-header { 
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.page-header h1 { 
    font-size: 2.5rem; 
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ===== Detail Pages ===== */
.detail-page { 
    padding: 6rem 0 4rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-poster {
    position: sticky;
    top: 100px;
}

.detail-poster img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    border: 1px solid var(--border-color);
}

.detail-info h1 { 
    font-size: 2.5rem; 
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.meta-item { 
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item strong {
    color: var(--text-primary);
    min-width: 100px;
}

.detail-description { 
    margin-top: 2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.detail-description h2 { 
    font-size: 1.5rem; 
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.detail-description p {
    margin-bottom: 1rem;
}

/* Article specific */
.article-hero { 
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.article-hero img { 
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.article-content { 
    line-height: 1.9; 
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.article-content h2 { 
    margin: 2.5rem 0 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.article-content p { 
    margin-bottom: 1.5rem;
}

.article-content img { 
    border-radius: var(--radius-md); 
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.article-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--accent-secondary);
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Video responsive */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-responsive iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ===== Search ===== */
.search-section {
    padding: 8rem 0 3rem;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0;
    max-width: 700px;
}

.search-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form input:focus { 
    outline: none; 
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.search-count { 
    color: var(--text-muted); 
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* ===== Pagination ===== */
.pagination { 
    padding: 3rem 0; 
    text-align: center; 
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a, .pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: #fff;
    transition: all var(--transition-fast);
    min-width: 40px;
}

.pagination a:hover {
    background: #f8fafc;
    color: var(--text-primary);
    border-color: var(--border-glow);
    text-decoration: none;
}

.pagination-current {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 0.5rem;
    color: var(--text-muted);
}

/* ===== Main content push footer down ===== */
main {
    flex: 1;
}

/* ===== Footer ===== */
.site-footer {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer p {
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================================
   ADMIN STYLES - LIGHT THEME
   =================================================== */

/* Admin Login */
.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.admin-login-page::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.login-container {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-container h1 { 
    font-size: 2rem; 
    margin-bottom: 0.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-container h2 { 
    font-size: 1rem; 
    color: var(--text-muted); 
    margin-bottom: 2rem; 
    font-weight: 400; 
}

/* Admin Navigation */
.admin-body { 
    background: var(--bg-primary); 
}

.admin-nav {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 64px;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-nav-brand a {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-nav-brand a:hover { 
    text-decoration: none; 
    opacity: 0.9;
}

.admin-nav-brand .hamburger { 
    color: var(--text-primary); 
}

.admin-nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.admin-nav-links li a {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    display: block;
    white-space: nowrap;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.admin-nav-links li a:hover { 
    color: var(--text-primary); 
    background: #f1f5f9;
    text-decoration: none;
}

.nav-separator { 
    width: 1px; 
    height: 20px; 
    background: var(--border-color); 
    margin: 0 0.5rem; 
}

/* Admin Main */
.admin-main { 
    max-width: 100%; 
    margin: 2rem 0; 
    padding: 0 2rem; 
}

.admin-main h1 { 
    font-size: 1.875rem; 
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.admin-main h2 { 
    font-size: 1.25rem; 
    margin: 2rem 0 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #fff;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-md);
}

.stat-number { 
    font-size: 3rem; 
    font-weight: 800; 
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label { 
    color: var(--text-muted); 
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.stat-link { 
    font-size: 0.875rem;
    font-weight: 500;
}

/* Admin Forms */
.admin-form-section {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.form-group { 
    margin-bottom: 1.5rem; 
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea.code-editor {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    background: #f8fafc;
}

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem; 
}

.preview-thumb { 
    max-width: 150px; 
    margin-top: 0.75rem; 
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.table-thumb { 
    width: 50px; 
    height: 50px; 
    object-fit: cover; 
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Admin Table */
.admin-table { 
    width: 100%; 
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.admin-table thead { 
    background: #f8fafc;
}

.admin-table th { 
    padding: 1rem 1.25rem; 
    text-align: left; 
    font-size: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted); 
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td { 
    padding: 1rem 1.25rem; 
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem; 
    vertical-align: middle;
    color: var(--text-secondary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td { 
    background: #f8fafc;
    color: var(--text-primary);
}

.admin-table .actions { 
    white-space: nowrap; 
    display: flex; 
    gap: 0.5rem; 
}

/* Recent content */
.recent-content { 
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* IMDB Search Box */
.imdb-search-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.imdb-search-row { 
    display: flex; 
    gap: 0.75rem; 
    margin-top: 0.75rem; 
}

.imdb-search-row input { 
    flex: 1; 
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.imdb-search-row input:focus {
    outline: none;
    border-color: var(--border-glow);
}

#imdbResults { 
    margin-top: 1rem; 
}

.imdb-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.imdb-result:hover { 
    border-color: var(--border-glow);
    background: #f8fafc;
}

.imdb-result img { 
    width: 45px; 
    height: 65px; 
    object-fit: cover; 
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.imdb-result-info { 
    flex: 1; 
}

.imdb-result-info strong { 
    display: block; 
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.imdb-result-info span { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .hamburger { 
        display: block; 
    }

    /* Public nav */
    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        z-index: 999;
        backdrop-filter: blur(20px);
        padding: 1rem;
    }

    .main-nav.open { 
        display: block; 
    }

    .main-nav ul { 
        flex-direction: column; 
        align-items: stretch;
        gap: 0.25rem;
    }

    .main-nav a { 
        padding: 0.75rem 1rem; 
        display: block;
        border-radius: var(--radius-sm);
    }

    .main-nav a:hover {
        background: #f1f5f9;
    }

    .nav-search { 
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }

    .nav-search input { 
        width: 100%;
    }

    /* Admin nav */
    .admin-nav { 
        flex-direction: column; 
        align-items: flex-start; 
        padding: 0.75rem 1rem; 
    }

    .admin-nav-brand { 
        display: flex; 
        justify-content: space-between; 
        width: 100%; 
        align-items: center; 
    }

    .admin-nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 0.75rem;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .admin-nav-links.open { 
        display: flex; 
    }

    .nav-separator { 
        display: none; 
    }

    /* Content */
    .hero {
        padding: 7rem 1rem 3rem;
    }

    .hero h1 { 
        font-size: 2rem; 
    }

    .hero p {
        font-size: 1.1rem;
    }

    .card-image { 
        height: 160px; 
    }

    .detail-layout { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }

    .detail-poster { 
        max-width: 280px;
        margin: 0 auto;
        position: static;
    }

    .detail-info h1 {
        font-size: 1.75rem;
    }

    .form-row { 
        grid-template-columns: 1fr; 
    }

    .admin-table { 
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
    }

    .admin-table th, .admin-table td { 
        padding: 0.75rem; 
    }

    .search-form { 
        flex-direction: column;
    }

    .search-form input,
    .nav-search input:focus {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-stats { 
        grid-template-columns: 1fr; 
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== Selection ===== */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

/* ===== Loading Animation ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== Fade In Animation (disabled by default) ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards are visible by default for better performance */
.card,
.stat-card,
.admin-form-section {
    opacity: 1;
}
