/* assets/css/cinematic.css */

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

:root {
    --cinematic-bg: #050505;
    --cinematic-dark: #000000;
    --cinematic-surface: #0f0e0c;
    --cinematic-accent: #e2cfa6;
    --cinematic-accent-light: #f5ecd5;
    --cinematic-accent-dark: #bca26d;
    --glass-bg: rgba(15, 14, 12, 0.75);
    --glass-border: rgba(226, 207, 166, 0.18);
    --text-primary: #ffffff;
    --text-secondary: #a8a29e;
}

body {
    background-color: var(--cinematic-bg);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Background Animation */
.bg-cinematic {
    background: radial-gradient(circle at top center, #171510 0%, #050505 70%);
    background-attachment: fixed;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 30px rgba(226, 207, 166, 0.03);
}

.gold-glass {
    background: rgba(12, 12, 12, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(226, 207, 166, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(226, 207, 166, 0.05);
}

/* Typography */
.text-glow {
    text-shadow: 0 0 20px rgba(226, 207, 166, 0.35);
}

.text-gold-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f5ecd5 40%, #e2cfa6 70%, #bca26d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #2b271f;
    border-radius: 4px;
    border: 1px solid rgba(226, 207, 166, 0.15);
}

::-webkit-scrollbar-thumb:hover {
    background: #e2cfa6;
}

/* Input Styles */
.cinematic-input, .gold-input {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(226, 207, 166, 0.2);
    color: white;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-input:focus, .gold-input:focus {
    border-color: var(--cinematic-accent);
    box-shadow: 0 0 20px rgba(226, 207, 166, 0.25);
    outline: none;
    background: rgba(15, 14, 12, 0.85);
}

/* Buttons */
.gold-btn {
    background: linear-gradient(135deg, #f5ecd5 0%, #e2cfa6 45%, #c5ab73 100%);
    color: #0a0a0a;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 25px rgba(226, 207, 166, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gold-btn:hover {
    box-shadow: 0 6px 35px rgba(226, 207, 166, 0.5);
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.gold-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Poster Card */
.poster-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 207, 166, 0.08);
    border-radius: 0.75rem;
}

.poster-card:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(226, 207, 166, 0.25);
    border-color: rgba(226, 207, 166, 0.4);
    z-index: 20;
}

.poster-card::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -60px 40px -20px rgba(0, 0, 0, 0.95);
    pointer-events: none;
}

.rows-container:hover .poster-card:not(:hover) {
    filter: brightness(0.65) blur(0.5px);
}

/* Loader */
.loader-line {
    width: 100%;
    height: 3px;
    position: relative;
    overflow: hidden;
    background-color: #1a1814;
    margin: 0px auto;
    border-radius: 20px;
}

.loader-line:before {
    content: "";
    position: absolute;
    left: -50%;
    height: 3px;
    width: 40%;
    background-color: var(--cinematic-accent);
    box-shadow: 0 0 10px rgba(226, 207, 166, 0.8);
    animation: lineAnim 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    border-radius: 20px;
}

@keyframes lineAnim {
    0% {
        left: -40%;
    }
    50% {
        left: 20%;
        width: 80%;
    }
    100% {
        left: 100%;
        width: 100%;
    }
}

/* Footer Scrolling Words Animation */
@keyframes scroll-words {
    0%, 15% { transform: translateY(0); }
    20%, 35% { transform: translateY(-1.5rem); }
    40%, 55% { transform: translateY(-3.0rem); }
    60%, 75% { transform: translateY(-4.5rem); }
    80%, 95% { transform: translateY(-6.0rem); }
    100% { transform: translateY(-7.5rem); }
}

/* Touch & Mobile Optimizations */
.touch-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.touch-scroll::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .glass-modal {
        max-height: 92vh !important;
    }
    .poster-card:hover {
        transform: none !important;
    }
    .gold-glass {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}