/* style.css */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

/* Global Variables */
:root {
    --primary-color: #E53935;
    --background-color: #F5F5F5;
    --card-bg-color: #FFFFFF;
    --text-color: #333333;
    --light-text-color: #888888;
    --border-color: #EEEEEE;
}

/* General Styles */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding-bottom: 70px;
    direction: rtl;
    text-align: right;
    transition: background-color 0.3s, color 0.3s;
}

main {
    padding: 20px;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

p {
    margin: 0;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

/* Bottom Navigation Bar */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px; /* ارتفاع بیشتر برای زیبایی */
    background-color: rgba(255, 255, 255, 0.7); /* پس‌زمینه نیمه‌شفاف */
    backdrop-filter: blur(10px); /* افکت شیشه مات (Frosted Glass) */
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, border-top 0.3s;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: color 0.3s, transform 0.2s;
    padding: 5px 0;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
    transition: font-size 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
    transform: translateY(-5px); /* افکت حرکت به بالا در حالت فعال */
}

/* Dark Mode Nav Bar */
body.dark-mode .bottom-nav {
    background-color: rgba(30, 30, 30, 0.7);
    border-top: 1px solid rgba(51, 51, 51, 0.5);
}

body.dark-mode .nav-item {
    color: #BDBDBD;
}

body.dark-mode .nav-item.active {
    color: var(--primary-color);
}


/* --- Home Section Styles --- */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card-home-featured-news .card-image,
.card-home-blog .card-image,
.card-home-music .card-image {
    height: 160px;
    border-radius: 12px 12px 0 0;
}

.card-home-featured-news .card-title,
.card-home-blog .card-title,
.card-home-music .card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- Haberler (اخبار) Section specific styles --- */
.haberler-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.card-featured {
    height: 250px;
    display: flex;
    flex-direction: column;
}

.card-featured .card-image {
    height: 140px;
    border-radius: 12px 12px 0 0;
}

.card-featured .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
}

.card-featured .card-description {
    font-size: 0.8rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

.haberler-small-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.card-small {
    text-align: center;
    padding: 15px;
}

.card-small .card-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.card-small .card-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.card-small .card-sub-description {
    font-size: 0.8rem;
    color: var(--light-text-color);
    margin-top: 2px;
}

/* --- Muzik (موسیقی) Section specific styles --- */
.muzik-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: var(--card-bg-color);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.player-title {
    font-size: 1.2rem;
}

.player-controls {
    display: flex;
    gap: 15px;
}

.player-icon {
    font-size: 2rem;
    cursor: pointer;
}

.muzik-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.card-music-item {
    display: flex;
    align-items: center;
    padding: 15px;
}

.music-play-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-left: 15px;
}

.music-info {
    flex-grow: 1;
}

.music-info h4 {
    font-size: 1rem;
    font-weight: 700;
}

.music-info p {
    font-size: 0.8rem;
    color: var(--light-text-color);
}

.music-options-icon {
    color: var(--light-text-color);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ---- Blog Section ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.card-blog .card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.card-blog .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    margin-top: 10px;
}

