html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
}

body.is-search-open,
body.is-wizard-open {
  overflow: hidden;
}

/* Üst alan: sayfa içeriği, değişir; scroll olur */
.layout-top {
  flex: 1;
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Logo + dil alanı: sabit başlık */
.layout-header {
  flex-shrink: 0;
  border-bottom: 1px solid #dee2e6;
  background: #fff;
}

.layout-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.layout-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #212529;
}

.layout-logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.layout-logo-text {
  font-size: 1.25rem;
  font-weight: 600;
}

.layout-search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  margin: 0 0.5rem;
  position: relative;
}

.layout-search-wrap .layout-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #6c757d;
  pointer-events: none;
}

.layout-search-wrap .layout-search-input {
  width: 100%;
  padding: 0.4rem 0.75rem 0.4rem 36px;
  font-size: 0.9rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.layout-search-wrap .layout-search-input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.layout-search-wrap .layout-search-input::placeholder {
  color: #6c757d;
}

.layout-lang-form {
  display: inline-flex;
  gap: 0.25rem;
}

.layout-lang-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.layout-lang-btn:hover {
  background: #f8f9fa;
  color: #212529;
}

.layout-lang-btn.active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

/* Orta container: Duftfinder / Koku Bulucu */
.index-default-content {
  width: 100%;
}

/* Hareketli kenarlık: tek katman, belirgin ışık şeridi, saat yönünde akıcı dönüş */
.duftfinder-hero-outer {
  position: relative;
  border-radius: 28px;
  padding: 5px;
  max-height: 525px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(15, 118, 110, 0.15),
    0 8px 32px rgba(15, 23, 42, 0.08);
}
.duftfinder-hero-outer::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    #0d9488 0deg,
    #0d9488 55deg,
    rgba(255,255,255,0.25) 70deg,
    rgba(255,255,255,0.9) 85deg,
    rgba(255,255,255,0.95) 95deg,
    rgba(255,255,255,0.9) 105deg,
    rgba(255,255,255,0.3) 120deg,
    #7c3aed 140deg,
    #a855f7 180deg,
    #ec4899 220deg,
    #f59e0b 260deg,
    #0d9488 300deg,
    #0d9488 360deg
  );
  animation: duftfinder-border-spin 6s linear infinite;
  will-change: transform;
}
.duftfinder-hero {
  position: relative;
  z-index: 1;
  border-radius: 23px;
  padding: 3.25rem 2rem;
  text-align: center;
  height: clamp(260px, 50vh, 515px);
  min-height: 260px;
  max-height: 515px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  background: linear-gradient(165deg, #fafbfc 0%, #f5f3ff 40%, #fefce8 100%);
  overflow: hidden;
}
/* Dekoratif yumuşak lekeler – parfüm hissi, çıplaklığı giderir */
.duftfinder-hero::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  top: -80px;
  right: -60px;
  pointer-events: none;
}
.duftfinder-hero::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -40px;
  pointer-events: none;
}
@keyframes duftfinder-border-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.duftfinder-title {
    position: relative;
    z-index: 1;
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.50em;
    text-transform: uppercase;
}

.duftfinder-tagline {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 1.25rem 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.duftfinder-subtitle {
  font-size: 1.1rem;
  color: #334155;
  margin: 0 0 1.5rem 0;
  font-weight: 500;
}

.duftfinder-visual {
  position: relative;
  z-index: 1;
  min-height: 200px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.08));
}

.duftfinder-visual .duftfinder-img { 
  width: auto;
}

.duftfinder-visual-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.duftfinder-visual-placeholder .material-symbols-rounded {
  font-size: 64px;
  color: rgba(15, 23, 42, 0.25);
}

.duftfinder-icon-bottle { font-size: 48px !important; }

.duftfinder-btn-primary {
  display: inline-block;
  padding: 1.15rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: #92400e;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.75rem;
  animation: duftfinder-btn-pulse 2.2s ease-in-out infinite;
}

