﻿@font-face { font-family: 'IRANYekanX'; src: url('../fonts/IRANYekanXVF.woff2') format('woff2-variations'), url('../fonts/IRANYekanXVF.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --bg-color: #fafafa; --text-main: #262626; --text-light: #8e8e8e; --text-muted: #a3a3a3; --theme-color: #4f46e5; --border-color: #dbdbdb; --white: #fff; --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-800: #1f2937; --trust-green: #10b981; --gradient-ig: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'IRANYekanX', Tahoma, 'B Yekan', sans-serif; background: var(--gray-100); color: var(--text-main); line-height: 1.5; display: flex; justify-content: center; overflow-x: hidden; width: 100%; }

/* ========== خط شعار و آدرس ========== */
.slogan-line { font-size: 1rem; font-weight: 700; color: var(--theme-color); text-align: center; margin: 12px 0; background: #f0f9ff; padding: 8px 12px; border-radius: 40px; width: 100%; white-space: nowrap; overflow-x: auto; }
.slogan-line i { margin: 0 6px; color: #10b981; font-size: 1.1rem; }
.address-line { font-size: 0.85rem; color: var(--text-muted); background: #f9fafb; padding: 8px 12px; border-radius: 20px; display: flex; justify-content: center; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.address-line i { color: var(--theme-color); margin-left: 5px; font-size: 0.9rem; }

/* ========== آمار ========== */
.stat-value { font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; direction: ltr; display: inline-block; }
.stat-label { font-size: 0.85rem; font-weight: 600; color: #4b5563; letter-spacing: 0.5px; margin-top: 6px; transition: .2s; }
.stat-item:hover .stat-value, .stat-item:hover .stat-label { color: var(--theme-color); transform: scale(1.02); }
.stat-label::before { content: "•"; margin-left: 4px; color: var(--theme-color); }

/* ========== هایلایت (دایره‌های پایین پروفایل) ========== */
.highlights-container { display: flex; justify-content: space-around; gap: .5rem; padding: 1rem .5rem; overflow-x: auto; scrollbar-width: none; }
.highlights-container::-webkit-scrollbar { display: none; }
.highlight-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .2s; min-width: 70px; }
.highlight-item:hover { transform: translateY(-3px); }
.highlight-ring { width: 70px; height: 70px; background: linear-gradient(135deg, #f0f0f0, #fff); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); transition: .3s; }
.highlight-item:hover .highlight-ring { box-shadow: 0 8px 20px rgba(0,0,0,.15); background: linear-gradient(135deg, #fff, #fafafa); }
.highlight-img { width: 56px; height: 56px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.02); }
.highlight-img i { font-size: 2rem; transition: .2s; }
.highlight-item:nth-child(1) i { color: #3b82f6; }
.highlight-item:nth-child(2) i { color: #10b981; }
.highlight-item:nth-child(3) i { color: #8b5cf6; }
.highlight-item:nth-child(4) i { color: #ef4444; }
.highlight-item:nth-child(5) i { color: #f59e0b; }
.highlight-item:hover .highlight-img i { transform: scale(1.1); filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.highlight-text { font-size: .75rem; font-weight: 600; color: #4b5563; text-align: center; background: #f3f4f6; padding: 4px 10px; border-radius: 30px; transition: .2s; white-space: nowrap; }
.highlight-item:hover .highlight-text { background: var(--theme-color); color: #fff; }

/* ========== کانتینر اصلی ========== */
.app-container { width: 100%; max-width: 420px; min-height: 100vh; background: var(--white); margin: 0 auto; box-shadow: 0 4px 12px rgba(0,0,0,.05); overflow-x: hidden; }
.profile-section { padding: 1.5rem 1rem 0; }
.profile-header-grid { display: grid; grid-template-columns: 86px 1fr; gap: 1rem; align-items: center; }
.profile-image-container { width: 86px; height: 86px; border-radius: 50%; padding: 3px; background: var(--gray-200); position: relative; transition: transform .2s; }
.profile-image-container.has-story { background: var(--gradient-ig); cursor: pointer; }
.profile-image-container.has-story:active { transform: scale(.95); }
.profile-image { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: var(--white); }
.stats-container { display: flex; justify-content: space-around; align-items: center; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.bio-section { margin-top: 1rem; font-size: .875rem; }
.bio-name { font-weight: 700; font-size: 1rem; }
.bio-category { color: var(--text-light); margin-bottom: .35rem; font-size: .8rem; }
.bio-text p { margin-bottom: .15rem; }

/* ========== تب‌ها و گالری ========== */
.feed-tabs { display: flex; border-bottom: 1px solid var(--border-color); }
.feed-tab { flex: 1; text-align: center; padding: .6rem 0; color: var(--text-light); cursor: pointer; transition: .3s; }
.feed-tab.active { color: var(--text-main); border-bottom: 2px solid var(--text-main); }
.feed-tab i { font-size: 1.2rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--white); }
.post-item { position: relative; aspect-ratio: 4/5; background: var(--gray-200); overflow: hidden; cursor: pointer; }
.post-image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-item:active .post-image { transform: scale(.98); }
.post-icon { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); pointer-events: none; }

/* ========== بخش‌های اصلی ========== */
.content-section { padding: 2rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.section-title i { color: var(--theme-color); }

/* ========== تماس ========== */
.contact-wrapper { display: flex; flex-direction: column; gap: .75rem; }
.btn-call-direct { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #1f2937, #374151); color: #fff; padding: 1.1rem; border-radius: 16px; font-weight: 700; text-decoration: none; transition: transform .2s; }
.btn-call-direct:active { transform: scale(.98); }
.social-messaging-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.social-btn { background: var(--white); border: 1px solid var(--gray-200); padding: 1rem 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.social-btn i { font-size: 1.8rem; }

/* ========== فرم ========== */
.form-card { background: var(--white); border: 1px solid var(--gray-200); padding: 1.25rem; border-radius: 16px; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .85rem; margin-bottom: .4rem; font-weight: 600; }
.form-input { width: 100%; padding: .85rem 1rem; border: 1px solid var(--border-color); border-radius: 10px; font-size: .9rem; background: var(--gray-50); transition: .2s; }
.form-input:focus { outline: none; border-color: var(--theme-color); background: #fff; }

/* ========== دکمه ========== */
.btn-submit { width: 100%; padding: 1rem; background: var(--theme-color); color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform .2s; }
.btn-submit:active { transform: scale(.98); }

/* ========== شیفت ========== */
.shift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.shift-btn { border: 1px solid var(--border-color); background: var(--gray-50); border-radius: 10px; padding: .75rem; text-align: center; font-weight: 600; cursor: pointer; transition: .2s; }
.shift-btn.active { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }

/* ========== تقویم ========== */
.calendar-wrapper { border: 1px solid var(--border-color); border-radius: 12px; background: var(--white); overflow: hidden; margin-bottom: 1rem; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; background: var(--gray-50); border-bottom: 1px solid var(--border-color); }
.calendar-nav-btn { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.calendar-nav-btn.hidden { opacity: .2; pointer-events: none; }
.calendar-title { font-weight: 800; font-size: .95rem; margin: 0; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: .7rem; color: var(--text-muted); font-weight: 700; padding: .5rem 0; background: #fff; border-bottom: 1px dashed var(--gray-200); }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: .75rem; background: #fff; }
.cal-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; border-radius: 12px; cursor: pointer; border: 1px solid transparent; position: relative; }
.cal-cell.empty { visibility: hidden; }
.cal-cell.disabled { background: repeating-linear-gradient(-45deg, #f9fafb, #f9fafb 4px, #f3f4f6 4px, #f3f4f6 8px); color: #d1d5db; cursor: not-allowed; }
.cal-cell.available { background: var(--white); border: 1px solid var(--gray-200); }
.cal-cell.available:hover { border-color: var(--theme-color); color: var(--theme-color); transform: translateY(-2px); }
.cal-cell.active { background: var(--theme-color); color: #fff; border-color: var(--theme-color); transform: scale(1.05); }
.cal-today-dot { position: absolute; bottom: 4px; width: 4px; height: 4px; background: var(--theme-color); border-radius: 50%; }

/* ========== خدمات ========== */
.specialty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.specialty-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 1rem .5rem; text-align: center; }
.specialty-icon-wrapper { width: 44px; height: 44px; border-radius: 12px; background: var(--gray-50); color: var(--theme-color); display: flex; align-items: center; justify-content: center; margin: 0 auto .5rem; font-size: 1.5rem; }
.specialty-title { font-weight: 700; font-size: .85rem; margin-bottom: .25rem; }
.specialty-desc { font-size: .7rem; color: var(--text-muted); }

/* ========== سوالات متداول ========== */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
.faq-header { width: 100%; text-align: right; padding: 1rem; background: none; border: none; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-header i { transition: transform .3s; }
.faq-item.active .faq-header i { transform: rotate(180deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height .3s ease-out; }
.faq-item.active .faq-content { max-height: 300px; transition: max-height .5s ease-in; }
.faq-content-inner { padding: 0 1rem 1rem; font-size: .8rem; color: var(--text-muted); line-height: 1.8; text-align: justify; }

/* ========== درباره ما ========== */
#aboutText { font-size: .9rem; line-height: 1.9; color: #4b5563; text-align: justify; background: #f9fafb; padding: 16px 18px; border-radius: 20px; border-right: 4px solid var(--theme-color); margin-top: 8px; }

/* ========== فوتر و نقشه ========== */
.app-footer { padding: 2rem 1rem; text-align: center; font-size: .7rem; color: var(--text-muted); border-top: 1px dashed var(--border-color); background: var(--gray-50); direction: rtl; }
.map-container { width: 100%; height: 180px; background: var(--gray-200); border-radius: 16px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); }

/* ========== لایت‌باکس ========== */
.lightbox, .story-viewer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: none; background: #000; }
.lightbox.active, .story-viewer.active { display: flex; }
.lightbox-slide { transition: opacity 0.3s ease; }
.lightbox-slider { transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* ========== نوار خبری Typewriter ========== */
.news-ticker-typewriter { position: fixed; top: 0; left: 0; right: 0; background: linear-gradient(135deg, #1e293b, #0f172a); color: white; z-index: 1000; padding: 12px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-bottom: 2px solid var(--theme-color); direction: rtl; text-align: center; white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.news-ticker-typewriter::-webkit-scrollbar { height: 3px; }
.news-ticker-typewriter::-webkit-scrollbar-track { background: #334155; }
.news-ticker-typewriter::-webkit-scrollbar-thumb { background: var(--theme-color); border-radius: 10px; }
.ticker-message { display: inline-block; font-size: 0.95rem; font-weight: 500; direction: rtl; white-space: nowrap; }
.ticker-message i { margin-left: 10px; font-size: 1rem; }
.typewriter-cursor { display: inline-block; width: 2px; height: 1.2rem; background-color: var(--theme-color); margin-right: 5px; vertical-align: middle; animation: blink 0.7s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (max-width: 768px) { .news-ticker-typewriter { padding: 10px 15px; } .ticker-message { font-size: 0.8rem; } .typewriter-cursor { height: 1rem; } }

/* ========== استوری ویوور ========== */
.story-viewer { flex-direction: column; }
.story-header { display: flex; gap: 6px; padding: 12px 10px; position: absolute; top: 0; left: 0; right: 0; z-index: 10; background: transparent; }
.story-progress-container { flex: 1; height: 3px; background-color: rgba(255, 255, 255, 0.4); border-radius: 3px; overflow: hidden; }
.story-progress-fill { width: 0%; height: 100%; background: white; transition: width 0.1s linear; }
.story-top-info { position: absolute; top: 20px; left: 15px; right: 15px; display: flex; justify-content: space-between; align-items: center; z-index: 10; color: white; background: transparent; }
.story-user { display: flex; align-items: center; gap: 10px; }
.story-user img { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.5); }
.story-user span { font-size: 14px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.story-close { background: rgba(0, 0, 0, 0.5); border: none; color: white; font-size: 20px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.story-close:hover { background: rgba(0, 0, 0, 0.7); transform: scale(1.05); }
.story-content-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; height: 100%; }
.story-media { display: block; object-fit: contain; border-radius: 12px; }
.story-touch-zone { position: absolute; top: 70px; bottom: 0; z-index: 20; cursor: pointer; }
.story-touch-left { left: 0; width: 25%; }
.story-touch-right { right: 0; width: 75%; }
.story-caption { position: absolute; bottom: 80px; left: 0; right: 0; text-align: center; color: white; font-size: 1rem; font-weight: 500; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); padding: 15px 20px 25px 20px; z-index: 15; text-shadow: 0 1px 2px rgba(0,0,0,0.5); direction: rtl; letter-spacing: 0.5px; }

/* ========== استوری - حالت موبایل ========== */
@media (max-width: 767px) {
    .story-header { padding: 10px 8px; }
    .story-top-info { top: 15px; left: 12px; right: 12px; }
    .story-content-wrapper { padding: 0 12px; }
    .story-media { width: 100%; height: auto; max-height: calc(100vh - 100px); border-radius: 8px; }
    .story-caption { bottom: 60px; font-size: 0.85rem; padding: 10px 15px 20px 15px; }
}

/* ========== استوری - حالت تبلت ========== */
@media (min-width: 768px) and (max-width: 1023px) {
    .story-content-wrapper { padding: 0 30px; }
    .story-media { max-width: 70%; max-height: 70vh; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
    .story-caption { bottom: 70px; font-size: 0.95rem; }
}

/* ========== استوری - حالت دسکتاپ ========== */
@media (min-width: 1024px) {
    .story-content-wrapper { padding: 0 10%; display: flex; align-items: center; justify-content: center; }
    .story-media { max-width: 80% !important; max-height: 70vh !important; width: auto; height: auto; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
    .story-caption { bottom: 80px; font-size: 1rem; max-width: 70%; left: 50%; transform: translateX(-50%); background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); border-radius: 30px; padding: 10px 20px; white-space: nowrap; overflow-x: auto; }
    .story-user img { width: 42px; height: 42px; }
    .story-user span { font-size: 15px; }
}

/* ========== استوری - نمایشگرهای عریض ========== */
@media (min-width: 1600px) {
    .story-media { max-width: 70% !important; max-height: 75vh !important; }
}

/* ========== ریسپانسیو دسکتاپ ========== */
@media (min-width: 768px) {
    .app-container { max-width: 550px; margin: 20px auto; border-radius: 24px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
    .profile-image-container { width: 100px !important; height: 100px !important; }
    .profile-header-grid { grid-template-columns: 110px 1fr !important; gap: 1.2rem; }
    .stat-value { font-size: 1.4rem; }
    .bio-name { font-size: 1.2rem; }
}
@media (min-width: 1024px) {
    .app-container { max-width: 620px; }
    .profile-image-container { width: 120px !important; height: 120px !important; }
    .profile-header-grid { grid-template-columns: 140px 1fr !important; }
}
@media (max-width: 480px) {
    #aboutText { font-size: .8rem; line-height: 1.7; padding: 14px; }
}

/* ========== منو و ناوبری ========== */
.navbar-brand { font-weight: 800; font-size: 1.1rem; background: linear-gradient(135deg, #4f46e5, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.nav-link { font-weight: 600; border-radius: 8px; transition: .2s; padding: 6px 12px !important; }
.nav-link:hover { background: #f3f4f6; color: #4f46e5 !important; }
@media (min-width: 992px) {
    .navbar-collapse { justify-content: flex-end !important; }
    .navbar-nav { margin-right: 0 !important; margin-left: auto !important; text-align: right !important; }
}

/* ========== افکت Reveal ========== */
.reveal-up { opacity: 0; transform: translateY(35px); transition: opacity .7s, transform .7s; }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* ========== دکمه آرشیو سوالات ========== */
.faq-archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--theme-color), #8b5cf6);
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.faq-archive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
    color: white;
    text-decoration: none;
}

.faq-archive-btn i {
    font-size: 0.9rem;
}

/* در موبایل */
@media (max-width: 768px) {
    .faq-archive-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}