@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-color: #080808; /* مشکی عمیق‌تر */
    --surface-color: #121212;
    --text-color: #e8e8e8;
    --text-muted: #888888;
    --accent-color: #c5a059; /* برنزی/طلایی ملایم و حماسی */
    --primary-font: 'Playfair Display', serif;
    --secondary-font: 'Montserrat', sans-serif;
    --nav-glass-bg: rgba(8, 8, 8, 0.45);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--secondary-font);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* گرادیانت اصلاح شده: بیضی شکل، مرکز کمی روشن‌تر برای موبایل، و محو شدن تدریجی و کامل در لبه‌ها */
    background: radial-gradient(ellipse farthest-corner at center, #242424 10%, #080808 70%, var(--bg-color) 100%);
    /*background: radial-gradient(ellipse farthest-corner at center, #242424 0%, #111111 50%, var(--bg-color) 100%);*/
    position: relative;
}

.logo-container {
    animation: fadeIn 2.5s ease-in-out;
}
.logo-container img {
    width:200px;
}
.backpack-logo {
    color: var(--accent-color);
    margin-bottom: 25px;
    opacity: 0.9;
}

.logo-type {
    font-family: var(--primary-font);
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-family: var(--secondary-font);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 300;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: pulse 2s infinite;
}
.scroll-indicator span { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; }
.scroll-indicator .line { width: 1px; height: 40px; background-color: var(--accent-color); }

/* --- Navigation & Hamburger --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 10000; /* بالاتر از منوی تمام صفحه */
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.5s ease;
}

.main-nav.sticky {
    opacity: 1;
    transform: translateY(0);
    background: var(--nav-glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1); /* خط بسیار محو برنزی */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--primary-font);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-logo .backpack-logo.small {
    color: var(--accent-color);
    margin-right: 12px;
    margin-bottom: 0;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 10001;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--text-color);
    transition: all 0.4s ease;
}

/* انیمیشن تبدیل همبرگر به ضربدر */
.hamburger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background-color: var(--accent-color); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background-color: var(--accent-color); }

/* --- Fullscreen Overlay Menu --- */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(8, 8, 8, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-links {
    list-style: none;
    text-align: center;
}

.menu-links li {
    margin: 25px 0;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.fullscreen-menu.active .menu-links li {
    transform: translateY(0);
    opacity: 1;
}

/* تاخیر در ظاهر شدن آیتم‌های منو */
.fullscreen-menu.active .menu-links li:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu.active .menu-links li:nth-child(2) { transition-delay: 0.2s; }
.fullscreen-menu.active .menu-links li:nth-child(3) { transition-delay: 0.3s; }
.fullscreen-menu.active .menu-links li:nth-child(4) { transition-delay: 0.4s; }

.menu-links a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--primary-font);
    font-size: 2.5rem;
    transition: color 0.3s ease;
}

.menu-links a:hover {
    color: var(--accent-color);
}

/* --- Section Headers --- */
section { padding: 120px 30px; max-width: 1400px; margin: 0 auto; }

.section-header {
    text-align: center;
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--primary-font);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-color);
}

.accent-text { color: var(--accent-color); font-size: 1.5rem; font-family: var(--primary-font); }
/* افکت موشک متحرک در پس زمینه */
.souls-section {
    position: relative;
    overflow: hidden; /* برای اینکه موشک از کادر بیرون نزند */
    z-index: 1;
}
/* افکت ۳ موشک جنگی در حال سقوط */
.souls-section {
    position: relative;
    overflow: hidden; /* محدود کردن حرکت موشک‌ها فقط در همین سکشن */
    z-index: 1;
}

.missile-container {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    pointer-events: none; /* تا مزاحم کلیک کاربر روی کارت‌ها نشوند */
    z-index: -1;
}

.missile {
    position: absolute;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5a059' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z'/%3E%3Cpath d='m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'/%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
}

/* موشک اول: سایز بزرگ، از بیرون کادر سمت چپ بالا */
/* موشک اول: سایز بزرگ، از سمت چپ */
.missile.m1 {
    top: -200px; 
    left: 5%;
    width: 180px; 
    height: 180px;
    /* استفاده از ease-in برای ایجاد شتاب جاذبه در سقوط */
    animation: realisticStrike 12s ease-in infinite;
    animation-delay: 0s; /* شلیک فوری */
}

/* موشک دوم: سایز کوچک، از وسط */
.missile.m2 {
    top: -150px; 
    left: 40%;
    width: 100px; 
    height: 100px;
    animation: realisticStrike 15s ease-in infinite;
    animation-delay: 3s; /* شلیک با ۳ ثانیه تاخیر */
}

/* موشک سوم: سایز متوسط، از سمت راست */
.missile.m3 {
    top: -250px; 
    left: 70%;
    width: 140px; 
    height: 140px;
    animation: realisticStrike 17s ease-in infinite;
    animation-delay: 7s; /* شلیک با ۷ ثانیه تاخیر */
}

