/* فونت فارسی */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

/* ریست پایه */
* {
  margin: 0;
  padding: 0;
      font-family: 'Vazirmatn';
  box-sizing: border-box;
}


/* بدنه کلی */
body {
  font-family: 'Vazirmatn', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  direction: rtl;
}

/* هدر و منو */
header {
  background-color: #ffffff;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.nav-toggle {
  font-size: 1.5rem;
  cursor: pointer;
}

.menu {
  display: none;
  flex-direction: column;
  margin-top: 1rem;
}

.menu.active {
  display: flex;
}

.menu a {
  padding: 0.75rem;
  text-decoration: none;
  color: #007bff;
  border-bottom: 1px solid #eee;
}

/* دکمه‌های صفحه اصلی */
.home-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.home-btn {
  background-color: #007bff;
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: 0.2s ease;
}

.home-btn:hover {
  background-color: #0056b3;
}

/* پست‌ها */
.latest-posts {
  padding: 1rem;
}

article {
  background: white;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

article h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

article a {
  color: #007bff;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background-color: #fff;
  border-top: 1px solid #eee;
}

/* نمایش موبایلی روی دسکتاپ */
@media (min-width: 768px) {
  body {
    zoom: 1.1;
  }
}




/*برای تب بار*/

.tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #ddd;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 999;
  padding: 0.4rem 0;
  box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.05);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: #888;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tab-item i {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.tab-item.active {
  color: #007bff;
}

.tab-item.active i {
  color: #007bff;
}



/*استایل صفحات اصلی فروشگاه و درخواست ها و پروفایل*/
.page-box {
  padding: 1.5rem;
  background: #fff;
  margin: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-box h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #007bff;
}

.page-box ul {
  list-style: none;
  padding: 0;
}

.page-box ul li {
  margin-bottom: 0.75rem;
}

.page-box ul li a {
  color: #007bff;
  text-decoration: none;
}



/*استایل هدر*/

.main-header {
    background: #fff;
    padding: 15px 15px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* لوگو راست */
.header-right {
  display: flex;
  align-items: center;
}

.logo-link .site-logo {
  height: 36px;
}

/* آیکن‌ها چپ (جستجو، اعلان، منو) */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-direction: row;
}
.header-icon {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #333;
  cursor: pointer;
}

/* منو تاشو */
.menu {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 1rem;
  border-top: 1px solid #eee;
}

.menu.active {
  display: flex;
}
a.logo-link {
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}



/*دکمه جستجو هدر*/

.ajax-search-panel {
  position: fixed;
  top: 60px; /* ارتفاع هدر (بسته به طراحی تو) */
  right: 0;
  left: 0;
  background: #fff;
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-bottom: 1px solid #eee;

  transform: translateY(-30px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ajax-search-panel.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-field-wrapper {
  position: relative;
}

#searchInput {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  outline: none;
}

#searchInput:focus {
  border-color: #007bff;
}

#searchResults {
  margin-top: 0.75rem;
  border-top: 1px dashed #ccc;
  padding-top: 0.5rem;
}

#searchResults a {
  display: block;
  padding: 0.5rem;
  color: #007bff;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

#searchResults a:hover {
  background: #f9f9f9;
}




/*هدر اعلانات*/

/* آیکن هدر */
.header-icon {
  position: relative;
  font-family: inherit;
}

/* نشان‌گر تعداد اعلان‌ها */
.notif-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50px;
  display: none;
  font-family: inherit;
  z-index: 10;
}

/* پنل اعلان */
.notif-panel {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
  overflow: hidden;
  font-family: inherit;
}

/* نمایش پنل (حالت فعال) */
.notif-panel.active {
  display: flex;
  flex-direction: column;
  animation: fadeInDown 0.3s ease;
}

/* حالت بسته شدن با انیمیشن */
.notif-panel.closing {
  animation: fadeOutUp 0.3s ease forwards;
}

/* انیمیشن باز شدن */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* انیمیشن بسته شدن */
@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

