/* --- Fonts --- */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --- CSS Variables (Light & Dark Mode) --- */
:root {
    /* Light Mode (Default) */
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --brand-red: #E60000; /* قرمز هایپر آرین */
    --brand-red-hover: #cc0000;
    --border-color: #e9ecef;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    
    --font-main: 'YekanBakh', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

:root {
    --header-height: 95px;        /* دسکتاپ */
    --stories-gap: 20px;          /* فاصله استاندارد از هدر (مثل اینستاگرام) */
}

/* موبایل و تبلت */
@media (max-width: 992px) {
    :root {
        --header-height: 80px;
        --stories-gap: 15px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    :root {
        --header-height: 72px;
        --stories-gap: 12px;
    }
}


[data-theme="dark"] {
    /* Dark Mode */
    --bg-color: #0f1014;
    --surface-color: #1a1c23;
    --text-primary: #f8f9fa;
    --text-secondary: #a0aab2;
    --brand-red: #ff3333; /* قرمز روشن‌تر برای دارک مود */
    --brand-red-hover: #ff4d4d;
    --border-color: #2a2d35;
    --glass-bg: rgba(26, 28, 35, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* اسکرول‌بار سفارشی و مدرن */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--brand-red); border-radius: 10px; }