/* services.css - Homepage Dizaynına Uyğunlaşdırılmış Versiya */

/* =========================================
   1. GLOBAL & HEADER
   ========================================= */
/* Header stilləri style.css-dən gəlir, lakin burada xüsusi düzəlişlər */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

#openSidebar {
  display: none; /* Desktopda gizli */
}

/* Header düymələri */
.header-search-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  display: none; /* Desktopda gizli */
}

/* Sidebar Balans */
.sidebar-balance-box {
  background: #f8fafc;
  padding: 12px 20px;
  margin: 0 0 20px 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
}
.bal-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.bal-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 2px;
  font-weight: 500;
}
.sidebar-amount {
  font-weight: 800;
  color: #1e293b;
  font-size: 1.1rem;
  margin: 0;
}
.sidebar-add-btn {
  background: #f59e0b;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
  transition: 0.3s;
}
.sidebar-add-btn:hover {
  background: #d97706;
  transform: scale(1.1);
}

/* =========================================
   2. AXTARIŞ PANELI (HOMEPAGE STİLİ)
   ========================================= */
.search-wrapper {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
  position: relative;
}

.search-top {
  display: grid;
  grid-template-columns: 2fr 1fr auto; /* Input | Select | Button */
  gap: 15px;
  align-items: center;
}

.main-search-box {
  position: relative;
  width: 100%;
}
.main-search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 2;
}
.main-search-box input {
  padding-left: 45px;
}

input,
select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1e293b;
  background-color: #f8fafc;
  outline: none;
  box-sizing: border-box;
  height: 48px;
  transition: 0.3s;
}

input:focus,
select:focus {
  border-color: #1e293b;
  background-color: #fff;
}

button[type="submit"] {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 0 40px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  height: 48px;
  transition: 0.3s;
}
button[type="submit"]:hover {
  background-color: #059669;
}

/* Bağlama düyməsi (mobile search overlay üçün) */
.close-search-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
}

/* "X nəfər" yazısını gizlətmək üçün */
#totalCount {
  display: none !important;
}

/* =========================================
   3. KATEQORİYA CHIPLƏRİ
   ========================================= */
