/* تعریف دقیق فونت‌ها مطابق نام فایل‌های شما */

@font-face {
    font-family: 'YekanBakh-Heavy';
    src: url('fonts/Yekan Bakh FaNum 07 Heavy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'YekanBakh-Regular';
    src: url('fonts/YekanBakhFaNum-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lalezar-Regular';
    src: url('fonts/Lalezar-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    text-decoration: none;
}

body {
    /* لاله زار برای متن‌های معمولی */
    font-family: 'Lalezar-Regular', cursive; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(-45deg, #141414, #2c3e50, #000000, #434343);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #e0e0e0;
    padding: 20px;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#snow-canvas { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1000; }

.container {
    width: 100%;
    max-width: 1100px;
    text-align: right; /* راست‌چین */
    z-index: 2;
}

/* نوار پروفایل بالا */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

.user-info { display: flex; align-items: center; gap: 12px; }
.user-info img { 
    width: 50px; height: 50px; border-radius: 50%; 
    border: 2px solid #00d2ff; object-fit: cover; 
}
.user-info .name { font-family: 'YekanBakh-Regular'; font-weight: bold; font-size: 15px; color: #fff; }
.user-info .role { font-family: 'YekanBakh-Regular'; font-size: 11px; color: #00d2ff; }

/* هدر اصلی */
header { margin-bottom: 60px; text-align: right; }

h1 {
    font-family: 'YekanBakh-Heavy', sans-serif; /* پورتال ورونیک با فونت سنگین */
    font-size: 4rem;
    font-weight: normal;
    color: #ffffff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    margin-bottom: 5px;
}

.main-subtitle {
    font-family: 'YekanBakh-Regular', sans-serif; /* زیرعنوان با یکان بخ معمولی */
    font-size: 1.6rem;
    color: #00d2ff;
    display: block;
}

.section-title {
    font-family: 'YekanBakh-Regular', sans-serif;
    text-align: right;
    font-size: 1.8rem; margin: 50px 0 25px 0;
    padding-right: 15px; border-right: 4px solid #00d2ff; color: #fff;
}

/* کارت‌ها */
.cards-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }

.card {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    padding: 30px 20px; transition: 0.3s ease; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; height: 190px;
}

.card:hover { transform: translateY(-8px); border-color: #00d2ff; background: rgba(255, 255, 255, 0.1); }
.card i { font-size: 2.8rem; margin-bottom: 15px; color: rgba(255,255,255,0.7); }

.card h3 {
    font-family: 'YekanBakh-Regular', sans-serif;
    font-size: 1.2rem; font-weight: 500; text-align: center;
}

/* فوتر */
footer {
    margin-top: 80px; padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1); width: 100%; text-align: center;
}
footer p { margin-bottom: 10px; font-size: 1.1rem; color: #aaa; font-family: 'Lalezar-Regular'; }
footer a { color: #fff; font-weight: bold; font-family: 'Lalezar-Regular'; }


/* تعریف فونت از پوشه روت */
@font-face {
    font-family: 'YekanBakh-Heavy';
    src: url('../fonts/Yekan Bakh FaNum 07 Heavy.ttf') format('truetype');
    font-weight: bold;
}

/* استایل مدرن دکمه‌های فعال (Active States) */
.menu-item.active {
    background: linear-gradient(135deg, var(--main-purple), #a78bfa) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    border: none !important;
    transform: scale(1.02);
}

.view-switch.active span {
    color: var(--main-purple) !important;
    font-weight: bold;
}