/* assets/css/cinematic.css */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --cinematic-bg: #0a0a0a;
    --cinematic-dark: #000000;
    --cinematic-purple: #1a0e23;
    --cinematic-accent: #E50914;
    /* Can be overridden by JS */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
}

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, #1f1f2e 0%, #000000 70%);
    background-attachment: fixed;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Typography */
.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.text-gradient {
    background: linear-gradient(to right, #fff, #a1a1a1);
    -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: 8px;
    height: 8px;
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Input Styles */
.cinematic-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    color: white;
    transition: all 0.3s ease;
}

.cinematic-input:focus {
    border-color: var(--text-secondary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

/* Poster Card */
.poster-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.poster-card:hover {
    transform: scale(1.05);
    /* Netflix subtle zoom */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.poster-card::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -60px 40px -20px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.rows-container:hover .poster-card:not(:hover) {
    filter: brightness(0.7) blur(1px);
    /* Focus effect */
}

/* Loader */
.loader-line {
    width: 100%;
    height: 3px;
    position: relative;
    overflow: hidden;
    background-color: #ddd;
    margin: 0px auto;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}

.loader-line:before {
    content: "";
    position: absolute;
    left: -50%;
    height: 3px;
    width: 40%;
    background-color: var(--cinematic-accent);
    -webkit-animation: lineAnim 1s linear infinite;
    -moz-animation: lineAnim 1s linear infinite;
    animation: lineAnim 1s linear infinite;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}

@keyframes lineAnim {
    0% {
        left: -40%;
    }

    50% {
        left: 20%;
        width: 80%;
    }

    100% {
        left: 100%;
        width: 100%;
    }
}