/* ═══════════════════════════════════════════════════════
   EczaneDekorasyon Pro — COMPONENTS v5.0
   Tamamlayıcı bileşenler
═══════════════════════════════════════════════════════ */

/* ─── SECTION DIVIDER ──────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}

.section-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,30,58,0.4), transparent);
}

.section-divider .icon {
  color: var(--red-primary);
  font-size: 1rem;
}

/* ─── PILL BADGE ────────────────────────────────────── */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill-badge-red { background: rgba(196,30,58,0.1); color: var(--red-primary); border: 1px solid rgba(196,30,58,0.25); }
.pill-badge-white { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.2); }
.pill-badge-dark { background: var(--dark); color: var(--white); }

/* ─── FORM ELEMENTLERİ ──────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-control {
  padding: 14px 20px;
  border-radius: var(--radius-oval);
  border: 1.5px solid rgba(196,30,58,0.2);
  background: var(--white);
  color: var(--dark);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 4px rgba(196,30,58,0.1);
}

.form-control::placeholder { color: rgba(0,0,0,0.3); }

textarea.form-control { resize: vertical; min-height: 140px; border-radius: 24px; }

/* ─── LIGHTBOX ─────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,2,3,0.95);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox-overlay.open { opacity: 1; visibility: visible; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-close:hover { background: var(--red-primary); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-nav:hover { background: var(--red-primary); }

/* ─── CARD HIGHLIGHT ────────────────────────────────── */
.highlight-card {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  border-radius: var(--radius-oval);
  padding: 44px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.highlight-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

/* ─── ÇİZGİ ARKA PLAN PATERNİ ──────────────────────── */
.bg-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-lines::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(196,30,58,0.03) 0,
      rgba(196,30,58,0.03) 1px,
      transparent 0,
      transparent 50%
    );
  background-size: 20px 20px;
}

/* ─── FLOATING DOTS DECO ────────────────────────────── */
.deco-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--red-primary);
  opacity: 0.08;
  pointer-events: none;
}

.deco-dot-1 { width: 300px; height: 300px; top: -100px; right: -100px; }
.deco-dot-2 { width: 200px; height: 200px; bottom: -80px; left: -80px; }
.deco-dot-3 { width: 150px; height: 150px; top: 50%; right: 5%; }

/* ─── SECTION CONNECTOR ─────────────────────────────── */
.section-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.section-wave svg {
  display: block;
  width: 100%;
}

/* ─── TOOLTİP ───────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 100;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ─── BACK TO TOP ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 104px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--dark);
  border: 1px solid rgba(196,30,58,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 850;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red-primary);
  color: var(--white);
  transform: translateY(-4px);
}

/* ─── ANIMATED BORDER ───────────────────────────────── */
.animated-border {
  position: relative;
}

.animated-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
  animation: border-anim 3s ease-in-out infinite;
}

@keyframes border-anim {
  0%, 100% { transform: scaleX(0.2); opacity: 0.3; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* ─── TAG LIST ──────────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--red-pale);
  color: var(--red-primary);
  border: 1px solid rgba(196,30,58,0.15);
  transition: var(--transition-fast);
}

.tag:hover {
  background: var(--red-primary);
  color: var(--white);
  border-color: var(--red-primary);
}

/* ─── HIZMET DETAY MODAL ─────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,2,3,0.8);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-card);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 50px 44px;
  position: relative;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.modal-close:hover { background: var(--red-primary); color: var(--white); }

/* ─── ÇİZELGE SAYACI (PROGRESS) ─────────────────────── */
.progress-item { margin-bottom: 20px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}

.progress-label span { color: var(--red-primary); }

.progress-bar {
  height: 6px;
  background: var(--cream);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red-primary));
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── ACCORDION ─────────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid rgba(196,30,58,0.1);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  gap: 20px;
}

.accordion-header h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.accordion-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(196,30,58,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  flex-shrink: 0;
  transition: var(--transition-fast);
  font-size: 0.8rem;
}

.accordion-item.open .accordion-icon {
  background: var(--red-primary);
  color: var(--white);
  transform: rotate(45deg);
}

.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body-inner {
  padding: 0 0 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.accordion-item.open .accordion-body { max-height: 500px; }

/* ─── HEADER SCROLL İNDİKATÖR ────────────────────────── */
.header-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--red-primary);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--red-primary);
}

/* ─── ARAMA KUTUCUĞU ─────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,2,3,0.95);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.search-overlay.open { opacity: 1; visibility: visible; }

.search-input {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  background: none;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 70%;
  padding: 20px 0;
  outline: none;
  letter-spacing: 0.05em;
  text-align: center;
}

.search-input::placeholder { color: rgba(255,255,255,0.2); }
