/* ============================================
   فونت و تنظیمات پایه
   ============================================ */
@import url('https://cdn.jsdelivr.net/gh/rastikerdir/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    /* رنگ‌های اصلی */
    --primary-dark: #0a1a2e;
    --primary: #103b7f;
    --primary-light: #1a5ba8;
    --secondary: #1e3a5f;
    --accent: #d4af37;
    --accent-light: #f0c75e;
    --accent-dark: #b8960c;
    
    /* رنگ‌های حالت روشن */
    --bg-light: #f8fafc;
    --card-light: #ffffff;
    --text-light: #0f172a;
    --text-muted-light: #64748b;
    --border-light: #e2e8f0;
    
    /* رنگ‌های حالت تیره */
    --bg-dark: #0f172a;
    --card-dark: #1e293b;
    --text-dark: #f1f5f9;
    --text-muted-dark: #94a3b8;
    --border-dark: #334155;
    
    /* متغیرهای عمومی */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.2);
    --shadow-accent: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* حالت پیش‌فرض (روشن) */
:root {
    --bg-body: var(--bg-light);
    --bg-card: var(--card-light);
    --text-primary: var(--text-light);
    --text-secondary: var(--text-muted-light);
    --border-color: var(--border-light);
}

/* حالت تیره */
body.dark-mode {
    --bg-body: var(--bg-dark);
    --bg-card: var(--card-dark);
    --text-primary: var(--text-dark);
    --text-secondary: var(--text-muted-dark);
    --border-color: var(--border-dark);
}

/* ریست عمومی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ============================================
   اسکرول بار سفارشی
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ============================================
   سوئیچ دارک مود
   ============================================ */
.theme-switch-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.theme-switch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.theme-switch:hover {
    transform: scale(1.1);
    background: var(--accent);
    color: var(--primary-dark);
}

/* ============================================
   هدر سایبری
   ============================================ */
.main-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path fill="white" d="M10,10 L90,10 L90,90 L10,90 Z M20,20 L80,20 L80,80 L20,80 Z"/><circle cx="50" cy="50" r="15"/></svg>');
    background-repeat: repeat;
    animation: moveGrid 30s linear infinite;
    pointer-events: none;
}

@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.header-top {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-logo img,
.header-emblem img,
.header-leader-img img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
    transition: var(--transition-normal);
}

.header-logo img:hover,
.header-emblem img:hover,
.header-leader-img img:hover {
    filter: drop-shadow(0 0 15px var(--accent));
    transform: scale(1.02);
}

/* منو اصلی */
.header-bottom {
    padding: 15px 0;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.date-time {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    color: white;
    display: flex;
    gap: 10px;
    align-items: center;
    backdrop-filter: blur(5px);
}

.date-time i {
    color: var(--accent);
}

.main-nav {
    flex: 1;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-menu li a {
    display: block;
    padding: 10px 18px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition-normal);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 70%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* جستجوی کوچک */
.search-mini form {
    display: flex;
    gap: 5px;
}

.search-mini input {
    padding: 8px 15px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-family: inherit;
}

.search-mini input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-mini input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
}

.search-mini button {
    background: var(--accent);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary-dark);
    transition: var(--transition-normal);
}

.search-mini button:hover {
    transform: scale(1.05);
    background: white;
}

/* ============================================
   Hero Slider
   ============================================ */
.hero-slider {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.08"><path fill="white" d="M20,20 L80,20 L80,80 L20,80 Z"/><circle cx="50" cy="50" r="8"/><circle cx="30" cy="30" r="3"/><circle cx="70" cy="30" r="3"/><circle cx="30" cy="70" r="3"/><circle cx="70" cy="70" r="3"/></svg>');
    background-repeat: repeat;
    animation: moveGrid 20s linear infinite;
}

.slider-container {
    position: relative;
    width: 100%;
    z-index: 1;
}

.slide {
    text-align: center;
    padding: 80px 20px;
    color: white;
}

.slide-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* جستجوی هوشمند */
.smart-search-container {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 20px;
}

.smart-search-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 60px;
    padding: 10px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.smart-search-box h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--accent);
}

.search-wrapper {
    display: flex;
    gap: 10px;
}

.search-wrapper input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-body);
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.search-wrapper button {
    width: 55px;
    background: var(--accent);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    color: var(--primary-dark);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.search-wrapper button:hover {
    transform: scale(1.05);
    background: var(--accent-light);
}

/* نتایج جستجوی هوشمند */
.smart-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: none;
    z-index: 100;
}

