/* Softkrea · Ücretsiz QR Kod Oluşturucu — v1.1.0 */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f1424;
  --ink-2: #5b6275;
  --ink-3: #9aa1b2;
  --line: #e7e9f0;
  --field: #f3f4f8;
  --field-line: #dfe2ea;
  --accent: #0f1424;
  --mint: #95f0dd;
  --mint-ink: #0b7a64;
  --mint-soft: #e8fbf6;
  --violet: #6d5cff;
  --red: #e5484d;
  --red-soft: #fff0f0;
  --amber-soft: #fff7e8;
  --amber-ink: #8a5a00;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 2px rgba(15, 20, 36, .04), 0 12px 32px rgba(15, 20, 36, .06);
  --shadow-lift: 0 2px 4px rgba(15, 20, 36, .05), 0 22px 48px rgba(15, 20, 36, .12);
  --pad: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 85% -120px, rgba(149, 240, 221, .35), transparent 70%),
    radial-gradient(700px 420px at -10% 10%, rgba(109, 92, 255, .08), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 15px/1.6 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.shell { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }

/* ── Üst bar ───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(15, 20, 36, .06);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 10px; }
.brand-logo { display: block; height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.header-separator { width: 1px; height: 22px; background: var(--line); flex: none; }
.product-name { min-width: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.header-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-link:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-1px); }
.hl-short { display: none; }

/* ── Giriş ─────────────────────────────────── */
.hero { padding: 44px 0 28px; text-align: center; animation: rise .7s var(--ease) both; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #1fc7a0; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: rgba(31, 199, 160, .35); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hero h1 {
  margin: 18px auto 0;
  max-width: 820px;
  font-size: clamp(32px, 7.4vw, 60px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.hero h1 span {
  background: linear-gradient(100deg, #0f1424 0%, #3d4bd9 45%, #19b38f 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero p { margin: 16px auto 0; max-width: 600px; font-size: clamp(15px, 2.2vw, 17px); font-weight: 300; color: var(--ink-2); }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 500;
}
.hero-chips svg { width: 15px; height: 15px; fill: none; stroke: var(--mint-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Çalışma alanı ─────────────────────────── */
.workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; animation: rise .7s .08s var(--ease) both; }
.panel { min-width: 0; padding: 22px 18px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }

.section-top, .customize-heading, .preview-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section-step {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--mint-ink);
}
.panel h2, .information h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }

/* İçerik türü sekmeleri */
.type-tabs {
  display: flex;
  gap: 6px;
  margin: 18px calc(var(--pad) * -1 + 2px) 0;
  padding: 2px calc(var(--pad) - 2px) 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.type-tabs::-webkit-scrollbar { display: none; }
.type-tab {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--field);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.type-tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.type-tab:hover { background: #eaecf2; color: var(--ink); }
.type-tab:active { transform: scale(.97); }
.type-tab.active, .type-tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 8px 18px rgba(15, 20, 36, .18); }

/* Form alanları */
#qr-form { margin-top: 16px; }
.input-panel { display: flex; flex-direction: column; animation: fade .35s var(--ease) both; }
.input-panel label, .option-col > label { display: block; margin: 14px 0 7px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.input-panel > label:first-child, .two-inputs:first-child label { margin-top: 4px; }
.optional { font-weight: 400; color: var(--ink-3); }

.text-input, .small-select {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--field-line);
  outline: 0;
  font-size: 16px;
  color: var(--ink);
  -webkit-appearance: none;
          appearance: none;
  transition: box-shadow .25s var(--ease);
}
textarea.text-input { min-height: 112px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.text-input:hover, .small-select:hover { box-shadow: inset 0 0 0 1px #c3c8d4; }
.text-input:focus, .small-select:focus { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(15, 20, 36, .07); }
.text-input::placeholder { color: var(--ink-3); font-weight: 300; }
select.text-input, .small-select {
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239aa1b2' stroke-width='1.7' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.small-select { padding: 0 34px 0 14px; font-size: 14.5px; background-position: right 12px center; text-overflow: ellipsis; }
.field-help { margin: 8px 0 0; font-size: 12.5px; font-weight: 300; color: var(--ink-2); }

.two-inputs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.minor-row { align-items: end; }
.check-field { display: flex; align-items: flex-end; }
.check-label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin: 14px 0 0 !important;
  padding: 0 16px;
  border-radius: var(--r-md);
  background: var(--field);
  cursor: pointer;
  user-select: none;
}
.check-label input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }

/* Görünüm */
.customize-heading { align-items: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.subtitle-pill { flex: none; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--field); font-size: 12px; font-weight: 500; line-height: 28px; color: var(--ink-2); }
.custom-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.option-col { min-width: 0; }
.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px 0 8px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--field-line);
  transition: box-shadow .25s var(--ease);
}
.color-row:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(15, 20, 36, .07); }
.color-row input[type="color"] {
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
}
.color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(15, 20, 36, .14); }
.color-row input[type="color"]::-moz-color-swatch { border: 0; border-radius: 10px; }
.color-row span { min-width: 0; font-size: 14px; font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }

.logo-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--field);
}
.logo-icon { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.logo-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.logo-info strong { font-size: 14px; font-weight: 600; }
.logo-info span { font-size: 12px; font-weight: 300; color: var(--ink-2); }
.logo-info .logo-name { margin-top: 2px; font-weight: 500; color: var(--mint-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--field-line);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow .2s var(--ease);
}
.upload-button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
#logo-upload:focus-visible + .upload-button, .upload-button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.remove-logo { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: #fff; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.remove-logo:hover { background: var(--red-soft); color: var(--red); }

.field-error {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--red-soft);
  color: #b4232a;
  font-size: 13.5px;
  animation: shake .4s var(--ease);
}
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.create-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 20, 36, .22);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.create-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.create-btn:hover { background: #1c2340; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(15, 20, 36, .26); }
.create-btn:hover svg { transform: translateX(3px); }
.create-btn:active { transform: scale(.98); }
.create-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Önizleme ──────────────────────────────── */
.preview-panel { display: flex; flex-direction: column; gap: 16px; }
.live-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
}
.live-badge span { width: 7px; height: 7px; border-radius: 50%; background: #1fc7a0; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

.qr-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(18px, 6vw, 32px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 20, 36, .07) 1px, transparent 0) 0 0 / 16px 16px,
    linear-gradient(160deg, #f3f5fa, #eef1f7);
}
.qr-paper {
  width: 100%;
  max-width: 300px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lift);
  transition: transform .4s var(--ease);
}
.qr-paper:hover { transform: translateY(-3px) rotate(-.5deg); }
.qr-paper canvas { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; border-radius: 10px; image-rendering: pixelated; }
.preview-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 0; text-align: center; color: var(--ink-3); }
.preview-empty span { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); }
.preview-empty svg { width: 28px; height: 28px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.preview-empty p { margin: 0; font-size: 14px; }
.preview-caption { min-height: 22px; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }

.download-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.download-primary, .download-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.download-primary svg, .download-secondary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download-primary { background: linear-gradient(135deg, #1fc7a0, #0f9f80); color: #fff; box-shadow: 0 10px 22px rgba(15, 159, 128, .28); }
.download-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15, 159, 128, .34); }
.download-secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--field-line); }
.download-secondary:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.download-primary:active, .download-secondary:active { transform: scale(.97); }
.download-primary:disabled, .download-secondary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.preview-note {
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-size: 12.5px;
  line-height: 1.5;
}
.preview-note svg { width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.privacy-row { display: flex; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.privacy-row > span { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--mint-soft); }
.privacy-row > span svg { width: 20px; height: 20px; fill: none; stroke: var(--mint-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.privacy-row strong { display: block; font-size: 14px; font-weight: 600; }
.privacy-row p { margin: 2px 0 0; font-size: 12.5px; font-weight: 300; color: var(--ink-2); }

/* ── Sık sorulanlar ────────────────────────── */
.information { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 56px 0 0; padding: 0 2px; }
.info-intro h2 { font-size: clamp(24px, 4.6vw, 34px); letter-spacing: -.03em; line-height: 1.15; }
.info-intro p { margin: 10px 0 0; font-weight: 300; color: var(--ink-2); }
.faqs { display: flex; flex-direction: column; gap: 8px; }
.faqs details { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.faqs summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary span {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--field);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.faqs details[open] summary span { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faqs details p { margin: 0; padding: 0 20px 18px; font-size: 14px; font-weight: 300; color: var(--ink-2); }

/* ── Alt bilgi ─────────────────────────────── */
.footer { margin-top: 64px; padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .55); }
.footer-inner { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--ink-2); }
.footer-inner > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.footer-brand img { display: block; height: 24px; width: auto; max-width: 120px; object-fit: contain; }
.footer a { font-weight: 500; color: var(--ink); }
.footer a:hover { text-decoration: underline; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Ekran boyutları ───────────────────────── */
@media (max-width: 520px) {
  .header-separator, .product-name { display: none; }
  .hl-long { display: none; }
  .hl-short { display: inline; }
  .hero { padding-top: 32px; }
  .hero-chips span { font-size: 12.5px; }
  .logo-option { flex-wrap: wrap; }
  .logo-info { flex-basis: calc(100% - 56px); }
  .upload-button { flex: 1; justify-content: center; }
}
@media (max-width: 360px) {
  .custom-options { grid-template-columns: minmax(0, 1fr); }
  .download-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 640px) {
  :root { --pad: 24px; }
  .panel { padding: 28px; }
  .two-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-tabs { flex-wrap: wrap; margin: 20px 0 0; padding: 0; overflow: visible; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
/* Görünüm seçenekleri: panelin kendi genişliğine göre 2 ya da 4 sütun */
.editor { container-type: inline-size; }
@container (min-width: 760px) {
  .custom-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  :root { --pad: 32px; }
  .hero { padding: 64px 0 40px; }
  .workspace { grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); gap: 20px; }
  .preview-panel { position: sticky; top: 84px; }
  .information { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; margin-top: 80px; }
  .info-intro { position: sticky; top: 96px; align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
