/**
 * 100Tik Global Styles
 * ✅ حذف تعریف‌های تکراری فونت و استفاده از Font Manager متمرکز
 * Version: 7.4.2
 */

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

/* ============================================================
   ✅ اعمال فونت Estedad روی کل سایت (بدون !important اضافی)
   ============================================================ */
body,
.tik100-desktop-view,
.tik100-mobile-view,
.tik100-modal,
.tik100-modal * {
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
}

/* =========================================
   1. CSS Custom Properties (Design Tokens)
   ========================================= */
:root {
    /* --- رنگ‌های اصلی برند (Brand Colors) --- */
    --primary-color: #0373EC;
    --primary-dark: #00244B;
    --secondary-color: #FFD800;
    --cta-color: #DE2600;
    
    /* --- گرادیانت‌ها (Gradients) --- */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(3, 115, 236, 0.1) 0%, rgba(3, 115, 236, 0.05) 100%);

    /* --- رنگ‌های متن (Typography Colors) --- */
    --text-main: #252525;
    --text-light: #666666;
    --text-on-primary: #FFFFFF;
    --text-on-yellow: #252525;

    /* --- رنگ‌های پس‌زمینه (Backgrounds) --- */
    --bg-body: #F4F7FB;
    --bg-white: #FFFFFF;
    --border-soft: rgba(3, 115, 236, 0.15);

    /* --- تنظیمات شیشه‌ای (Glassmorphism) --- */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(3, 115, 236, 0.15);
    --glass-blur: blur(12px);

    /* --- سایه‌های سه بعدی (3D Shadows) --- */
    --shadow-sm: 0 2px 8px rgba(0, 36, 75, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 36, 75, 0.1);
    --shadow-lg: 0 15px 40px rgba(3, 115, 236, 0.2);

    /* --- اندازه‌ها --- */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;

    /* --- ارتفاع‌های ثابت (Fixed Heights) --- */
    --header-mobile-height: 55px;
    --header-mobile-margin: 15px;
    --header-mobile-total: 70px;
    --footer-mobile-height: 59px;
    --footer-mobile-margin: 5px;
    --footer-mobile-total: 64px;
    --footer-desktop-height: 60px;
    --footer-desktop-spacing: 40px;
    --footer-desktop-total: 100px;
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
.tik100-desktop-view,
.tik100-mobile-view,
.tik100-modal {
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--text-main);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.tik-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* =========================================
   3. Responsive Display Logic
   ========================================= */
.tik100-mobile-view {
    display: none;
}

.tik100-desktop-view {
    display: block;
}

@media (max-width: 991px) {
    .tik100-desktop-view {
        display: none !important;
    }

    .tik100-mobile-view {
        display: block !important;
    }
}

/* =========================================
   4. Body Spacing System (Professional)
   ========================================= */

/* --- حالت دسکتاپ --- */
@media (min-width: 992px) {
    body {
        padding-bottom: var(--footer-desktop-total) !important;
        background-color: var(--bg-body);
    }
}

/* --- حالت موبایل --- */
@media (max-width: 991px) {
    body {
        padding-top: var(--header-mobile-total) !important;
        padding-bottom: var(--footer-mobile-total) !important;
        background-color: var(--bg-body);
    }
}

/* =========================================
   5. Modal Base Styles
   ========================================= */
.tik100-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 36, 75, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tik100-modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: tikSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    transition: 0.3s;
}

.close-modal:hover {
    background: var(--cta-color);
    color: white;
    transform: rotate(90deg);
}

@keyframes tikSlideUp {
    from {
        transform: translateY(60px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* =========================================
   6. Utility Classes
   ========================================= */
.btn-yellow {
    background-color: var(--secondary-color);
    color: var(--text-on-yellow);
    border-radius: var(--radius-pill);
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 216, 0, 0.4);
    padding: 10px 20px;
    display: inline-block;
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 216, 0, 0.6);
}

.btn-red {
    background-color: var(--cta-color);
    color: var(--text-on-primary);
    border-radius: var(--radius-pill);
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(222, 38, 0, 0.4);
    padding: 10px 20px;
    display: inline-block;
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(222, 38, 0, 0.6);
}

/* =========================================
   7. Print Styles
   ========================================= */
@media print {
    .tik100-mobile-view,
    .tik100-desktop-view,
    .tik100-modal {
        display: none !important;
    }
}