@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0a0e14;
    --bg-surface: #111823;
    --bg-card: #16202e;
    --bg-glass: rgba(17, 24, 35, 0.78);
    
    --accent-blue: #38bdf8;
    --accent-blue-hover: #0ea5e9;
    --accent-cyan: #00d2ff;
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(56, 189, 248, 0.2);
    
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.4);

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Header & Glassmorphic Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.9) 0%, rgba(10, 10, 12, 0) 100%);
    transition: background-color var(--transition-fast), backdrop-filter var(--transition-fast), border-bottom var(--transition-fast);
}

.navbar.scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.brand-logo .flame-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #38bdf8, #0055ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

.brand-logo .flame-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.brand-logo span strong {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-item a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding: 0.5rem 0;
    position: relative;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--text-primary);
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-blue);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow);
}

/* Nav Right & Search */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-search {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.9rem;
    gap: 0.5rem;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    width: 220px;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
    width: 280px;
}

.search-input-wrapper svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
}

.search-input-wrapper input {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    width: 100%;
    outline: none;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

/* Page Container */
.main-wrapper {
    flex: 1;
    margin-top: 0;
}

/* Common Section Header */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 4%;
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title .title-accent {
    width: 4px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: var(--radius-full);
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-blue);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Common Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-score {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-age {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.badge-studio {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Main Footer */
.footer {
    background: #070a0f;
    border-top: 1px solid var(--border-color);
    padding: 4rem 4% 2rem 4%;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 360px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--accent-blue);
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive queries */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .search-input-wrapper {
        width: 150px;
    }
    .search-input-wrapper:focus-within {
        width: 200px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .user-badge span {
        display: none;
    }
}
