/**
 * Homepage Styles - استایل‌های یکپارچه صفحه اصلی
 * ✅ حذف تعریف‌های تکراری فونت و استفاده از Font Manager متمرکز
 * ✅ تمام فونت‌ها و آیکون‌ها از لوکال هاست و از طریق Font Manager اجرا می‌شوند
 * Version: 1.0.0
 */

/* ============================================================
   ✅ فونت‌ها توسط Font Manager متمرکز بارگذاری می‌شوند
   ❌ تعریف @font-face در این فایل حذف شد
   ============================================================ */

/* ============================================================
   متغیرهای CSS - یکپارچه با سیستم برند
   ============================================================ */
:root {
    --tik-primary: #1e40af;
    --tik-primary-light: #3b82f6;
    --tik-secondary: #06b6d4;
    --tik-accent: #f97316;
    --tik-accent-hover: #ea580c;
    --tik-white: #ffffff;
    --tik-dark: #1e293b;
    --tik-gray: #64748b;
    --tik-gray-light: #f8fafc;
    --tik-border: #e2e8f0;
    --tik-radius: 16px;
    --tik-shadow: 0 12px 32px rgba(0,0,0,0.08);
    --tik-transition: 0.3s ease;
}

/* ============================================================
   استایل‌های پایه بخش‌ها
   ============================================================ */
.tik-section {
    padding: 60px 20px;
}

.tik-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tik-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: var(--tik-dark);
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
}

.tik-section-subtitle {
    text-align: center;
    color: var(--tik-gray);
    margin-bottom: 40px;
    font-size: 1rem;
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
}

/* ============================================================
   استایل‌های هدر بخش‌ها (header bar)
   ============================================================ */
.tik-section-header-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 15px 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.tik-section-header-bar .tik-header-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    color: #fff;
}

.tik-section-header-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
}

.tik-banner-header-bar {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 60%, #1E88E5 100%);
}

.tik-featured-header-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.tik-featured-header-bar .tik-bolt-icon {
    color: #FFD700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* ============================================================
   استایل‌های گرید آگهی‌ها
   ============================================================ */
.tik-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.tik-grid-item {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tik-grid-item:hover {
    transform: translateY(-4px);
}

/* ============================================================
   استایل‌های کارت‌های فال‌بک
   ============================================================ */
.tik-card.tik-fallback-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf0;
    height: 100%;
    transition: all 0.3s ease;
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
}

.tik-card.tik-fallback-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.tik-card-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.tik-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tik-card.tik-fallback-card:hover .tik-card-thumbnail img {
    transform: scale(1.05);
}

.tik-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f59e0b;
    color: #fff;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
}

.tik-card-badge.banner-badge {
    background: #3b82f6;
}

.tik-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tik-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
}

.tik-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tik-card-title a:hover {
    color: #3b82f6;
}

.tik-card-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f97316;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
}

.tik-card-price i {
    font-size: 0.8rem;
    color: #94a3b8;
}

.tik-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #3b82f6;
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 4px;
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
}

.tik-card-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    color: #fff;
}

/* ============================================================
   استایل‌های پیام‌های خطا و خالی
   ============================================================ */
.tik-not-found-msg {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
}

.tik-not-found-msg i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.tik-not-found-msg p {
    font-size: 1.1rem;
}

/* ============================================================
   استایل‌های ریسپانسیو کلی
   ============================================================ */
@media (max-width: 1024px) {
    .tik-ads-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tik-section {
        padding: 40px 16px;
    }
    
    .tik-ads-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .tik-section-header-bar {
        padding: 12px 16px;
        border-radius: 12px;
    }
    
    .tik-section-header-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tik-section {
        padding: 30px 12px;
    }
    
    .tik-ads-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .tik-section-title {
        font-size: 1.3rem;
    }
    
    .tik-section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }
    
    .tik-section-header-bar {
        padding: 10px 14px;
        border-radius: 10px;
    }
    
    .tik-section-header-text {
        font-size: 12px;
    }
}

/* ============================================================
   دسترسی‌پذیری - کاهش انیمیشن
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .tik-grid-item:hover,
    .tik-card.tik-fallback-card:hover {
        transform: none !important;
    }
    
    .tik-card.tik-fallback-card:hover .tik-card-thumbnail img {
        transform: none !important;
    }
    
    .tik-card-btn:hover {
        transform: none !important;
    }
}

/* ============================================================
   پرینت
   ============================================================ */
@media print {
    .tik-section {
        padding: 20px 0 !important;
    }
    
    .tik-section-header-bar {
        background: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .tik-card-btn {
        display: none !important;
    }
}