.card-blog .card-description {
    font-size: 0.8rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

/* ---- Eğlence (سرگرمی) Section Styles ---- */
.eglence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card-eglence .card-image {
    height: 140px;
    border-radius: 12px 12px 0 0;
}

.card-eglence .card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-eglence-calendar {
    background-color: var(--primary-color);
    color: var(--card-bg-color);
    padding: 20px;
}

.card-eglence-calendar .card-title {
    color: var(--card-bg-color);
    margin-bottom: 15px;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-list li {
    font-size: 1rem;
    margin-bottom: 10px;
}

.event-list li i {
    margin-right: 10px;
}

/* ---- Kültür ve Tarih Section Styles ---- */
.kultur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card-kultur .card-image {
    height: 160px;
    border-radius: 12px 12px 0 0;
}

.card-kultur .card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-kultur .card-description {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

/* ---- Dil Öğrenme (آموزش زبان) Section Styles ---- */
.dil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card-dil .card-image {
    height: 160px;
    border-radius: 12px 12px 0 0;
}

.card-dil .card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-dil .card-description {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

/* ---- Araçlar (ابزار کاربردی) Section Styles ---- */
.araclar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card-araclar .card-image {
    height: 160px;
    border-radius: 12px 12px 0 0;
}

.card-araclar .card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-araclar .card-description {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

/* ---- Challenge (چالش‌ها) Section Styles ---- */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card-challenge .card-image {
    height: 160px;
    border-radius: 12px 12px 0 0;
}

.card-challenge .card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-challenge .card-description {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

/* ---- Ayarlar (تنظیمات) Section Styles ---- */
.ayarlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card-ayarlar {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
}

.card-ayarlar:hover {
    transform: translateY(-5px);
}

.card-ayarlar .fas {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-left: 20px;
    margin-right: 0;
}

.card-ayarlar .card-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.card-ayarlar .card-description {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

.about-us-content, .contact-us-content {
    padding: 20px;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #E0E0E0;
}

body.dark-mode .card {
    background-color: #1E1E1E;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode .bottom-nav {
    background-color: #1E1E1E;
    border-top: 1px solid #333;
}

body.dark-mode .nav-item {
    color: #BDBDBD;
}

body.dark-mode .nav-item.active {
    color: var(--primary-color);
}

body.dark-mode .card-ayarlar .fas {
    color: var(--primary-color);
}

/* New Home Page Sections */
.featured-video-section {
    margin-top: 20px;
}


/* ======================== */
/* === Date Converter Page Styles === */
/* ======================== */

.converter-page {
    padding: 20px;
    direction: rtl; /* برای جهت متن */
}

.converter-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 20px;
}

.back-button {
    font-size: 24px;
    color: #333;
    text-decoration: none;
    margin-left: 15px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    flex-grow: 1;
    text-align: right;
    margin: 0;
}

.converter-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.converter-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.converter-card .card-title {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    margin-bottom: 15px;
}

.converter-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.converter-input {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.convert-button {
    width: 90%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.convert-button:hover {
    background-color: #0056b3;
}

.result-box {
    width: 90%;
    padding: 15px;
    background-color: #f0f8ff;
    border: 1px solid #cceeff;
    border-radius: 8px;
    margin-top: 10px;
}

.result-box p {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}


/* استایل کلی بخش ضرب‌المثل */
.soz-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* استایل کارت ضرب‌المثل */
.soz-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

/* استایل متن ضرب‌المثل */
.soz-text {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* استایل متن معنی ضرب‌المثل */
.soz-meaning {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* استایل دکمه‌ی "ضرب‌المثل بعدی" */
.next-soz-button {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.next-soz-button:hover {
    background-color: var(--primary-dark-color);
}


/* استایل کلی بخش دسته‌بندی شعر */
.siir-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* استایل کارت‌های دسته‌بندی */
.card-siir-category {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card-siir-category:hover {
    transform: translateY(-5px);
}

.card-siir-category a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-siir-category .card-content {
    padding: 20px;
    text-align: center;
}

.card-siir-category .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}


/* وسط‌چین کردن کارت‌ها در صفحه */
.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 100px); /* ارتفاع صفحه رو تنظیم می‌کنه */
}

/* استایل کلی بخش شعر */
.siir-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* استایل کارت شعر */
.siir-card {
    background-color: var(--card-bg-color); /* پس‌زمینه سفید */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 25px 0;
    width: 90%;
    max-width: 500px;
    min-height: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* استایل عنوان و شاعر */
.siir-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color); /* استفاده از رنگ اصلی (قرمز) */
    margin-bottom: 5px;
}

.siir-poet {
    font-size: 1.1rem;
    color: var(--light-text-color);
    margin-bottom: 20px;
}

/* استایل کادر متن شعر */
.siir-text-box {
    margin-top: 20px;
}

.siir-text-box p {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    line-height: 2.2;
    margin-bottom: 5px;
    color: var(--text-color);
}

/* استایل دکمه‌ی "شعر بعدی" */
.next-siir-button {
    background-color: var(--primary-color); /* رنگ دکمه قرمز تراکتوری */
    color: white;
    font-weight: bold;
    font-size: 1rem;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.next-siir-button:hover {
    background-color: var(--primary-dark-color);
    transform: translateY(-2px); /* یک انیمیشن کوچک هنگام بردن موس روی دکمه */
}


/* -------------------------------------------------------------------------- */
/* === استایل‌های اضافه شده برای صفحه خانه جدید Turkan.site === */
/* -------------------------------------------------------------------------- */

/* متغیرهای جدید برای تم کارت‌ها (بهتر است به بخش :root اضافه شوند، اما اینجا هم کار می‌کند) */
:root {
    /* ... (متغیرهای قبلی شما) ... */
    --accent-blue: #007bff;
    --accent-blue-dark: #0056b3;
    --feature-history: #8b0000; /* قرمز تیره برای تاریخ */
    --feature-rap: #6a1b9a; /* بنفش برای رپ */
    --feature-tech: #1b5e20; /* سبز تیره برای تکنولوژی */
}

/* تنظیم عنوان بخش برای هماهنگی با رنگ‌بندی جدید */
.section-title a {
    text-decoration: none;
    color: var(--text-color);
    border-right: 4px solid var(--primary-color); /* خط قرمز کنار تیتر - همان رنگ تراکتوری شما */
    padding-right: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    transition: color 0.3s;
}

/* === ۱. بخش توصیه ویژه (Hero/Recommendation) === */
.hero-recommendation {
    margin-bottom: 25px;
}

.card-recommend {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: right;
}

.card-recommend h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.card-recommend p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #c62828;
    transform: translateY(-2px);
}

/* === ۲. بخش کارت‌های ویژه (Featured Content) === */
.featured-content-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* برای اسکرول افقی کارت‌ها در موبایل */
    padding-bottom: 15px;
    white-space: nowrap;
    margin-bottom: 25px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.featured-content-grid::-webkit-scrollbar {
    display: none;
}

.feature-card {
    flex: 0 0 160px; /* عرض ثابت برای هر کارت */
    height: 160px;
    padding: 15px;
    border-radius: 12px;
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.3s;
    white-space: normal;
    text-decoration: none;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.feature-card h4 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 5px;
    font-weight: 700;
}

.feature-card .tag {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* تم‌بندی رنگی کارت‌های ویژه */
.history-theme {
    background: linear-gradient(135deg, var(--feature-history), #a52a2a);
}

.rap-theme {
    background: linear-gradient(135deg, var(--feature-rap), #9c27b0);
}

.tech-theme {
    background: linear-gradient(135deg, var(--feature-tech), #4caf50);
}

/* === ۳. فید محتوای جدید (Feed List) === */
.feed-list {
    display: grid;
    gap: 10px;
    margin-bottom: 25px;
}

.feed-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 10px;
    transition: box-shadow 0.3s;
    text-decoration: none;
}

.feed-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feed-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: 10px;
}

.item-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.4;
    color: var(--text-color);
}

.item-details .category {
    font-size: 0.75rem;
    color: var(--light-text-color);
    background-color: var(--background-color);
    padding: 3px 6px;
    border-radius: 4px;
}

/* -------------------------------------------------------------------------- */
/* Dark Mode Handoffs برای استایل‌های جدید */
/* -------------------------------------------------------------------------- */

body.dark-mode .card-recommend {
    background: linear-gradient(135deg, #1f426c, #0a2647);
}

body.dark-mode .feed-item {
    background-color: #1E1E1E;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
}

body.dark-mode .feed-item:hover {
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode .item-details .category {
    background-color: #2c2c2c;
    color: #bdbdbd;
}


/* style.css (بخش به‌روزرسانی شده برای کارت Hero Banner) */

/* -------------------------------------------------------------------------- */
/* === استایل‌های اضافه شده برای کارت Hero Banner (جدید و دقیق) === */
/* -------------------------------------------------------------------------- */

.hero-banner {
    background: linear-gradient(135deg, #1A2980, #26D0CE); /* گرادیانت آبی-سبز */
    color: white;
    /* حذف پدینگ راست و چپ برای چسبیدن به کناره‌ها در تمام عرض */
    padding: 25px 0 25px 20px; /* پدینگ بالا، پایین و چپ حفظ شود، راست صفر */
    border-radius: 0; /* حذف border-radius برای چسبیدن کامل */
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    min-height: 200px; /* حداقل ارتفاع را کمی کاهش دادم */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);

    /* برای چسبیدن کامل به بالا (اگر body.padding-top دارد) */
    margin-top: -15px; /* جبران پدینگ main */
    margin-left: -15px; /* جبران پدینگ main */
    margin-right: -15px; /* جبران پدینگ main */
    width: calc(100% + 30px); /* پوشش کامل عرض صفحه */
    max-width: none; /* اطمینان از عدم محدودیت عرض */
}

.banner-content {
    position: relative;
    z-index: 2;
    padding-right: 20px; /* پدینگ داخلی برای متن از سمت راست */
    max-width: 90%;
}

.hero-banner h2 {
    /* استفاده از Vazirmatn برای هماهنگی با فونت سایت شما */
    font-family: 'vazirmatn', sans-serif;
    font-size: 1.8rem; /* کمی بزرگ‌تر برای شباهت بیشتر */
    font-weight: 800;
    margin-bottom: 8px; /* کمی کمتر از قبل */
    line-height: 1.2; /* خطوط نزدیک‌تر */
}

.hero-banner p {
    font-size: 0.9rem; /* کمی کوچک‌تر */
    line-height: 1.5;
    margin-bottom: 15px; /* کمی کمتر */
    opacity: 0.95;
    /* font-family: 'vazirmatn', sans-serif; /* اطمینان از فونت */
}

.banner-button {
    background-color: #ff4500; /* نارنجی آتشین */
    color: white !important;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1.0rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.banner-button:hover {
    background-color: #e63900;
    transform: translateY(-3px);
}

.fire-icon {
    font-size: 1.2em;
    margin-left: 10px;
}

/* تصویر پس‌زمینه (عقاب و کد) */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/eagle-code-pattern.png'); /* مطمئن شوید این تصویر در پوشه images هست */
    background-size: cover; /* پوشش کامل */
    background-position: center left; /* تغییر به سمت چپ برای هماهنگی با عکس */
    background-repeat: no-repeat; /* عدم تکرار تصویر */
    opacity: 0.18; /* کمی شفافیت بیشتر برای وضوح */
    z-index: 1;
}

/* تنظیمات برای حالت تاریک */
body.dark-mode .hero-banner {
    background: linear-gradient(135deg, #0A1931, #0D47A1);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1);
}

/* ریسپانسیو برای نمایش بهتر در صفحات بزرگتر (دسکتاپ) */
@media (min-width: 768px) {
    .hero-banner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 180px; /* ارتفاع کمی کمتر در دسکتاپ */
        padding: 25px 0 25px 30px; /* پدینگ بیشتر از چپ در دسکتاپ */
    }

    .banner-content {
        max-width: 65%; /* کمی بیشتر برای محتوا */
        padding-right: 0; /* حذف پدینگ راست اضافی در دسکتاپ */
    }

    .hero-banner h2 {
        font-size: 2.2rem; /* بزرگ‌تر در دسکتاپ */
    }

    .hero-banner p {
        font-size: 1.0rem;
    }

    .hero-banner::after {
        background-position: center right; /* بازگشت به راست در دسکتاپ برای هماهنگی با عکس اصلی */
    }
}

/* استایل عمومی برای body برای اطمینان از چسبیدن بنر به بالا */
body {
    padding-top: 0 !important; /* حذف هرگونه پدینگ بالا */
}

/* پدینگ برای main برای حفظ فاصله محتوای داخلی از اطراف */
main {
    padding-top: 20px; /* پدینگ از بالا برای محتوای زیر بنر */
    padding-left: 15px; /* پدینگ چپ و راست حفظ شود */
    padding-right: 15px;
}


/* -------------------------------------------------------------------------- */
/* === استایل نوار هدر بالایی (Top Header) === */
/* -------------------------------------------------------------------------- */

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed; /* ثابت در بالای صفحه */
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* ارتفاع نوار بالا */
    padding: 0 15px;
    background-color: var(--card-bg-color); /* پس‌زمینه سفید کارت */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* بالاتر از همه عناصر */
    direction: rtl;
    box-sizing: border-box;
}

/* آیکون‌ها در هدر */
.header-icon {
    font-size: 1.5rem;
    color: var(--light-text-color);
    text-decoration: none;
    padding: 5px;
    transition: color 0.3s;
}

.header-icon:hover {
    color: var(--primary-color);
}

/* نوار جستجو */
.search-box {
    flex-grow: 1; /* فضای بین دو آیکون را پر کند */
    margin: 0 15px;
    display: flex;
    align-items: center;
    background-color: var(--background-color); /* رنگ زمینه روشن‌تر */
    border-radius: 25px;
    padding: 8px 15px;
}

.search-box i {
    color: var(--light-text-color);
    margin-left: 10px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--text-color);
    direction: rtl;
}

/* --- تنظیمات عمومی برای فضای هدر ثابت --- */
body {
    padding-top: 60px; /* فضای بالا برای هدر ثابت */
}

/* --- تنظیمات حالت تاریک برای هدر --- */
body.dark-mode .top-header {
    background-color: #1E1E1E;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
}

body.dark-mode .search-box {
    background-color: #2c2c2c;
}

body.dark-mode .search-box input {
    color: #E0E0E0;
}

body.dark-mode .header-icon {
    color: #BDBDBD;
}



/* -------------------------------------------------------------------------- */
/* === استایل‌های اضافه شده برای صفحه خانه جدید Turkan.site (بر اساس تصاویر) === */
/* -------------------------------------------------------------------------- */

/* تنظیم عنوان بخش برای هماهنگی با رنگ‌بندی جدید */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-right: 15px; /* برای تطابق با پدینگ main */
    color: var(--text-color); /* رنگ متن عادی */
}

/* === ۱. بخش بنر بالا (Top Banner) === */
.top-banner {
    background: linear-gradient(135deg, #1a2980, #26d0ce); /* گرادیانت آبی-سبز */
    color: white;
    padding: 25px 0 25px 20px; /* پدینگ بالا، پایین و چپ حفظ شود، راست صفر */
    border-radius: 0; /* حذف border-radius برای چسبیدن کامل */
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    min-height: 200px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);

    /* برای چسبیدن کامل به بالا و کناره‌ها (جبران پدینگ main) */
    margin-top: -20px; /* جبران padding-top از body */
    margin-left: -20px; /* جبران padding-left از main */
    margin-right: -20px; /* جبران padding-right از main */
    width: calc(100% + 40px); /* پوشش کامل عرض صفحه (20px چپ + 20px راست) */
    max-width: none; /* اطمینان از عدم محدودیت عرض */
}

.banner-content {
    position: relative;
    z-index: 2;
    padding-right: 20px; /* پدینگ داخلی برای متن از سمت راست */
    max-width: 90%;
}

.top-banner h2 {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.top-banner p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0.95;
}

.banner-button {
    background-color: #ff4500; /* نارنجی آتشین */
    color: white !important;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1.0rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.banner-button:hover {
    background-color: #e63900;
    transform: translateY(-3px);
}

.fire-icon {
    font-size: 1.2em;
    margin-left: 10px;
}

/* تصویر پس‌زمینه (عقاب و کد) */
.top-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/eagle-code-pattern.png'); /* مطمئن شوید این تصویر در پوشه images هست */
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    opacity: 0.18;
    z-index: 1;
}

/* === ۲. بخش کارت‌های ویژه (Featured Content) === */
.featured-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* 3 ستون در موبایل هم */
    gap: 15px;
    margin-bottom: 30px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* محتوا به پایین کارت بچسبد */
    height: 180px; /* ارتفاع ثابت برای کارت‌ها */
    padding: 15px;
    border-radius: 12px;
    color: white !important; /* متن سفید */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.3s;
    text-decoration: none;
    background-size: cover;
    background-position: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
}

.feature-card h4 {
    font-size: 0.95rem; /* کمی کوچکتر */
    line-height: 1.4;
    margin-bottom: 5px;
    font-weight: 700;
}

.feature-card .tag {
    font-size: 0.75rem; /* کمی بزرگتر */
    opacity: 0.85;
}

/* تم‌بندی رنگی کارت‌های ویژه با تصاویر پس‌زمینه (مثل تصاویر شما) */
.history-theme {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/featured-history.jpg'); /* تصویر پس‌زمینه تاریخ */
}

.rap-theme {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/featured-music.jpg'); /* تصویر پس‌زمینه موسیقی/رپ */
}

.tech-theme {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/featured-tech.jpg'); /* تصویر پس‌زمینه تکنولوژی */
}


/* === ۳. فید محتوای جدید (Content Feed) === */
.content-feed {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

.feed-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 12px;
    transition: box-shadow 0.3s, transform 0.2s;
    text-decoration: none;
}

.feed-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.feed-item img {
    width: 80px; /* کمی بزرگتر */
    height: 80px; /* کمی بزرگتر */
    object-fit: cover;
    border-radius: 8px; /* گوشه‌های گردتر */
    margin-left: 15px; /* فاصله از متن */
}

.item-details {
    flex-grow: 1;
}

.item-details h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
    color: var(--text-color);
}

.item-details .category {
    font-size: 0.8rem;
    color: var(--light-text-color);
    background-color: var(--background-color);
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 8px; /* فاصله از تاریخ */
    display: inline-block; /* برای اینکه پدینگ و مارجین افقی بگیرد */
}

.item-details .date {
    font-size: 0.8rem;
    color: var(--light-text-color);
    display: inline-block;
}

/* -------------------------------------------------------------------------- */
/* dark mode handoffs برای استایل‌های جدید */
/* -------------------------------------------------------------------------- */

body.dark-mode .top-banner {
    background: linear-gradient(135deg, #0a1931, #0d47a1);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1);
}

body.dark-mode .feature-card {
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

body.dark-mode .feature-card:hover {
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.2);
}

body.dark-mode .content-feed {
    background-color: #1e1e1e;
}

body.dark-mode .feed-item {
    background-color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode .feed-item:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

body.dark-mode .item-details h4 {
    color: #e0e0e0;
}

body.dark-mode .item-details .category,
body.dark-mode .item-details .date {
    background-color: #2c2c2c;
    color: #bdbdbd;
}

/* -------------------------------------------------------------------------- */
/* === ریسپانسیو (Responsive) برای دسکتاپ و تبلت === */
/* -------------------------------------------------------------------------- */

@media (min-width: 768px) {
    /* تنظیمات برای بخش main در دسکتاپ */
    main {
        padding: 30px; /* پدینگ بیشتر در دسکتاپ */
        max-width: 1200px; /* محدود کردن حداکثر عرض محتوا */
        margin: 0 auto; /* وسط‌چین کردن محتوا */
    }

    /* بنر بالا */
    .top-banner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 180px;
        padding: 25px 30px; /* پدینگ از دو طرف در دسکتاپ */
        margin-left: -30px; /* جبران پدینگ main */
        margin-right: -30px; /* جبران پدینگ main */
        width: calc(100% + 60px); /* پوشش کامل عرض */
        border-radius: 15px; /* گوشه‌های گرد در دسکتاپ */
    }

    .banner-content {
        max-width: 60%;
        padding-right: 0;
    }

    .top-banner h2 {
        font-size: 2.5rem;
    }

    .top-banner p {
        font-size: 1.05rem;
    }

    .top-banner::after {
        background-position: center right; /* تصویر به سمت راست در دسکتاپ */
        opacity: 0.15;
    }

    /* کارت‌های ویژه */
    .featured-content-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 ستون در دسکتاپ */
        gap: 20px;
    }

    /* فید محتوا */
    .content-feed {
        grid-template-columns: repeat(2, 1fr); /* 2 ستون برای فید در دسکتاپ */
        gap: 20px;
    }

    .feed-item img {
        width: 100px;
        height: 100px;
    }
    
    .item-details h4 {
        font-size: 1.1rem;
    }
    .item-details .category, .item-details .date {
        font-size: 0.85rem;
    }
}


/* -------------------------------------------------------------------------- */
/* ۲. بخش توصیه ویژه (Hero/Recommendation) */
/* -------------------------------------------------------------------------- */
.hero-recommendation {
    margin-bottom: 25px;
}

.card-recommend {
    background: linear-gradient(135deg, #007bff, #0056b3); /* گرادیانت آبی پرانرژی */
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: right;
}

.card-recommend h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.card-recommend p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.card-recommend button {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.card-recommend button:hover {
    background-color: #e64a19;
}


/* -------------------------------------------------------------------------- */
/* ۳. بخش کارت‌های ویژه (Featured Content) - عالی و رنگی! */
/* -------------------------------------------------------------------------- */
.featured-content h3 {
    font-size: 16px;
    margin-bottom: 15px;
    border-right: 4px solid #ff5722;
    padding-right: 8px;
}

.card-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* برای اسکرول افقی کارت‌ها */
    padding-bottom: 15px; /* فضا برای سایه و اسکرول */
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* اسکرول بهتر در iOS */
}

.feature-card {
    flex: 0 0 160px; /* عرض ثابت برای هر کارت */
    height: 160px;
    padding: 15px;
    border-radius: 12px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.feature-card .tag {
    font-size: 11px;
    opacity: 0.8;
}

/* تم‌بندی کارت‌ها بر اساس محتوا */
.history-theme {
    background: linear-gradient(135deg, #a52a2a, #8b0000); /* قرمز تیره و قوی - تاریخ */
}

.rap-theme {
    background: linear-gradient(135deg, #6a1b9a, #4a148c); /* بنفش عمیق - موسیقی/فلسفه */
}

.tech-theme {
    background: linear-gradient(135deg, #388e3c, #1b5e20); /* سبز تکنولوژی و کدنویسی */
}

}

* -------------------------------------------------------------------------- */
/* ۴. فید محتوا (Content Feed) */
/* -------------------------------------------------------------------------- */
.latest-feed h3 {
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-right: 4px solid #007bff;
    padding-right: 8px;
}

.feed-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    padding: 10px;
}

.feed-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: 10px;
}

.item-details h4 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.4;
}

.item-details .category {
    font-size: 12px;
    color: #888;
    background-color: #f0f0f0;
    padding: 3px 6px;
    border-radius: 4px;
}


.feature-card.rap-theme {
    background-image: url('images/payamturk2.jpg'); /* مسیر عکس */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 20px;
    border-radius: 18px;
    color: #fff; /* نوشته‌ها سفید تا دیده بشن */
    position: relative;
    overflow: hidden;
}
.feature-card.history-theme {
    background-image: url('images/babak2.jpg'); /* مسیر عکس */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 20px;
    border-radius: 18px;
    color: #fff; /* نوشته‌ها سفید تا دیده بشن */
    position: relative;
    overflow: hidden;
}

.feature-card.tech-theme {
    background-image: url('images/gorgod.jpg'); /* مسیر عکس */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 20px;
    border-radius: 18px;
    color: #fff; /* نوشته‌ها سفید تا دیده بشن */
    position: relative;
    overflow: hidden;
}


.feature-card.rap-theme::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* تاریک‌کننده */
    backdrop-filter: blur(2px);
    border-radius: inherit;
}
.feature-card.rap-theme * {
    position: relative;
    z-index: 2;
}

.feature-card tech-theme::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* تاریک‌کننده */
    backdrop-filter: blur(2px);
    border-radius: inherit;
}
.feature-card.rap-theme * {
    position: relative;
    z-index: 2;
}


/* تنظیم عنوان بخش برای هماهنگی با رنگ‌بندی جدید */
.section-title2 {
    text-decoration: none;
    color: var(--text-color);
    border-right: 4px solid var(--primary-color); /* خط قرمز کنار تیتر - همان رنگ تراکتوری شما */
    padding-right: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    transition: color 0.3s;
}



a:link {
  color: black;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: black;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: red;
  background-color: transparent;
  text-decoration: none;
}

a:active {
  color: White;
  background-color: transparent;
  text-decoration: none;
}





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

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

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


/* Dark Mode Handoffs */
body.dark-mode .meta-info p {
    border-right: 3px solid #333;
}

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


