/* تنظیمات پایه */
/* --- تعریف فونت Vazirmatn (متغیر) --- */
/* تعریف فونت وزیر که در پوشه داری */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-VariableFont_wght.ttf') format('truetype');
}

/* فونت آیکون‌های ضروری (جایگزین FontAwesome) */
@font-face {
    font-family: 'font-icons';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2') format('woff2');
    font-display: swap;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial;
    direction: rtl;
}

/* اگر آیکون‌ها هنوز لود نمی‌شوند، این کلاس را دستی ست می‌کنیم */
.fas, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
    font-weight: 900;
}

/* --- اعمال فونت در تگ body --- */

body {
    /* **خط font-family را به شکل زیر تغییر دهید** */
    font-family: 'Vazirmatn', Tahoma, sans-serif; 
    
    background-image: url('your-background-image.jpg'); 
    /* ... سایر کدهای body ... */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* کانتینر اصلی صفحه - اعمال افکت شیشه‌ای */
.container {
    width: 90%;
    max-width: 400px; 
    text-align: center;
    padding: 20px;
    
    /* افکت شیشه‌ای (Glassmorphism) */
    background-color: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* بخش پروفایل */
.profile-section {
    margin-bottom: 30px;
    color: #fff; 
    background-color: rgba(73, 73, 73, 0.3); 
    padding: 20px 10px;
    border-radius: 10px;
    border: 1px solid rgba(101, 95, 95, 0.2);
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%; 
    object-fit: cover;
;
    margin-bottom: 10px;
}

.main-logo-svg {
    max-width: 300px; /* مقدار را افزایش دادیم */
    height: auto; 
    margin: 10px auto 5px auto; 
    display: block; 
    border: #333;
    padding: 1cm;
}


h1 { /* این استایل دیگر برای لوگو استفاده نمی‌شود اما می‌تواند برای چیزهای دیگر بماند */
    margin: 5px 0;
    font-size: 1.8em;
}



h1 {
    margin: 5px 0;
    font-size: 1.8em;
}

.subtitle {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9; 
}

/* بخش دکمه ها */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.1em;
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* آیکون ها */
.icon {
    margin-left: 10px;
    font-size: 1.2em;
}

/* رنگ بندی دکمه های فعال */
.telegram-btn {
    background-color: #0088cc;
}
/* استایل کلی بخش آیکون */
/* استایل اختصاصی دکمه بله */
.bale-btn {
    background-color: #2b9f69 !important; /* سبز رسمی بله */
    color: white !important;               /* سفید کردن متن بله */
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none;
    transition: background-color 0.3s ease;
}

/* افکت هنگام نگه داشتن موس */
.bale-btn:hover {
    background-color: #2b9f69 !important; /* سبز کمی تیره تر */
}

/* تنظیمات لوگوی ساخته شده و فاصله */
.bale-icon-wrapper {
    font-size: 0.6em;      /* اندازه دایره نسبت به متن */
    margin-left: 15px;     /* فاصله بیشتر بین لوگو و متن */
    display: inline-flex;
}

/* اطمینان از ضخامت تیک */
.fa-check {
    font-weight: 900 !important;
}
.instagram-btn {
    background-color: #E1306C !important; /* رنگ اصلی سرخابی اینستاگرام */
    color: white !important;
}
.phone-btn {
    background-color: #343434;
}

.email-btn {
    background-color: #1e3a52;
}

/* رنگ وب‌سایت (برای زمانی که فعال شود) */
.website-btn {
    background-color: #4a90e2; 
}

/* **استایل دکمه‌های غیرفعال** */


/* جلوه Hover برای دکمه‌های فعال */
.link-btn:not(.disabled-btn):hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* پاور بای */
.powered-by {
    margin-top: 25px;
    padding: 10px 20px;
    color: #fff; 
    font-size: 0.8em;
}


/* --- استایل های مودال/دیالوگ --- */

/* پس‌زمینه مودال (همان لایه تیره) */
.modal {
    display: none; /* پیش‌فرض مخفی */
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(5px);
    
    /* تنظیمات فلکس باکس برای وسط‌چین کردن */
    justify-content: center; 
    align-items: center; 
}

/* وقتی کلاس فعال می‌شود، آن را به flex تبدیل می‌کنیم */
.modal.show {
    display: flex !important;
}
/* باکس داخلی دیالوگ */
.modal-content {
    background-color: #fff;
    /* کوچک‌تر کردن عرض مودال برای فاصله از طرفین */
    width: 85%; 
    max-width: 350px; 
    
    /* ایجاد فضای داخلی برای اینکه متن به دیواره‌های مودال نچسبد */
    padding: 25px;
    border-radius: 20px; /* گردتر کردن گوشه‌ها برای ظاهر مدرن‌تر */
    
    color: #333;
    position: relative;
    text-align: right;
    direction: rtl;
    
    /* جلوگیری از چسبیدن به بالا و پایین در موبایل */
    margin: 20px; 
    
    /* سایه ملایم برای عمق دادن به دیالوگ */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* چپ‌چین کردن اطلاعات تماس */
.modal-details {
    text-align: left !important; /* چپ‌چین */
    direction: ltr !important;   /* جهت متن از چپ به راست برای لینک‌ها */
    margin: 15px 0;
}

/* برای اینکه عناوین (آدرس، تلفن و...) همچنان فارسی و راست‌چین بمانند */
.label {
    direction: rtl;
    text-align: right;
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.close-btn {
    color: #aaa;
    float: left; 
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* استایل‌های متن پاپ‌آپ */
.modal-body h2 {
    color: #cc0000;
    margin-top: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-body p {
    color: #555;
    line-height: 1.5;
}

/* تمام استایل‌های قبلی شما به همراه این موارد جدید برای فروشگاه */
/* بخش کلی فروشگاه */
.shop-section {
    margin-top: 15px;
    background-color: #6c5ce7; /* رنگ بنفش هماهنگ با سبک مدرن */
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* سربرگ فروشگاه */
.shop-header {
    padding: 15px 20px;
    display: flex;
    justify-content: center; /* متن در وسط */
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

/* تنظیم لیست داخل */
.shop-dropdown {
    display: none;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.1); /* کمی تیره تر برای تمایز */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* اصلاح لیست فروشگاه ها */
.store-list {
    list-style: none; /* حذف نقاط کنار لیست */
    padding: 0;
    margin: 0;
}

.store-list li {
    padding: 15px 0; /* فاصله بیشتر بین هر فروشگاه */
    border-bottom: none; /* حذف خط زیر هر مورد */
    text-align: right;
}

.store-list li a {
    color: #ffffff;
    text-decoration: none; /* حذف خط زیر متن */
    font-weight: 500;
    display: block;
}

/* استایل باکس جستجو */
.search-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    margin-bottom: 5px;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.store-item {
    padding: 15px 0;
    cursor: pointer;
    color: white;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.store-item:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-right: 10px;
    border-radius: 5px;
}

/* لینک‌های داخل دیالوگ - رنگ روشن‌تر و پررنگ */
/* لینک‌های داخل دیالوگ - رنگ روشن‌تر و پررنگ */
#store-phone-link, #store-insta-link {
    color: #007bff;
    font-weight: bold;
    text-decoration: underline;
}

#store-phone-link:hover, #store-insta-link:hover {
    color: #85c1e9;
}

/* افزایش ابعاد مودال برای خوانایی بهتر */
.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    color: #333; /* رنگ متن اصلی مودال مشکی باشد تا دیده شود */
}

/* یک کلاس عمومی برای همه آیکون‌های SVG */
.svg-icon{
  width: 22px;          /* اندازه */
  height: 22px;
  margin-left: 10px;
  vertical-align: -4px;
  display: inline-block;
}

/* حالت تپل‌تر: اگر SVGها stroke دارند */
.svg-icon.stroke-thick{
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;     /* این عدد را 2.2 تا 3.2 تغییر بده */
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* حالت تپل‌تر: اگر SVGها fill هستند (اکثر آیکون‌های ما) */
.svg-icon.fill-bold{
  transform: scale(1.08);    /* کمی درشت‌تر دیده می‌شود */
  transform-origin: center;
}

/* اختیاری: فاصله آیکون از متن در RTL بهتر */
.link-btn .svg-icon{ margin-left: 10px; }

/* ===== بخش نمایندگی‌ها ===== */
.agencies-section,
#agencies-section,
.representatives-section {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.agencies-section h2,
#agencies-section h2,
.representatives-section h2 {
    color: #2f2f2f;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.agencies-search,
#agency-search,
.representatives-search {
    width: 100%;
    max-width: 320px;
    height: 44px;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 18px;
    font-family: inherit;
    background: rgba(255,255,255,0.92);
    color: #333;
    box-sizing: border-box;
    margin: 0 auto 18px auto;
    display: block;
    text-align: right;
}

/* لیست */
.agencies-list,
#agency-list,
.representatives-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto 24px auto !important;
    width: 100%;
    max-width: 420px;
}

/* هر آیتم */
.agencies-list li,
#agency-list li,
.representatives-list li {
    list-style: none !important;
    margin: 8px 0 !important;
    padding: 0 !important;
}

/* لینک هر نمایندگی */
.agencies-list li a,
#agency-list li a,
.representatives-list li a {
    display: block;
    text-decoration: none !important;
    color: #2b1877 !important;
    font-size: 18px;
    font-weight: 700;
    background: rgba(255,255,255,0.35);
    padding: 10px 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.agencies-list li a:hover,
#agency-list li a:hover,
.representatives-list li a:hover {
    background: rgba(255,255,255,0.55);
    color: #1c0f52 !important;
    transform: translateY(-1px);
}

/* حذف بولت و استایل پیش‌فرض مرورگر از همه زیرشاخه‌ها */
.agencies-section ul,
.agencies-section li,
#agencies-section ul,
#agencies-section li,
.representatives-section ul,
.representatives-section li {
    list-style: none !important;
}

/* عنوان نمایندگی‌ها */
.agency-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #2f2f2f;
    font-size: 28px;
    font-weight: 800;
}
