:root{
  --bg:#F7F1EA;
  --bg-soft:#FBF6F1;
  --card:#FFFFFF;
  --ink:#2e2a27;
  --muted:#7e726b;
  --accent:#CFAF98; /* güveli premium rose-bej */
  --accent-strong:#B98F74;
  --line:#e7dfd8;
  --shadow:0 20px 50px rgba(42,24,9,.06), 0 4px 14px rgba(42,24,9,.06);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 15% 10%, #fdf8f3 0, rgba(0,0,0,0) 60%),
    radial-gradient(900px 500px at 85% 0%, #fff6ef 0, rgba(0,0,0,0) 60%),
    var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

h1,h2,h3{font-family:"Playfair Display", serif; font-weight:600; color:var(--ink); letter-spacing:.2px}
h1{font-size:clamp(32px,4.2vw,54px); line-height:1.1; margin:.2rem 0 1rem}
h1 em{font-style:normal; color:var(--accent-strong)}
.lead{color:var(--muted); font-size:18px; line-height:1.6}
a{color:var(--accent-strong); text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1180px; margin:0 auto; padding:24px 20px}
.hero-container{padding-top:28px}

.site-header,.site-footer{
  backdrop-filter:saturate(150%) blur(6px);
  background: #F4ECE5CC;
  border-bottom:1px solid var(--line);
}
.site-footer{border-top:1px solid var(--line); border-bottom:none}

.site-header .brand,.site-footer .brand{display:flex; align-items:center; gap:10px}
.brand-mark{
  display:inline-grid; place-items:center; width:28px; height:28px;
  border-radius:9px; background:var(--accent-strong); color:#fff; font-weight:600;
  text-transform:lowercase; font-size:14px; letter-spacing:.5px;
  box-shadow:0 6px 18px rgba(185,143,116,.45);
}
.brand-name{font-weight:600; color:#4a4039; letter-spacing:.3px}
.site-header, .site-footer{display:flex; align-items:center; justify-content:space-between; padding:14px 20px}
.site-nav a, .foot-nav a{color:#6b5e56; margin-left:22px}
.copy{color:#8b7f77}

.hero{display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; margin-top:28px}
.hero-copy .bullets{margin:14px 0 0; padding:0; list-style:none; display:flex; gap:18px; color:#8a7f78; font-size:14px}
.hero-copy .bullets li::before{content:"• "; color:#b59b88}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.upload-card{padding:22px}
.dropzone{
  border:2px dashed #e7ddd6;
  background:var(--bg-soft);
  border-radius:14px;
  min-height:180px;
  display:grid; place-items:center;
  cursor:pointer; transition: .2s border-color ease, .2s background ease;
  outline:none;
}
.dropzone:focus,.dropzone:hover{border-color:#d9c8be; background:#fdf8f5}
.dz-inner{padding:26px 20px; text-align:center}
.dz-icon{font-size:28px; color:#a78f80; margin-bottom:8px}
.dz-title{font-weight:600}
.dz-title .muted{color:#a58e82; font-weight:400}
.dz-meta{margin-top:6px; font-size:12px; color:#9b8d84}
.link-like{color:var(--accent-strong); text-decoration:underline; cursor:pointer}

.preview{max-width:100%; border-radius:12px; border:1px solid #e9dfd8; box-shadow:0 8px 20px rgba(0,0,0,.05)}
.preview.large{width:100%; max-height:420px; object-fit:cover}
.preview.hidden{display:none}
.muted-bg{background:#f7f2ee}

.upload-actions{display:flex; gap:10px; margin-top:14px; flex-wrap:wrap}
.btn{
  appearance:none; border:1px solid transparent; border-radius:12px; padding:12px 16px;
  font-weight:600; cursor:pointer; transition:.15s ease; letter-spacing:.2px;
}
.btn.primary{background:var(--accent-strong); color:#fff; box-shadow:0 10px 22px rgba(185,143,116,.35)}
.btn.primary:disabled{opacity:.6; cursor:not-allowed; box-shadow:none}
.btn.primary:hover{filter:brightness(.96)}
.btn.ghost{background:#fff; border-color:#e8ded6; color:#6a5e56}
.btn.ghost:hover{background:#f9f4f0}
.btn.soft{background:#f3e9e2; color:#6a5e56; border-color:#eadfd7}
.btn.full{width:100%}

.steps-illustration{margin:60px 0 30px}
.steps-illustration h2{font-size:26px; margin:0 0 18px}
.steps-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.steps-item{padding:22px; border:1px dashed #e8ddd4; border-radius:14px; background:#fff}
.steps-number{width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:#f2e7df; color:#6e5e55; font-weight:700; margin-bottom:6px}
.steps-text{color:#7d7068}
.muted{color:#9c8f86}

.trust{padding:18px 22px; margin:30px 0}
.trust h3{margin:0 0 6px; font-size:20px}

.site-footer.compact{justify-content:center; gap:12px}

/* Stepper (sayfa üstü) */
.stepper{
  margin:8px 0 18px; padding:0; list-style:none;
  display:flex; gap:12px; align-items:center; justify-content:center;
}
.step{
  position:relative; display:flex; align-items:center; gap:10px;
  padding:10px 14px; background:#fff; border:1px solid #efe5dc; border-radius:999px;
  color:#7a6d64; box-shadow:0 4px 12px rgba(0,0,0,.04);
}
.step + .step::before{
  content:""; position:absolute; left:-12px; width:12px; height:1px; background:#e7ddd6;
}
.step-index{
  width:28px; height:28px; display:grid; place-items:center; border-radius:999px; background:#f1e7df; font-weight:700; color:#6a5d55;
}
.step.is-active{border-color:#e3d6cc; background:#fbf6f1; color:#564b44}
.step.is-active .step-index{background:var(--accent-strong); color:#fff; box-shadow:0 6px 16px rgba(185,143,116,.35)}
.step-label{font-weight:600; font-size:14px}

/* Bölmeli sayfalar */
.page{margin-top:16px}
.split{display:grid; grid-template-columns: 420px 1fr; gap:30px; align-items:start}
.panel{padding:18px 18px}
.panel-title{margin:6px 0 10px; font-size:20px}
.panel-title.small{font-size:16px; color:#6f655e}

.palette-toolbar{display:grid; gap:14px; margin:6px 0 12px}
.range label{display:block; font-weight:600; margin-bottom:8px}
.range input[type="range"]{width:100%}
.range-scale{display:flex; justify-content:space-between; font-size:12px; color:#8b7e76; margin-top:6px}
.actions-inline{display:flex; gap:10px}
.actions{display:flex; gap:10px; margin-top:16px}

.form-grid{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px}
.field{display:flex; flex-direction:column; gap:8px}
.field input, .field select{
  padding:10px 12px; border:1px solid #eadfd7; border-radius:10px; background:#fff; font:inherit
}
.field input::placeholder{color:#b1a59d}

.swatches{display:grid; grid-template-columns:repeat(10, minmax(0,1fr)); gap:8px}
.swatches.tight{grid-template-columns:repeat(12, minmax(0,1fr))}
.swatch {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background-color: var(--sw);
  border: 1px solid rgba(0,0,0,0.15); /* açık tonlar görünür olsun */
  cursor: pointer;
  transition: transform 0.1s ease;
  box-sizing: border-box;
  outline: none;
}
.swatch:hover { transform: scale(1.08); }
.divider{height:1px; background:#eee3da; margin:16px 0}

.meta.small{color:#7a6e66; font-size:13px; margin-top:8px}

.suggestions{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px}
.suggestion{
  border:1px solid #efe4db; border-radius:14px; padding:14px; background:#fff; box-shadow:var(--shadow)
}
.suggestion h4{margin:6px 0 8px; font-size:18px}
.suggestion p{margin:0; color:#6f645d}
/* drag & drop state */
.dropzone.is-dragover{ border-color: var(--accent-strong); background:#fff7f2 }

/* swatch interaktif ve seçili görünüm */
.swatch{ cursor:pointer; border:1px solid rgba(0,0,0,.06); border-radius:10px; height:36px; }
.swatch.is-selected{
  outline:3px solid #fff;
  box-shadow:0 0 0 3px var(--accent-strong), inset 0 0 0 1px rgba(0,0,0,.08);
}

/* seçili renk kartı */
.selected-color{
  display:flex; align-items:center; gap:12px; padding:10px 12px; margin:6px 0 10px;
}
.selected-color.small{ padding:10px 12px }
.sel-chip{
  width:42px; height:42px; border-radius:10px; border:1px solid rgba(0,0,0,.08); background:#eee;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.sel-meta{display:flex; flex-direction:column; line-height:1.2}
.sel-label{font-weight:600; color:#6b5f57; font-size:13px}
.sel-code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; color:#7c716a; font-size:13px}
  #adviceBox {
    display: none;
    flex-direction: column;
    height: auto;
    min-height: 220px;
  }
  #narrative {
    white-space: pre-line;
    line-height: 1.55;
    font-size: 0.95rem;
    color: #2e3e2e;
  }
  #adviceList {
    margin-top: 8px;
    padding-left: 20px;
  }
/* === Sonuç sayfası (advice kutusu) düzeni === */
.suggestions {
  display: grid;
  grid-template-columns: 1fr; /* tek sütun, tam genişlik */
  gap: 18px;
}

#adviceBox {
  display: none;
  flex-direction: column;
  height: auto;
  width: 100%;
  min-height: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  box-sizing: border-box;
}

#adviceBox h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--ink);
}

#narrative {
  white-space: pre-line;
  line-height: 1.6;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
}

#adviceList {
  margin-top: 8px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

#adviceList li::marker {
  color: var(--accent-strong);
}
/* === Sezon kutusu === */
.season-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--border, #e2e2e2);
  border-radius: 12px;
  background: var(--green-bg, #faf9f7);
  box-shadow: var(--shadow, 0 4px 14px rgba(0,0,0,0.05));
}
.season-label {
  font-size: 15px;
  color: var(--text, #333);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.season-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s ease;
}
.season-select:focus {
  border-color: var(--green-main, #3fa34d);
  outline: none;
  box-shadow: 0 0 0 3px rgba(63,163,77,0.15);
}

/* === Düğmeler eşit genişlikte === */
.upload-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.upload-actions .btn {
  flex: 1;
}

/* === Premium yükleme overlay === */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-overlay.hidden {
  display: none;
}
.loading-modal {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fffaf4 0%, #f3eee8 60%, #e7dfd6 100%);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), inset 0 0 30px rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.spinner {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 8px solid #f1e0b5;
  border-top-color: #d9a760;
  border-right-color: #c96a4a;
  border-bottom-color: #7b9e74;
  animation: spin 1.5s linear infinite;
  margin-bottom: 18px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-modal p {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #3a3a3a;
  margin: 0;
  padding: 0 18px;
}
/* === SEZON KUTUSU (yeni, temaya uyumlu) === */
.season-box {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}
.season-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.season-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e4dcd5;
  border-radius: 10px;
  font: 500 15px/1.4 Inter, sans-serif;
  background: #fff;
  color: var(--ink);
  transition: all .2s ease;
}
.season-select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(185,143,116,.25);
  outline: none;
}

/* === PREMIUM YÜKLEME OVERLAY (revize) === */
.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  z-index: 2000;
}
.loading-overlay.hidden { display: none; }

.loading-modal {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffaf4 0%, #f6eee7 60%, #efe6dc 100%);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.15),
    inset 0 0 40px rgba(255,255,255,0.9),
    inset 0 0 100px rgba(255,230,210,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: pulseRing 2.4s ease-in-out infinite alternate;
}

.spinner {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 10px solid #f7dcb8;
  border-top-color: #d7a964;
  border-right-color: #c76c48;
  border-bottom-color: #90a27d;
  animation: spin 1.4s linear infinite;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 12px rgba(185,143,116,.4));
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseRing {
  from { transform: scale(1); opacity: .95; }
  to   { transform: scale(1.05); opacity: 1; }
}

.loading-modal p {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #3c2e28;
  font-weight: 500;
  letter-spacing: .3px;
  margin: 0;
}
/* ==========================================================
   RESPONSIVE DÜZENLER – renkprofilim (tüm sayfalar)
   ========================================================== */

/* === GENEL === */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
img, video, canvas {
  max-width: 100%;
  height: auto;
}
.container {
  width: 100%;
  box-sizing: border-box;
}

/* === HEADER ve FOOTER === */
.site-header, .site-footer {
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}
.site-header nav, .site-footer nav {
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.site-header a, .site-footer a {
  font-size: 14px;
}

/* === ANA SAYFA HERO BLOĞU === */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-top: 28px;
}

.hero-copy h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.15;
}
.hero-copy .lead {
  font-size: clamp(15px, 1.6vw, 18px);
}

/* === MEVSİM SEÇİMİ KUTUSU === */
.season-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.season-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.season-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e4dcd5;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: all 0.25s ease;
}
.season-select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(185,143,116,.25);
}

/* === UPLOAD ALANI === */
.dropzone {
  transition: background .25s ease, border-color .25s ease;
}
.dropzone.has-image {
  border-style: solid;
  border-color: var(--accent-strong);
}

/* === YÜKLEME OVERLAY === */
.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  z-index: 2000;
}
.loading-overlay.hidden { display: none; }

.loading-modal {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffaf4 0%, #f6eee7 60%, #efe6dc 100%);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.15),
    inset 0 0 40px rgba(255,255,255,0.9),
    inset 0 0 100px rgba(255,230,210,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: pulseRing 2.4s ease-in-out infinite alternate;
  text-align: center;
}
.spinner {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 10px solid #f7dcb8;
  border-top-color: #d7a964;
  border-right-color: #c76c48;
  border-bottom-color: #90a27d;
  animation: spin 1.4s linear infinite;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 12px rgba(185,143,116,.4));
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseRing {
  from { transform: scale(1); opacity: .95; }
  to   { transform: scale(1.05); opacity: 1; }
}

/* === SONUÇ SAYFASI (split layout) === */
.split {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 30px;
  align-items: start;
}

/* Palet grid */
.tone-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}
.tone {
  aspect-ratio: 1/1;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.30);
}

/* Öneriler grid */
.suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* === RESPONSIVE KIRILIMLAR === */

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-copy {
    order: 2;
  }
  .upload-card {
    order: 1;
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .suggestions {
    grid-template-columns: 1fr;
  }
  .tone-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

/* Mobil */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 16px 14px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 12px;
  }
  .site-header, .site-footer {
    padding: 10px 14px;
  }
  .site-header nav a, .site-footer nav a {
    font-size: 13px;
    margin: 0 6px;
  }
  .upload-card {
    padding: 18px 14px;
  }
  .season-box {
    padding: 14px;
    border-radius: 10px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tone-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .suggestions {
    grid-template-columns: 1fr;
  }
  .loading-modal {
    width: 240px;
    height: 240px;
  }
  .spinner {
    width: 80px;
    height: 80px;
    border-width: 8px;
  }
  h1 {
    font-size: clamp(26px, 7vw, 38px);
  }
}

/* Çok küçük ekran (≤380px) */
@media (max-width: 380px) {
  .btn {
    font-size: 13px;
    padding: 10px 12px;
  }
  .hero-copy .bullets {
    flex-direction: column;
    gap: 4px;
  }
  .season-label {
    font-size: 14px;
  }
  .tone-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
/* === [YENİ EKLEMELER] === */

/* 1️⃣ Başlık ortalama */
.panel-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

/* 2️⃣ Ten rengi uyarı kutusu */
.notice-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fffdf6;
  border: 1px solid #f1e2b8;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #6b5f46;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  line-height: 1.45;
}
.notice-box b {
  color: #4d3b18;
}

/* 3️⃣ Google AdSense alanları */
.ads-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
  border: 1px dashed #ddd;
  border-radius: 10px;
  margin: 16px 0;
  padding: 10px;
  min-height: 90px;
  color: #999;
  font-size: 0.9rem;
}

/* 4️⃣ Mobil uyum */
@media (max-width: 768px) {
  .ads-box {
    margin: 12px 0;
    min-height: 60px;
  }
  .panel-title {
    font-size: 1.3rem;
  }
}