/* نوار بالا پنل اعلان */
.notif-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.notif-header button {
  background: none;
  border: none;
  color: #007bff;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

/* لیست اعلان‌ها */
.notif-list {
  max-height: 350px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

/* کارت اعلان */
.notif-card {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.notif-card.read {
  opacity: 0.5;
}

.notif-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-card p {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.6;
}

.notif-card .date {
  text-align: left;
  font-size: 12px;
  color: #777;
  font-family: inherit;
}

@keyframes shakeBell {
  0% { transform: rotate(0); }
  25% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
  75% { transform: rotate(-10deg); }
  100% { transform: rotate(0); }
}

.bell-shake {
  animation: shakeBell 0.8s ease-in-out infinite;
  transform-origin: center;
}




/**دکمه تماس هدر**/
#contactOverlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.5); /* blur */
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

#contactOverlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-box {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  position: relative;
  text-align: center;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.contact-box h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.contact-box .contact-btn {
  display: block;
  margin: 10px 0;
  padding: 0.6rem 1rem;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.contact-box .contact-btn i {
  margin-left: 6px;
}

.contact-box .contact-btn:hover {
  background: #0056b3;
}

.contact-box .close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: #adadad;
    border: none;
    font-size: 15px;
    color: #ffffff;
    cursor: pointer;
    height: 30px;
    width: 30px;
    border-radius: 50%;
}



/**صفحه اصلی و ثبت درخواست**/
/* حالت fullscreen و بدون اسکرول */
html, body, #app {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f0f9ff;
}

/* ساختار مراحل */
.step {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

.step.active {
  display: flex;
}

.map-container {
  height: 180px;
  width: 100%;
  max-width: 400px;
  border-radius: 1rem;
  margin: 1rem 0;
}

.service-select,
input[type="text"],
input[type="tel"] {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  direction: rtl;
}

.next-btn, .submit-btn {
  background: #007cbe;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  margin-top: 1rem;
  font-size: 1rem;
  cursor: pointer;
}

.next-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}




/*صفحه نخست*/
/* فونت و بدنه */
body, .helpo-app-container {
  font-family: 'IRANSans', sans-serif;
  background-color: #f3f4f6;
  direction: rtl;
  color: #333;
  line-height: 1.8;
}

/* سکشن‌ها */
.hl-section {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* عنوان‌ها */
.hl-title,
.hl-section h3 {
  color: #1f2937;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* ورودی‌ها */
.hl-input {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  padding: 10px 12px;
  width: 100%;
  transition: all 0.2s ease;
}

.hl-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  outline: none;
}

/* دکمه‌ها */
.hl-button,
.hl-btn-next,
.hl-btn-prev,
.hl-btn-backhome,
.hl-btn-view-status {
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hl-button:hover,
.hl-btn-next:hover,
.hl-btn-prev:hover,
.hl-btn-backhome:hover,
.hl-btn-view-status:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* ساختار فرم مرحله‌ای */
.hl-step {
  display: none;
}

.hl-step.active {
  display: block;
}

/* دکمه‌های پایین فرم */
.hl-form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* فیلدهای آدرس */
#hl-map-address,
#hl-manual-address,
#hl-postcode-field {
  animation: fadeIn 0.3s ease;
}

/* موفقیت */
#hl-success-message {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
  color: #065f46;
}

#hl-tracking-code {
  background-color: #f0f0f0;
  border: 1px dashed #999;
  font-weight: bold;
  color: #333;
}

/* چک‌باکس‌ها و رادیوها */
.hl-service-select input[type="radio"],
.hl-step input[type="radio"],
.hl-step input[type="checkbox"] {
  margin-left: 8px;
  transform: scale(1.1);
}

/* واکنش‌گرا */
@media (max-width: 768px) {
  .hl-form-buttons {
    flex-direction: column;
  }

  .hl-btn-next,
  .hl-btn-prev,
  .hl-btn-backhome,
  .hl-btn-view-status {
    width: 100%;
  }
}

/* افکت ساده برای نمایش */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}



.hidden {
  display: none ;
}

