/* altin.hesappla.net — Toplu Altın Hesaplama */

:root {
  --ink: #1a1208;
  --ink-soft: #5c4a32;
  --muted: #8a7355;
  --paper: #f7f1e6;
  --paper-deep: #efe4d0;
  --card: #fffdf8;
  --line: #e4d5b8;
  --gold: #b45309;
  --gold-bright: #d97706;
  --gold-glow: #fbbf24;
  --navy: #1e3a5f;
  --success: #15803d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(26, 18, 8, .08);
  --header-h: 68px;
  --bar-h: 76px;
  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(251, 191, 36, .22), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(30, 58, 95, .12), transparent 50%),
    linear-gradient(180deg, #fbf7ef 0%, var(--paper) 40%, #f3ebe0 100%);
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: calc(var(--bar-h) + 24px);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  background: rgba(251, 247, 239, .88);
  border-bottom: 1px solid rgba(228, 213, 184, .7);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img { height: 40px; width: auto; }
.header-note {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
}
.header-note a {
  color: var(--navy);
  border-bottom: 1px solid transparent;
}
.header-note a:hover { border-bottom-color: var(--navy); }

/* Hero */
.hero {
  padding: 36px 0 8px;
}
.hero-kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--font);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 16ch;
}
.hero-lead {
  margin-top: 12px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Calculator shell */
.calc-shell {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.gold-mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.gold-mode-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  text-align: left;
  color: var(--ink);
  transition: .2s ease;
}
.gold-mode-btn strong { display: block; font-size: .9rem; }
.gold-mode-btn small { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.gold-mode-btn.active {
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, #fff7e6, #fde68a);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .15);
}
.gold-mode-ico { font-size: 1.35rem; line-height: 1; }
.gold-mode-meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}

.gold-bulk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.gold-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: .2s ease;
}
.gold-tile:hover { border-color: #f0c674; box-shadow: var(--shadow); }
.gold-tile.has-qty {
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, #fff8eb 0%, #fff 65%);
}
.gold-coin-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(180, 83, 9, .25));
}
.gold-tile-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}
.gold-tile-info { text-align: center; width: 100%; }
.gold-tile-info h3 { font-size: .92rem; font-weight: 700; margin: 0; }
.gold-tile-info p { font-size: .72rem; color: var(--muted); margin: 2px 0 6px; }
.gold-tile-price { font-size: .85rem; font-weight: 700; color: var(--gold); }
.gold-tile-price span { font-weight: 500; color: var(--muted); font-size: .75rem; }

.gold-tile-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.gold-qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.gold-qty-btn:hover { border-color: var(--gold-bright); background: #fff7e6; }
.gold-tile-qty input {
  flex: 1;
  height: 36px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  font-family: inherit;
  background: #fff;
}
.gold-tile-qty input:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .15);
}
.gold-tile-qty input::-webkit-outer-spin-button,
.gold-tile-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gold-tile-qty input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.gold-tile-line {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  min-height: 1.2em;
}
.gold-tile.has-qty .gold-tile-line { color: var(--success); }

/* Sticky total */
.gold-bulk-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(135deg, #fff7e6, #fde68a);
  border-top: 1.5px solid #f0c674;
  box-shadow: 0 -10px 30px rgba(26, 18, 8, .12);
}
.gold-bulk-actions-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gold-inline-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.gold-inline-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.gold-inline-total strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.gold-inline-count {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
}
.btn-secondary {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--gold-bright); }

/* SEO */
.seo-section {
  margin: 48px auto 24px;
  padding: 32px 28px;
  max-width: 760px;
  width: min(760px, calc(100% - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.seo-section h2 {
  font-family: var(--font);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.seo-section h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  margin: 28px 0 10px;
}
.seo-section p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  margin-left: auto;
  margin-right: auto;
  max-width: 62ch;
}
.seo-section ul {
  margin: 0 auto 14px;
  list-style: disc;
  color: var(--ink-soft);
  display: inline-block;
  text-align: left;
  max-width: 56ch;
}
.seo-section li { margin-bottom: 6px; padding-left: 4px; }
.seo-section strong { color: var(--ink); }

/* FAQ */
.faq-section {
  margin: 0 auto 48px;
  padding: 32px 28px;
  max-width: 760px;
  width: min(760px, calc(100% - 32px));
  background: linear-gradient(180deg, #fffdf8, #f8f0e2);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
}
.faq-section h2 {
  font-family: var(--font);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 18px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: left;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 0 16px;
  color: var(--ink-soft);
  text-align: left;
}

.disclaimer {
  margin: 0 auto 40px;
  max-width: 760px;
  width: min(760px, calc(100% - 32px));
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a { color: var(--navy); font-weight: 600; }

@media (max-width: 768px) {
  .header-note { display: none; }
  .gold-mode-meta { width: 100%; align-items: flex-start; margin-left: 0; }
  .gold-bulk-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gold-coin-img { width: 64px; height: 64px; }
  .gold-tile-visual { min-height: 72px; }
  .seo-section, .faq-section { padding: 24px 18px; width: min(760px, calc(100% - 24px)); }
  .gold-inline-total strong { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .gold-mode-btn { flex: 1; min-width: calc(50% - 6px); padding: 8px 10px; }
  .gold-bulk-actions-inner { flex-direction: column; align-items: stretch; }
  .gold-bulk-actions .btn { width: 100%; }
}

@media print {
  .site-header, .gold-bulk-actions { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
}
