/* style.css (استایل‌های به‌روزرسانی شده برای صفحه فیلم Turkan با تم فیلیمو) */

/* -------------------------------------------------------------------------- */
/* === Film Page Styles (Filimo-like with Red/White/Black Theme) === */
/* -------------------------------------------------------------------------- */

/* تنظیمات کلی صفحه فیلم */
body {
    background-color: #f0f0f0; /* پس‌زمینه کلی روشن‌تر */
    color: #333;
}

body.dark-mode {
    background-color: #1a1a1a; /* پس‌زمینه تیره در حالت دارک مود */
    color: #e0e0e0;
}

main {
    padding: 0; /* پدینگ اصلی حذف شود تا header به لبه‌ها بچسبد */
}

.film-header {
    background-color: #222; /* پس‌زمینه تیره برای هدر (شبیه فیلیمو) */
    color: white;
    text-align: center;
    padding-bottom: 30px; /* پدینگ بیشتر برای فضای خالی پایین کاور */
    position: relative;
    overflow: hidden; /* برای جلوگیری از سرریز شدن تصویر پس‌زمینه */
    display: flex; /* برای چیدمان عمودی */
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* محتوا به سمت پایین هدر بیاید */
    min-height: 450px; /* ارتفاع بیشتر برای هدر */
}

/* تصویر پس زمینه تاریک و محو برای هدر (شبیه فیلیمو) */
.film-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/turkan_movie_poster.jpg'); /* تصویر پوستر به عنوان پس‌زمینه */
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.4); /* تاری و تیرگی برای پس‌زمینه */
    -webkit-filter: blur(10px) brightness(0.4);
    z-index: 0;
    transform: scale(1.1); /* کمی بزرگ‌تر کردن برای جلوگیری از لبه‌های سفید بعد از بلور */
}

.film-header > * { /* اعمال z-index به تمام فرزندان مستقیم هدر */
    position: relative;
    z-index: 1;
}

.back-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.1rem;
    color: white; /* رنگ سفید برای حالت دارک و روشن */
    text-decoration: none;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.4); /* پس‌زمینه کمی تیره برای دکمه بازگشت */
    padding: 8px 15px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* استایل کاور فیلم */
.film-cover {
    width: 70%; /* عرض در موبایل */
    max-width: 250px; /* حداکثر عرض پوستر */
    margin: 0 auto 20px auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* سایه عمیق‌تر برای برجستگی */
    overflow: hidden;
    transition: transform 0.3s;
    border: 3px solid white; /* حاشیه سفید برای برجسته کردن پوستر */
}

.poster-image {
    width: 100%;
    height: auto;
    display: block;
}

.rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color); /* قرمز اصلی */
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.film-title {
    font-size: 2.2rem; /* تیتر بزرگ‌تر */
    font-weight: 800; /* پررنگ‌تر */
    color: white; /* رنگ سفید برای هدر تیره */
    margin-bottom: 8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.film-genre {
    font-size: 1.1rem;
    color: #bbb; /* رنگ خاکستری روشن‌تر */
    margin-bottom: 15px;
}

/* بخش جزئیات */
.section {
    padding: 20px;
    margin-bottom: 0; /* فاصله بین سکشن‌ها را حذف می‌کنیم و با پدینگ داخلی کنترل می‌کنیم */
}

.film-details {
    margin-top: -50px; /* بالا کشیدن این بخش روی هدر */
    position: relative;
    z-index: 2; /* برای اینکه روی هدر قرار گیرد */
}

.details-card {
    background-color: var(--card-bg-color); /* سفید در روشن، تیره در دارک */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* سایه ملایم‌تر */
    margin-bottom: 20px; /* فاصله از بخش بعدی */
    transition: background-color 0.3s, box-shadow 0.3s;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    border-right: 4px solid var(--primary-color); /* خط قرمز کنار تیتر */
    padding-right: 10px;
    display: inline-block; /* برای اینکه خط کنار تیتر درست نمایش داده شود */
}

.synopsis-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-color);
    text-align: justify;
}

.meta-info {
    border-top: 1px solid var(--border-color); /* خط جداکننده */
    padding-top: 20px;
    margin-top: 20px;
}

.meta-info p {
    font-size: 0.95rem;
    color: var(--light-text-color);
    margin-bottom: 10px;
    padding-right: 0; /* پدینگ راست حذف شود */
    border-right: none; /* خط راست حذف شود */
}

.meta-info strong {
    color: var(--text-color);
}

/* دکمه تماشای تریلر */
.watch-trailer-button {
    width: 100%;
    background-color: var(--primary-color); /* قرمز اصلی */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4); /* سایه متناسب با رنگ اصلی */
}

.watch-trailer-button:hover {
    background-color: #b71c1c; /* قرمز تیره‌تر */
    transform: translateY(-2px);
}

.watch-trailer-button i {
    margin-left: 10px;
}

/* بخش گالری */
.film-gallery {
    margin-top: 20px; /* فاصله مناسب از بخش قبلی */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* حداقل عرض 150px */
    gap: 10px;
}

