/* =========================================
   PPF Portal — Hero Section
   ========================================= */

/* Hero */
.hero {
  position: relative;
  min-height: calc(78vh - var(--header-height));
  display: flex;
  align-items: center;
  background: var(--hero-gradient);
  overflow: hidden;
  padding-block: var(--space-12);
}

/* Animasyonlu arka plan parçacıkları */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.09) 0%, transparent 70%);
  top: -100px;
  right: 10%;
  animation: orb1 12s ease-in-out infinite;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.1) 0%, rgba(251, 191, 36, 0.06) 50%, transparent 70%);
  bottom: -80px;
  left: 5%;
  animation: orb2 15s ease-in-out infinite;
}

@keyframes orb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, 20px) scale(1.1); }
  66%       { transform: translate(-20px, -30px) scale(0.95); }
}

@keyframes orb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(40px, -25px) scale(1.08); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Split layout */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
}

/* Sol: içerik */
.hero-content {
  max-width: 600px;
}

/* Sağ: görsel */
.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blob arka plan */
.visual-blob {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.visual-blob svg {
  width: 90%;
  height: 90%;
}

/* Araç SVG */
.visual-car {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 20px 40px rgba(26, 86, 219, 0.15));
  animation: carFloat 4s ease-in-out infinite;
}

.visual-car svg {
  width: 100%;
  height: auto;
}

@keyframes carFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Floating kartlar — Glass morphism */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 8px 32px rgba(26, 86, 219, 0.1), 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 2;
  animation: fadeSlideIn var(--transition-slow) both;
  white-space: nowrap;
}

.float-card--tl {
  top: 20px;
  left: -10px;
  animation-delay: 0.2s;
}

.float-card--br {
  bottom: 40px;
  right: -10px;
  animation-delay: 0.4s;
}

.float-card--tr {
  top: 60px;
  right: 0;
  animation-delay: 0.6s;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fcard-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fcard-icon--blue { background: var(--color-primary-light); }
.fcard-icon--green { background: #d1fae5; }

.fcard-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  line-height: 1.3;
}

.fcard-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 1px;
}

.fcard-stars {
  color: #f59e0b;
  font-size: var(--text-xs);
  margin-left: auto;
  padding-left: var(--space-2);
}

.fcard-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,.1); }
}

/* Hero giriş animasyonları */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-search-wrap,
.hero-popular,
.hero-stats {
  animation: heroFadeUp 0.7s cubic-bezier(.22,.68,0,1.2) both;
}

.hero-title       { animation-delay: 0.1s; }
.hero-subtitle    { animation-delay: 0.2s; }
.hero-search-wrap { animation-delay: 0.3s; }
.hero-popular     { animation-delay: 0.4s; }
.hero-stats       { animation-delay: 0.5s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(26, 86, 219, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-primary);
  border: 1px solid rgba(26, 86, 219, 0.18);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Title */
.hero-title {
  font-size: var(--text-6xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.hero-title-accent {
  color: var(--color-primary);
  position: relative;
}

/* Subtitle */
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: var(--space-8);
}

/* Search */
.hero-search-wrap {
  position: relative;
  max-width: 560px;
  margin-bottom: var(--space-5);
}

.hero-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(26, 86, 219, 0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12), var(--shadow-md);
}

.search-icon {
  flex-shrink: 0;
  margin-right: var(--space-3);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--text-base);
  color: var(--color-text);
  min-width: 0;
}

.search-input::placeholder {
  color: var(--color-text-subtle);
}

.search-btn {
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
}

/* Autocomplete dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  overflow: hidden;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item.focused {
  background: var(--color-surface);
}

.dropdown-item-city {
  font-weight: var(--fw-medium);
}

.dropdown-item-sub {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* Popular pills */
.hero-popular {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}

.popular-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

.popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.popular-pill {
  padding: var(--space-1) var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.popular-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.stat-num {
  font-size: var(--text-xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-text);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.stat-divider {
  color: var(--color-border-strong);
  font-size: var(--text-lg);
}

/* =========================================
   Calculator Section
   ========================================= */

.calculator {
  padding-block: var(--space-16);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.calc-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-10);
  align-items: start;
}

.calc-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.calc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.calc-title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.calc-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Zone pills */
.calc-zones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.zone-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.zone-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.zone-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.zone-pill--full {
  border-style: dashed;
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-md);
}

.zone-pill--full.active {
  border-style: solid;
}

.zone-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke-width: 2;
}

.zone-pill.active .zone-icon {
  stroke: white;
}

/* Hazır paketler */
.calc-presets {
  margin-top: var(--space-6);
}

.calc-presets-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.calc-presets-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.preset-btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.preset-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.preset-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

.preset-btn:hover .preset-name,
.preset-btn.active .preset-name {
  color: var(--color-primary);
}

.preset-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Bilgi notu */
.calc-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* SAĞ: Sticky panel */
.calc-right {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

.calc-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calc-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-6);
  text-align: center;
}

.calc-panel-empty p {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  margin: 0;
}

.calc-panel-empty span {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

.calc-panel-active {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}

.panel-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel-selections {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.result-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
}

.panel-divider {
  height: 1px;
  background: var(--color-border);
}

.panel-price {
  font-size: 1.875rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.panel-price-note {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  margin-top: calc(var(--space-1) * -1);
}

.calc-cta {
  width: 100%;
  justify-content: center;
  gap: var(--space-2);
  padding-block: var(--space-3);
}

.calc-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding-block: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.calc-reset:hover {
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-block: var(--space-16) var(--space-12);
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-badge {
    margin-inline: auto;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
    max-width: 100%;
  }

  .hero-search-wrap {
    max-width: 100%;
  }

  .hero-popular {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .calc-inner {
    grid-template-columns: 1fr;
  }

  .calc-right {
    position: static;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .search-btn span {
    display: none;
  }
}