/* انیمیشن ضربه واقعی (سقوط آزاد با شتاب و بُعد 3D) */
@keyframes realisticStrike {
    0% { 
        /* نقطه شروع: بالا، کمی کوچکتر (دورتر)، زاویه تندتر رو به پایین */
        transform: translate(0, 0) scale(0.8) rotate(110deg); 
        opacity: 0; 
    }
    5% { 
        opacity: 0.18; /* ظاهر شدن در آسمان */
    }
    25% { 
        /* نقطه برخورد: سرعت به اوج رسیده، افت عمودی بسیار شدید است و موشک کمی بزرگتر شده (نزدیکتر شده) */
        transform: translate(35vw, 130vh) scale(1.2) rotate(110deg); 
        opacity: 0; /* در لحظه برخورد به زمین محو می‌شود */
    }
    100% { 
        /* از 25% تا 100% نامرئی می‌ماند تا فاصله زمانی طبیعی بین شلیک‌ها ایجاد شود */
        transform: translate(35vw, 130vh) scale(1.2) rotate(110deg); 
        opacity: 0; 
    }
}

/* --- Souls Grid --- */
.souls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    position: relative;
    max-height: 350px;
    overflow: hidden;
    transition: max-height 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.souls-grid.expanded { max-height: 5000px; }

.souls-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(180deg, transparent, var(--bg-color));
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.souls-grid.expanded::after { opacity: 0; }

.soul-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.soul-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.soul-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: top center; /* تراز شدن با بالای عکس برای نمایش بهتر چهره */
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}

.soul-card:hover .soul-photo {
    filter: grayscale(0%) contrast(1); 
}
.soul-info { padding: 20px; text-align: center; }
.soul-name { font-family: var(--primary-font); font-size: 1.2rem; font-weight: 400; }
.soul-age { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }
/* تنظیمات اختصاصی موبایل برای نمایش ۳ کارت کنار هم */
@media (max-width: 768px) {
    .souls-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px; /* فاصله کمتر بین کارت‌ها */
    }
    .logo-type {font-size: 2rem;}
    .hero-subtitle {font-size: 0.7rem;}
    .soul-info {
        padding: 10px 4px; /* فضای داخلی کمتر */
    }
    .soul-name {
        font-size: 0.75rem; /* نام کوچکتر */
        letter-spacing: 0;
    }
    .soul-age {
        font-size: 0.6rem; /* سن کوچکتر */
        letter-spacing: 0;
        margin-top: 2px;
    }
}
/* دکمه حماسی و شیک */
.see-all-btn {
    display: block;
    margin: 50px auto 0;
    padding: 15px 40px;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.see-all-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}


/* --- News Section --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }

.news-card {
    background: transparent;
    cursor: pointer;
}

.news-card:hover .news-thumbnail { transform: scale(1.02); }

.news-thumbnail {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    transition: transform 0.6s ease;
}

.news-content { padding: 25px 0; }

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.news-title { font-family: var(--primary-font); font-size: 1.5rem; font-weight: 400; line-height: 1.4; transition: color 0.3s; }
.news-card:hover .news-title { color: var(--accent-color); }

/* --- Animations --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0% { opacity: 0.4; } 50% { opacity: 0.8; } 100% { opacity: 0.4; } }
/* جابجایی ترتیب نقشه و فرم در موبایل (نقشه بالا، فرم پایین) */
/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
    display: none; /* در دسکتاپ مخفی است */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    z-index: 10000;
    justify-content: space-around;
    padding: 12px 0;
    /* این خط باعث می‌شود در آیفون‌های جدید منو زیر خط پایین صفحه نرود */
    padding-bottom: calc(12px + env(safe-area-inset-bottom)); 
}
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: var(--secondary-font);
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    color: var(--accent-color); /* این خط آیکون‌ها را طلایی می‌کند */
    transition: stroke 0.3s ease, transform 0.3s ease;
}
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item:active,
.mobile-bottom-nav .nav-item.active {
    color: var(--accent-color);
}
.mobile-bottom-nav .nav-item:hover svg,
.mobile-bottom-nav .nav-item:active svg,
.mobile-bottom-nav .nav-item.active svg {
    transform: translateY(-3px);
}

/* نمایش فقط در موبایل */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    /* برای اینکه محتوای انتهای سایت زیر منو مخفی نشود */
    body {
        padding-bottom: 75px; 
    }
}
#vom-load-more-status .loading-text {
    display: inline-block;
    animation: textFlicker 1.5s infinite;
    font-size: 0.9rem;
    text-transform: uppercase;
}

@keyframes textFlicker {
    0% { opacity: 0.2; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.2; transform: scale(0.98); }
}

/*single*/
/* --- Single Post Content Styles --- */
.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0; /* رنگ کمی روشن‌تر برای خوانایی بهتر روی پس‌زمینه مشکی */
    font-family: var(--secondary-font);
}

.story-content p {
    margin-bottom: 25px;
}

/* استایل دهی به لینک‌های داخل متن */
.story-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-color);
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.story-content a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
    background-color: rgba(197, 160, 89, 0.1);
}

/* استایل دهی به تصاویر داخل متن وردپرس */
.story-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(197, 160, 89, 0.2); /* حاشیه ظریف طلایی */
    display: block; /* برای اینکه تصویر در یک خط جداگانه قرار گیرد */
}

/* اگر تصویری کپشن (توضیحات) داشت */
.wp-caption {
    max-width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.wp-caption img {
    margin-bottom: 10px;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--primary-font);
}

/* استایل برای نقل قول (Blockquote) */
.story-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 15px 25px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--primary-font);
    font-size: 1.3rem;
    font-style: italic;
    color: #fff;
    border-radius: 0 8px 8px 0;
}
