@charset "UTF-8";

/* ==========================================================================
   Typography & Font Faces
   ========================================================================== */
@font-face {
    font-family: 'Estedad';
    src: url('../../fonts/Estedad-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../../fonts/Estedad-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('../../fonts/Kalameh-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('../../fonts/IRANYekanRegularFaNum.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Design Tokens & Theme Variables (Softer text contrast)
   ========================================================================== */
:root {
    --font-body: 'Estedad', 'IRANYekan', Tahoma, system-ui, sans-serif;
    --font-heading: 'Kalameh', 'Estedad', Tahoma, sans-serif;

    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --text-main: #1e293b; /* Softer dark text */
    --text-muted: #64748b;

    --accent: #f97316;
    --accent-hover: #ea580c;
    --badge-bg: #fff7ed;
    --badge-border: #ffedd5;
    --badge-text: #c2410c;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent);
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent), #fb923c);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
}

nav.main-nav {
    display: flex;
    gap: 24px;
    font-weight: 600;
    font-size: 0.95rem;
}

nav.main-nav a {
    transition: color 0.15s ease;
}

nav.main-nav a:hover {
    color: var(--accent);
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 8px 16px;
    width: 240px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-main);
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-section {
    margin-top: 24px;
}

.slider-wrapper {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.slide-item {
    display: none;
    align-items: center;
    gap: 32px;
    padding: 32px;
    min-height: 380px;
}

.slide-item.active {
    display: flex;
}

.slide-poster {
    flex-shrink: 0;
    width: 220px;
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.slide-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    flex: 1;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-text);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.slide-title-en {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    direction: ltr;
    text-align: right;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #fef08a;
    color: #854d0e;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.slide-plot {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.ctrl-btn {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-main);
    transition: background-color 0.15s ease;
}

.ctrl-btn:hover {
    background-color: var(--bg-body);
}

.dots-container {
    display: flex;
    gap: 6px;
    margin-right: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border);
    cursor: pointer;
    border: none;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.dot.active {
    background-color: var(--accent);
    width: 22px;
    border-radius: 4px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 44px 0 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.45rem;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background-color: var(--accent);
    border-radius: 4px;
}

/* ==========================================================================
   Movie Cards Grid
   ========================================================================== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.movie-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.poster-container {
    position: relative;
    aspect-ratio: 2 / 3;
    width: 100%;
    background-color: #e2e8f0;
    overflow: hidden;
    display: block;
}

.poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(15, 23, 42, 0.85);
    color: #fef08a;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 12px;
}

.movie-name-fa {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-name-en {
    font-size: 0.8rem;
    color: var(--text-muted);
    direction: ltr;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.imdb-link {
    color: #b45309;
    font-weight: 700;
    background-color: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.imdb-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    background-color: var(--bg-card);
    padding: 32px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .slide-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .slide-poster {
        width: 100%;
        max-width: 200px;
        height: 280px;
        margin: 0 auto;
    }
    .slider-controls {
        left: 16px;
        bottom: 16px;
    }
}

/* Mobile: Exactly 1 vertical card per row with large poster */
@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 14px 0;
    }
    .search-box {
        width: 100%;
    }

    .movie-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .movie-card {
        flex-direction: column; /* Vertical card layout */
        max-width: 380px;
        margin: 0 auto;
        width: 100%;
    }

    .poster-container {
        width: 100%;
        aspect-ratio: 2 / 3; /* Large poster proportion */
        height: auto;
    }

    .card-body {
        padding: 16px;
    }

    .movie-name-fa {
        -webkit-line-clamp: 2;
        font-size: 1.1rem;
    }

    .slide-title {
        font-size: 1.5rem;
    }
}




/* منو هدر 
/* --- استایل‌های هدر جدید --- */
/* --- استایل یکپارچه هدر --- */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}
/* --- استایل یکپارچه برند و لوگو در هدر تمام صفحات --- */
.brand-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand-logo .logo-highlight {
    font-family: 'Kalameh-Black', 'Kalameh', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #f97316; /* رنگ نارنجی اصلی برند */
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #0f172a;
}

.header-left {
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    width: 280px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    color: #334155;
    text-align: right;
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    padding: 0;
}
