/* --- تعریف فونت محلی Modam --- */
@font-face {
    font-family: 'modam';
    src: url('fonts/modam-100.ttf') format('truetype');
    font-weight: 100; /* یا light */
    font-style: normal;
}

@font-face {
    font-family: 'modam';
    src: url('fonts/modam-500.ttf') format('truetype');
    font-weight: 500; /* یا normal/regular */
    font-style: normal;
}

@font-face {
    font-family: 'modam';
    src: url('fonts/modam-900.ttf') format('truetype');
    font-weight: 900; /* یا bold/black */
    font-style: normal;
}



/* --- عمومی و پایه‌ای --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'modam', Tahoma, sans-serif; /* اضافه کردن فونت‌های جایگزین سیستمی */
    /* جایگزینی پس‌زمینه تصویری با یک گرادینت ساده و شیک */
    background: #e0eafc;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #cfdef3, #e0eafc);
    background: linear-gradient(to right, #cfdef3, #e0eafc);
    color: #3D2C21; /* قهوه‌ای تیره برای متن */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.page-container {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* پس‌زمینه نیمه‌شفاف برای ایجاد عمق */
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* برای سازگاری با سافاری */
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.content-wrapper {
    padding: 20px;
    flex-grow: 1;
}

/* --- بخش پروفایل کاربر --- */
.user-profile-container {
    text-align: center;
    padding: 20px 0;
}

.profile-image-frame {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 7px;
    background: linear-gradient(145deg, #007B8C, #87CEEB); /* گرادینت فیروزه‌ای */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.user-info-data {
    margin-top: 10px;
}

.user-title {
    /* فونت لاله‌زار حذف شد چون نیاز به دانلود از گوگل فونتز داشت. از فونت اصلی استفاده می‌کنیم. */
    font-family: 'modam', 'B Nazanin', 'Times New Roman', serif;
    font-size: 2rem; /* کمی کوچکتر برای فونت‌های استاندارد */
    font-weight: bold;
    color: #005A67; /* فیروزه‌ای تیره */
    margin: 0;
    line-height: 1.3;
}

.user-subtitle {
    font-size: 1rem;
    color: #5c4b41;
    margin-top: 5px;
}

/* --- جداکننده اسلیمی با CSS خالص --- */
.css-divider {
    height: 1px;
    width: 80%;
    margin: 25px auto;
    background: linear-gradient(to right, transparent, #007B8C, transparent);
    position: relative;
}
.css-divider::before, .css-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #007B8C;
    border-radius: 50%;
}
.css-divider::before {
    left: 0;
}
.css-divider::after {
    right: 0;
}


/* --- بلوک‌های محتوا --- */
.content-block {
    margin-bottom: 25px;
}

.block-title {
    font-family: 'modam', 'B Nazanin', 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    color: #005A67;
    margin-bottom: 20px;
}

/* --- دکمه‌های لینک (با طراحی جدید) --- */
.items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.item-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    text-decoration: none;
    color: #005A67;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #007B8C;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.item-button:hover {
    background-color: #007B8C;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 123, 140, 0.3);
}
.item-button:hover .icon {
    fill: white;
}

/* استایل برای SVG آیکون‌ها */
.icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    transition: fill 0.3s ease;
    fill: #005A67; /* رنگ پیش‌فرض آیکون‌ها */
}

.button-text {
    white-space: nowrap;
}


/* --- فوتر --- */
.main-footer-bottom {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    color: #5c4b41;
    background-color: rgba(255, 255, 255, 0.6);
}

.heart-icon {
    color: #e74c3c;
    font-style: normal;
}

/* --- واکنش‌گرایی برای موبایل --- */
@media (max-width: 400px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    .user-title {
        font-size: 1.8rem;
    }
    .block-title {
        font-size: 1.5rem;
    }
}