.results-list {
    padding: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.result-item:hover {
    background: var(--border-color);
}

.result-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.result-info h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.result-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.no-results {
    padding: 30px;
    text-align: center;
    color: var(--text-secondary);
}

/* ============================================
   بخش‌های محتوا
   ============================================ */
.content-section {
    margin: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.section-header h2 i {
    color: var(--accent);
    margin-left: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.view-all {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
}

.view-all:hover {
    transform: translateX(-5px);
    color: var(--accent-light);
}

/* گرید کارت‌ها */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* کارت محتوا */
.content-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform var(--transition-slow);
}

.content-card:hover .card-image {
    transform: scale(1.02);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.content-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 50px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.card-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.card-info h3 a:hover {
    color: var(--accent);
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-meta i {
    margin-left: 5px;
}

/* کارت ویدیو */
.video-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: var(--transition-normal);
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent);
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    color: white;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.video-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.video-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* کارت عکس */
.photo-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.photo-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    font-size: 40px;
    color: white;
}

.photo-info {
    padding: 15px;
}

.photo-info h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.photo-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.photo-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================
   صفحات جزئیات
   ============================================ */
.detail-page {
    padding: 40px 0;
}

.detail-header {
    margin-bottom: 30px;
}

.detail-header h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.detail-meta span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-meta i {
    margin-left: 5px;
    color: var(--accent);
}

/* پلیر صوتی */
.audio-player-container {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin: 30px 0;
}

.audio-player-card {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.album-art {
    width: 150px;
    height: 150px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-controls {
    flex: 1;
}

audio {
    width: 100%;
    border-radius: 30px;
}

/* پلیر ویدیو */
.video-player-wrapper {
    background: #000;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin: 30px 0;
    box-shadow: var(--shadow-lg);
}

.video-player-wrapper video {
    width: 100%;
    display: block;
}

.no-video {
    text-align: center;
    padding: 100px;
    background: var(--bg-card);
    color: var(--text-secondary);
}

/* بخش دانلود */
.download-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.download-section h3 {
    margin-bottom: 15px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-normal);
}

.download-btn.high {
    background: var(--primary);
    color: white;
}

.download-btn.medium {
    background: var(--secondary);
    color: white;
}

.download-btn.low {
    background: #475569;
    color: white;
}

.download-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.download-btn .size {
    font-size: 11px;
    opacity: 0.8;
}

/* متن کامل */
.full-text-section {
    margin: 30px 0;
}

.full-text-section h3 {
    margin-bottom: 15px;
}

.text-content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    line-height: 2;
    max-height: 600px;
    overflow-y: auto;
}

.copy-text-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--accent);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.copy-text-btn:hover {
    transform: scale(1.02);
}

/* لینک PDF */
.pdf-section {
    margin: 20px 0;
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #dc2626;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition-normal);
}

.pdf-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ZIP دانلود */
.zip-download {
    margin: 20px 0;
}

.zip-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #16a34a;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition-normal);
}

.zip-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* گالری تصاویر */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 30px;
    color: white;
}

/* بخش برچسب‌ها */
.tags-section {
    margin: 30px 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.tag:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* بخش پیشنهاد مشابه */
.related-section {
    margin: 40px 0;
}

.related-section h3 {
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-img {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.related-card h4 {
    font-size: 0.85rem;
    padding: 12px 12px 5px;
}

.related-card span {
    font-size: 0.7rem;
    padding: 0 12px 12px;
    display: block;
    color: var(--text-secondary);
}

/* ============================================
   فیلتر و آرشیو
   ============================================ */
.archive-header {
    margin: 30px 0;
}

.archive-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.filter-bar {
    margin: 20px 0;
}

.filter-select {
    padding: 10px 15px;
    border-radius: 30px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* صفحه جستجو */
.search-header {
    margin: 30px 0;
}

.search-stats {
    color: var(--accent);
    margin: 10px 0;
}

.search-filters {
    margin: 20px 0;
}

.search-results {
    margin: 30px 0;
}

.search-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.search-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.search-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.search-content {
    flex: 1;
}

.search-content h3 {
    margin-bottom: 8px;
}

.search-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.search-content h3 a:hover {
    color: var(--accent);
}

.search-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.type-badge {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
}

/* صفحه تیکت */
.ticket-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.ticket-page h1 {
    text-align: center;
    margin-bottom: 30px;
}

.ticket-form-wrapper {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: inherit;
    background: var(--bg-body);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
}

.submit-btn {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-normal);
}

.submit-btn:hover {
    transform: scale(1.02);
    background: var(--accent-light);
}

/* ============================================
   پیجینیشن
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.page-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.page-info {
    padding: 8px 16px;
    color: var(--text-secondary);
}

/* ============================================
   آلرت و پیام‌ها
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
}

.alert.success {
    background: #166534;
    color: white;
    border: 1px solid #15803d;
}

.alert.error {
    background: #991b1b;
    color: white;
    border: 1px solid #dc2626;
}

/* ============================================
   فوتر
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #050e1a 100%);
    color: white;
    margin-top: 60px;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-newsletter h3,
.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-newsletter h3::after,
.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter input {
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter button {
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-normal);
}

.footer-newsletter button:hover {
    transform: scale(1.02);
    background: var(--accent-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.ticket-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition-normal);
}

.ticket-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.7;
}

.footer-bottom p {
    margin: 5px 0;
}

/* ============================================
   رسپانسیو
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
    
    .content-grid,
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: var(--transition-normal);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li a {
        display: block;
        padding: 15px 20px;
    }
    
    .header-row {
        justify-content: center;
    }
    
    .header-logo img,
    .header-emblem img,
    .header-leader-img img {
        height: 50px;
    }
    
    .header-info {
        flex-direction: column;
    }
    
    .date-time {
        font-size: 12px;
    }
    
    .slide-content h2 {
        font-size: 1.6rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .smart-search-box {
        padding: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-grid,
    .video-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .audio-player-card {
        flex-direction: column;
        text-align: center;
    }
    
    .album-art {
        margin: 0 auto;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        justify-content: center;
    }
    
    .search-item {
        flex-direction: column;
        text-align: center;
    }
    
    .search-icon {
        align-self: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-newsletter h3::after,
    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-newsletter form {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .detail-header h1 {
        font-size: 1.5rem;
    }
    
    .detail-meta {
        gap: 10px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .ticket-form-wrapper {
        padding: 20px;
    }
}

/* ============================================
   انیمیشن‌ها و افکت‌ها
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card,
.video-card,
.photo-card {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease infinite;
}

/* ============================================
   کلاس‌های کمکی
   ============================================ */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
    
}