/* css/components.css */
/* =========================================
   GLOBAL LAYOUT CLASSES
   ========================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    opacity: 0.5;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 2.5rem;
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Toast */
.booking-toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 999;
    transition: bottom 0.3s ease;
    pointer-events: none;
    color: #fff;
}

.booking-toast.show {
    bottom: 2rem;
}

.toast-success {
    background: #27ae60;
}

.toast-error {
    background: #e74c3c;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(0, 212, 170, 0.08);
}

/* --- Rating Badges --- */
.rating-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.rating-m18 {
    background-color: var(--rating-m18);
}

.rating-r21 {
    background-color: var(--rating-r21);
}

.rating-nc16 {
    background-color: var(--rating-nc16);
}

.rating-pg13 {
    background-color: var(--rating-pg13);
}

.rating-pg {
    background-color: var(--rating-pg);
}

.rating-g {
    background-color: var(--rating-g);
}

.rating-default {
    background-color: #555;
}

/* ===== PREMIUM ANIMATIONS ===== */

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.7s ease forwards;
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-40px);
    animation: fadeInDown 0.7s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    animation: fadeInLeft 0.7s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    animation: fadeInRight 0.7s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    animation: scaleIn 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Staggered animations for cards */
.movie-card-link {
    --stagger-delay: 0s;
}

.movie-card-link.staggered {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.7s ease forwards;
    animation-delay: var(--stagger-delay);
}

/* Glow animations */
.glow-on-hover {
    --glow-color: rgba(0, 191, 255, 0.3);
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px var(--glow-color), inset 0 0 30px rgba(0, 191, 255, 0.1);
}

/* Hero section enhancements */
.hero-featured-inner {
    transition: all 0.3s ease;
}

.hero-featured-inner:hover {
    filter: brightness(1.1);
    box-shadow: 0 32px 64px rgba(0, 191, 255, 0.15), 0 0 40px rgba(0, 191, 255, 0.1), 0 0 0 1px var(--border);
}

/* Section title animation */
.section-title {
    opacity: 0;
    animation: slideInDown 0.8s ease forwards;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Movie card enhanced hover */
.movie-card-link {
    position: relative;
    overflow: hidden;
}

.movie-card-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.movie-card-link:hover::before {
    opacity: 1;
}

/* Cinema card glow */
.cinema-card {
    transition: all 0.3s ease;
    position: relative;
}

.cinema-card:hover {
    box-shadow: 0 12px 30px rgba(0, 191, 255, 0.15);
}

/* Promo card animations */
.promo-card {
    transition: all 0.3s ease;
    position: relative;
}

.promo-card:hover {
    box-shadow: 0 12px 30px rgba(249, 200, 80, 0.1);
    transform: translateY(-4px);
}

.promo-placeholder {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.promo-card:hover .promo-placeholder {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.3) 0%, rgba(249, 200, 80, 0.2) 100%);
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Shimmer animation for loading states */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(0, 191, 255, 0.1) 50%, var(--bg-card) 75%);
    background-size: 1000px 100%;
}

/* Cards entrance stagger */
.stagger-1 {
    animation-delay: 0.1s !important;
}

.stagger-2 {
    animation-delay: 0.2s !important;
}

.stagger-3 {
    animation-delay: 0.3s !important;
}

.stagger-4 {
    animation-delay: 0.4s !important;
}

.stagger-5 {
    animation-delay: 0.5s !important;
}

.stagger-6 {
    animation-delay: 0.6s !important;
}

/* Text reveal animation */
.text-reveal {
    display: inline-block;
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}