.gallery-item {
    height: 120px; /* ارتفاع کمتر برای گالری موبایل */
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* دسکتاپ و تبلت (ریسپانسیو) */
@media (min-width: 768px) {
    main {
        padding: 0 40px; /* پدینگ از کناره‌ها در دسکتاپ برای محتوای اصلی */
    }

    .film-header {
        min-height: 600px; /* ارتفاع بیشتر در دسکتاپ */
        padding-bottom: 50px;
    }
    
    .film-cover {
        max-width: 300px;
        border-width: 5px; /* حاشیه ضخیم‌تر در دسکتاپ */
    }

    .film-title {
        font-size: 2.8rem;
    }

    .film-genre {
        font-size: 1.2rem;
    }

    .film-details {
        margin-top: -80px; /* بالا کشیدن بیشتر در دسکتاپ */
    }

    .details-card {
        padding: 30px;
    }

    .synopsis-text {
        font-size: 1.05rem;
    }

    .meta-info p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr); /* چهار ستون در دسکتاپ */
        gap: 15px;
    }

    .gallery-item {
        height: 180px;
    }
}

/* Dark Mode Handoffs برای تم فیلیمو */
body.dark-mode .film-header {
    background-color: #1a1a1a;
}

body.dark-mode .back-button {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .back-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .film-cover {
    border-color: #e0e0e0; /* حاشیه سفید پوستر */
}

body.dark-mode .film-title {
    color: white;
}

body.dark-mode .film-genre {
    color: #ccc;
}

body.dark-mode .details-card {
    background-color: #2c2c2c;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .section-title {
    color: #e0e0e0;
}

body.dark-mode .synopsis-text {
    color: #ccc;
}

body.dark-mode .meta-info p {
    color: #aaa;
    border-top-color: #444;
}

body.dark-mode .meta-info strong {
    color: #e0e0e0;
}

body.dark-mode .gallery-item {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}












/* style.css (استایل‌های اضافه شده برای صفحه ویترین فیلم (films.html)) */

/* -------------------------------------------------------------------------- */
/* === Film Showcase (Filimo-like Grid) Styles === */
/* -------------------------------------------------------------------------- */

.film-showcase-main {
    padding: 0; /* حذف پدینگ اصلی برای چسبیدن هدر */
}

/* --- ۱. Hero Banner (پیشنهاد ویژه) --- */
.showcase-hero-banner {
    background-color: #222;
    color: white;
    padding-top: 50px; /* فضای بالا برای دکمه بازگشت */
    padding-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    min-height: 400px; /* ارتفاع مناسب برای Hero */
}

/* تصویر پس‌زمینه (استفاده از همان روش بلور فیلیمو) */
.showcase-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/turkan_movie_poster.jpg'); /* تصویر Hero Film */
    background-size: cover;
    background-position: center top;
    filter: blur(8px) brightness(0.3);
    -webkit-filter: blur(8px) brightness(0.3);
    z-index: 0;
    transform: scale(1.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 90%;
}

.hero-category {
    font-size: 0.85rem;
    color: var(--primary-color); /* رنگ قرمز */
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.hero-play-button, .hero-detail-button {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.hero-play-button {
    background-color: var(--primary-color); /* دکمه اصلی: قرمز */
    color: white;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.hero-detail-button {
    background-color: rgba(255, 255, 255, 0.15); /* دکمه ثانویه: نیمه‌شفاف سفید */
    color: white;
}

.hero-play-button i, .hero-detail-button i {
    margin-left: 8px;
}

.back-home-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 2;
}

/* --- ۲. بخش دسته‌بندی‌ها --- */
.film-categories-nav {
    padding: 15px 20px;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.film-categories-nav::-webkit-scrollbar {
    display: none;
}

.category-item {
    text-decoration: none;
    color: var(--light-text-color);
    font-weight: 700;
    font-size: 1rem;
    padding: 5px 10px;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-bottom 0.3s;
}

.category-item.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* --- ۳. ردیف‌های فیلم (Carousels) --- */
.film-row-section {
    padding: 20px 0;
}

.film-row-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    padding: 0 20px;
}

.film-row-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 20px 20px 20px; /* پدینگ برای فضای اسکرول و کارت‌ها */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.film-row-carousel::-webkit-scrollbar {
    display: none;
}

.film-card-item {
    flex: 0 0 140px; /* عرض ثابت برای هر کارت فیلم (برای حس اسکرول فیلیمو) */
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.film-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.film-card-item .card-image {
    width: 100%;
    height: 180px; /* ارتفاع مناسب برای پوستر (نسبت ۱۶:۹) */
    object-fit: cover;
}

.film-card-item .card-content {
    padding: 10px;
}

.film-card-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
    height: 3em; /* محدود کردن ارتفاع برای دو خط */
    overflow: hidden;
}

.film-card-item .card-meta {
    font-size: 0.75rem;
    color: var(--light-text-color);
    display: block;
    margin-top: 5px;
}

.film-card-item .fa-star {
    color: gold; /* رنگ ستاره برای امتیاز */
    margin-left: 3px;
}

/* Dark Mode Adjustments */
body.dark-mode .showcase-hero-banner {
    background-color: #1a1a1a;
}

body.dark-mode .film-categories-nav {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

body.dark-mode .film-card-item {
    background-color: #2c2c2c;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .film-card-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}


/* style.css (استایل سوییچ زبان) */

.language-switcher {
    position: fixed; /* ثابت در صفحه */
    top: 15px;
    left: 15px; /* موقعیت سمت چپ برای دکمه‌ها */
    z-index: 10;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
}

.language-switcher span {
    font-size: 0.9rem;
    margin-right: 10px;
    font-weight: 500;
}

.lang-button {
    background: none;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s;
}

.lang-button.active {
    background-color: var(--primary-color); /* قرمز اصلی */
    color: white;
}

.lang-button:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}