.duftfinder-btn-primary:hover {
  background: #b45309;
  color: #fff;
  transform: scale(1.06);
  animation: none;
}

@keyframes duftfinder-btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.duftfinder-btn-secondary {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.duftfinder-btn-secondary:hover {
  background: #fff;
  color: #0f172a;
}

/* Ana içerik: kullanıcı etkileşimli alan */
.layout-top-inner {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  width: 100%;
}

/* Alt alan: sabit, footer gibi her zaman görünür */
.layout-bottom {
  flex-shrink: 0;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
  padding: 0.75rem 1rem;
}

.layout-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.875rem;
  color: #6c757d;
  text-align: center;
}

.layout-bottom a {
  color: #0d6efd;
  text-decoration: none;
}

.layout-bottom a:hover {
  text-decoration: underline;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.layout-niche-wrap {
  max-width:100%;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}
.layout-niche-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}
.layout-niche-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  vertical-align: middle;
}

/* Tablet + mobile responsive improvements (Public/publish side) */
@media (max-width: 991.98px) {
  .layout-header-inner {
    padding: 0.65rem 0.85rem;
    gap: 0.75rem;
  }

  .layout-top-inner {
    padding: 1.15rem 0.85rem 1.5rem;
  }

  .duftfinder-hero {
    height: 38vh;
    min-height: 260px;
    max-height: 340px;
    padding: 1.5rem 1.1rem;
  }

  .duftfinder-title {
    font-size: 1.9rem;
    letter-spacing: 0.25em;
  }

  .duftfinder-visual {
    min-height: 0;
    height: clamp(120px, 20vh, 200px);
    margin-bottom: 0.7rem;
  }

  .duftfinder-visual .duftfinder-img {
    display: block;
    width: min(250px, 100%);
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }

  .duftfinder-btn-primary {
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
  }
}

@media (max-width: 767.98px) {
  .layout-header-inner {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
  }

  .layout-logo {
    order: 1;
  }

  .layout-lang {
    order: 2;
  }

  .layout-search-wrap {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin: 0.25rem 0 0;
  }

  .layout-search-wrap .layout-search-input {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .layout-lang-btn {
    min-height: 38px;
    min-width: 42px;
    padding: 0.35rem 0.55rem;
  }

  .layout-logo-img {
    max-height: 34px;
  }

  .duftfinder-hero-outer {
    border-radius: 20px;
    padding: 4px;
  }

  .duftfinder-hero {
    border-radius: 16px;
    height: 33vh;
    min-height: 215px;
    max-height: 290px;
    padding: 1rem 0.85rem;
  }

  .duftfinder-title {
    font-size: 1.45rem;
    letter-spacing: 0.16em;
    line-height: 1.2;
    word-break: break-word;
  }

  .duftfinder-tagline {
    font-size: 0.9rem;
    margin-bottom: 0.55rem;
  }

  .duftfinder-visual {
    min-height: 0;
    height: clamp(90px, 16vh, 150px);
    margin-bottom: 0.55rem;
  }

  .duftfinder-visual .duftfinder-img {
    display: block;
    width: min(250px, 100%);
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }

  .duftfinder-btn-primary {
    width: 100%;
    max-width: 320px;
    font-size: 0.95rem;
    padding: 0.7rem 0.95rem;
    margin-bottom: 0;
  }
}

@media (max-width: 479.98px) {
  .layout-top-inner {
    padding: 0.9rem 0.65rem 1.25rem;
  }

  .duftfinder-hero {
    height: 39vh !important;
    /* min-height: 400px; */
    max-height: 40vh;
    padding: 0.85rem 0.75rem;
  }

  .duftfinder-title {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
  }

  .duftfinder-tagline {
    font-size: 0.82rem;
    margin-bottom: 0.45rem;
  }

  .duftfinder-visual {
    min-height: 0;
    height: clamp(82px, 14vh, 120px);
    margin-bottom: 0.45rem;
  }

  .duftfinder-btn-primary {
    max-width: 280px;
    font-size: 0.88rem;
    padding: 0.62rem 0.8rem;
  }
}