/* =========================================================
   Cinemaban - Master Stylesheet
   ========================================================= */

:root {
    --primary: #9333ea;
    --primary-dark: #7e22ce;
    --primary-light: #f3e8ff;
    --accent: #ec4899;
    --bg: #0a0e1a;
    --bg-2: #131829;
    --bg-3: #1c2238;
    --text: #ffffff;
    --text-muted: #a8b0bf;
    --border: #2a3142;
    --border-light: #3a4258;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, .3);
    --shadow-glow: 0 0 40px rgba(147, 51, 234, .25);
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
            radial-gradient(circle at 15% 15%, rgba(147, 51, 234, .18) 0%, transparent 45%),
            radial-gradient(circle at 85% 85%, rgba(236, 72, 153, .12) 0%, transparent 45%),
            radial-gradient(circle at 50% 50%, rgba(147, 51, 234, .06) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
            linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    z-index: -1;
    pointer-events: none;
}

/* ذرات */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: .4;
    animation: float 18s infinite ease-in-out;
}

.particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 25%; top: 70%; animation-delay: -3s; }
.particles span:nth-child(3) { left: 45%; top: 30%; animation-delay: -6s; background: var(--accent); }
.particles span:nth-child(4) { left: 65%; top: 80%; animation-delay: -9s; }
.particles span:nth-child(5) { left: 80%; top: 25%; animation-delay: -12s; background: var(--accent); }
.particles span:nth-child(6) { left: 15%; top: 90%; animation-delay: -5s; }
.particles span:nth-child(7) { left: 35%; top: 55%; animation-delay: -8s; }
.particles span:nth-child(8) { left: 55%; top: 15%; animation-delay: -11s; background: var(--accent); }
.particles span:nth-child(9) { left: 75%; top: 60%; animation-delay: -14s; }
.particles span:nth-child(10) { left: 90%; top: 45%; animation-delay: -2s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .3; }
    25% { transform: translate(20px, -30px) scale(1.3); opacity: .6; }
    50% { transform: translate(-15px, -60px) scale(.9); opacity: .4; }
    75% { transform: translate(30px, -25px) scale(1.2); opacity: .5; }
}

/* نوار ناوبری */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 900;
    font-size: 17px;
    transition: var(--transition);
}

.nav-logo:hover { color: var(--primary); }

.logo-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(147, 51, 234, .35);
}

.logo-icon-sm svg { width: 20px; height: 20px; fill: #fff; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text);
    background: var(--bg-2);
}

.nav-menu a.active {
    color: var(--primary);
    background: rgba(147, 51, 234, .15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* کانتینر اصلی */
.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 48px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo { display: inline-flex; margin-bottom: 24px; }

.logo-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(147, 51, 234, .4), inset 0 1px 0 rgba(255, 255, 255, .2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, .2) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.logo-icon:hover {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 16px 50px rgba(147, 51, 234, .5);
}

.logo-icon svg { width: 48px; height: 48px; fill: #fff; position: relative; z-index: 1; }

/* بج */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(147, 51, 234, .15);
    color: var(--primary);
    border: 1px solid rgba(147, 51, 234, .3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(147, 51, 234, .7); }
    50% { opacity: .7; transform: scale(1.1); box-shadow: 0 0 0 8px rgba(147, 51, 234, 0); }
}

h1 {
    font-size: clamp(30px, 5.5vw, 48px);
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.25;
}

h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-muted);
    margin-bottom: 28px;
    font-weight: 500;
}

.description {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* شمارش معکوس */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 480px;
}

.countdown-item {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.countdown-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(147, 51, 234, .2);
}

.countdown-num {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* کارت */
.card {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, .5), transparent);
}

.card:hover {
    border-color: rgba(147, 51, 234, .4);
    box-shadow: var(--shadow-glow);
}

.card-title {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 16px;
}

/* فرم */
.newsletter {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.newsletter input {
    flex: 1;
    min-width: 200px;
    padding: 15px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.newsletter input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, .15);
}

.newsletter input::placeholder { color: var(--text-muted); }

.newsletter button,
.btn-primary {
    padding: 15px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
}

.newsletter button:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, .4);
}

.btn-secondary {
    padding: 15px 28px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.form-message {
    font-size: 13px;
    margin-top: 12px;
    min-height: 20px;
    color: var(--success);
    font-weight: 500;
}

.form-message.error { color: var(--danger); }

/* شبکه‌های اجتماعی */
.social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.social a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}

.social a:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(147, 51, 234, .4);
}

.social a svg { width: 20px; height: 20px; fill: currentColor; }

/* فوتر */
.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    background: rgba(19, 24, 41, .5);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.footer-col h4 {
    color: var(--text);
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-col p,
.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--primary); padding-right: 4px; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.page-home .site-footer { padding: 24px; text-align: center; }

/* انیمیشن */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.container > *,
.page-wrap > * {
    animation: fadeInUp .7s cubic-bezier(.4, 0, .2, 1) backwards;
}

.container > *:nth-child(1) { animation-delay: .05s; }
.container > *:nth-child(2) { animation-delay: .1s; }
.container > *:nth-child(3) { animation-delay: .15s; }
.container > *:nth-child(4) { animation-delay: .2s; }
.container > *:nth-child(5) { animation-delay: .25s; }
.container > *:nth-child(6) { animation-delay: .3s; }
.container > *:nth-child(7) { animation-delay: .35s; }
.container > *:nth-child(8) { animation-delay: .4s; }

/* ریسپانسیو */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 64px;
        right: 0;
        left: 0;
        flex-direction: column;
        background: var(--bg-2);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        gap: 4px;
        transform: translateY(-110%);
        transition: transform .35s cubic-bezier(.4, 0, .2, 1);
        box-shadow: var(--shadow);
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-menu a { padding: 12px 16px; }
}

@media (max-width: 576px) {
    .container { padding: 32px 16px 16px; }
    .card { padding: 24px 18px; }
    .newsletter { flex-direction: column; }
    .newsletter button { width: 100%; }
    .logo-icon { width: 72px; height: 72px; border-radius: 18px; }
    .logo-icon svg { width: 38px; height: 38px; }
    .countdown { gap: 8px; }
    .countdown-item { padding: 12px 4px; }
    .footer-inner { padding: 32px 16px 24px; gap: 24px; }
}