.quick-categories {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.cat-chip {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 50px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  font-size: 0.9rem;
  font-weight: 500;
}
.cat-chip:hover {
  border-color: #f59e0b;
  color: #1e293b;
}
.cat-chip i {
  color: #f59e0b;
}

/* =========================================
   4. Xidmətlər KARTLARI & GRID
   ========================================= */
.section-title {
  text-align: center;
  margin-bottom: 25px;
}
.section-title h2 {
  font-size: 1.5rem;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

/* KARTIN DİZAYNI */
.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* VIP KART */
.service-card.is-vip {
  border: 2px solid #f59e0b;
  background: linear-gradient(to bottom, #ffffff, #fffbf2);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

/* Badges */
.vip-badge-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, #f59e0b, #d97706);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3);
}

.urgent-badge-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

/* Şəkil */
.service-img-wrapper {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  position: relative;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f8fafc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.service-card.is-vip .service-img {
  border-color: #f59e0b;
}

/* Məlumatlar */
.service-cat-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.service-location {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Əlaqə Düyməsi */
.service-action-row {
  margin-top: auto;
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.call-btn-styled {
  background: #10b981;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  width: 80%;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.call-btn-styled:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* =========================================
   5. LOAD MORE (DAHA ÇOX GÖSTƏR)
   ========================================= */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 2px solid #1e293b;
  color: #1e293b;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
}

.vip-load-btn {
  border-color: #f59e0b;
  color: #b45309;
}

.btn-outline:hover {
  background: #1e293b;
  color: white;
}
.vip-load-btn:hover {
  background: #f59e0b;
  color: white;
}

/* =========================================
   6. RESPONSIVE (MOBIL)
   ========================================= */
@media (max-width: 768px) {
  /* Header Mobile */
  header {
    height: 60px;
    padding: 0 15px;
    justify-content: space-between;
  }

  #openSidebar {
    display: flex !important;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    padding: 0;
    color: white;
    order: 1;
  }

  /* Logo */
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 2;
    z-index: 1;
  }
  .logo h1 {
    font-size: 0;
  }
  .logo h1 i {
    font-size: 1.6rem;
    display: block;
    color: #f59e0b;
  }

  /* Header Sağ Tərəf */
  .header-actions {
    order: 3;
    gap: 12px;
  }
  .header-search-btn {
    display: flex; /* Mobildə axtarış ikonu görünür */
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1.3rem;
  }
  .header-btn-login,
  #userNameDisplay,
  .nav-menu {
    display: none !important;
  }
  .profile-btn {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1.4rem;
  }

  /* Axtarış Paneli (Overlay) */
  .search-wrapper {
    display: none;
    padding: 20px;
  }
  .search-wrapper.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    border-radius: 0;
    overflow-y: auto;
    background: white;
    padding-top: 60px;
  }
  .close-search-btn {
    display: block;
  }

  .search-top {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  button[type="submit"] {
    width: 100%;
  }

  /* Grid və Kartlar */
  .listings {
    grid-template-columns: 1fr 1fr; /* Mobildə 2 sütun */
    gap: 10px;
  }
  .service-card {
    padding: 15px 10px;
  }
  .service-img-wrapper {
    width: 70px;
    height: 70px;
  }
  .service-title {
    font-size: 1rem;
  }
  .service-cat-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
  }
  .call-btn-styled {
    padding: 8px;
    width: 100%;
    font-size: 0.85rem;
  }
  .call-btn-styled span {
    display: none; /* Mobildə "Zəng et" yazısını gizlət, ancaq ikon qalsın */
  }
  .call-btn-styled i {
    font-size: 1.1rem;
  }
  .vip-badge-label,
  .urgent-badge-label {
    font-size: 0.6rem;
    padding: 2px 6px;
    top: 5px;
  }
  .vip-badge-label {
    right: 5px;
  }
  .urgent-badge-label {
    left: 5px;
  }
}

/* Global Reklam üçün */
.ad-banner-section .container {
  padding: 0;
}
@media (max-width: 768px) {
  .ad-banner-section .ad-box {
    border-radius: 12px;
  }
}
/* =========================================
   5. STORIES (TƏCİLİ) BÖLMƏSİ - DÜZƏLİŞ
   ========================================= */

/* Konteynerin özü */
.stories-container {
  padding: 20px 0;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 30px;
}

/* --- STORIES (TƏCİLİ) HİSSƏSİ --- */
.stories-container {
  background: white;
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.stories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.stories-header h4 {
  margin: 0;
  color: #ef4444; /* Qırmızı rəng */
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stories-link {
  font-size: 0.9rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
}

.stories-wrapper {
  display: flex;
  gap: 15px;
  overflow-x: auto; /* Yana sürüşdürmə */
  padding-bottom: 10px;
  scrollbar-width: none; /* Firefox-da skrollu gizlət */
}

/* Chrome/Safari-də skrollu gizlət */
.stories-wrapper::-webkit-scrollbar {
  display: none;
}

/* Tək element (Story) */
.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 72px; /* Sıxılmasın deyə minimum ölçü */
}

/* Şəklin çərçivəsi */
.story-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

/* Aktiv (Təcili) halda qırmızı çərçivə */
.story-ring.active {
  border-color: #ef4444;
}

.story-item:hover .story-ring {
  transform: scale(1.05);
}

/* Şəklin özü */
.story-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover; /* Şəkli dairəyə sığdırır */
  background-color: #f1f5f9;
}

/* Qiymət yazısı */
.story-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

/* SKELETON (Yüklənəndə görünən boz dairələr) */
.story-skeleton {
  min-width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
