/* ============================================================
   atölye biart — Norva UI token'ları üzerine marka teması
   Marka rengi: #CC467B → oklch(59.4% 0.175 359.6) (pembe)
   ============================================================ */

:root {
  /* Marka pembesi — Norva primary'yi override */
  --primary:            oklch(59.4% 0.175 359.6);
  --primary-foreground: oklch(99% 0.01 359.6);
  --ring:               oklch(59.4% 0.175 359.6);
  --accent:             oklch(72% 0.14 40);        /* sıcak turuncu-şeftali ikincil */
  --accent-foreground:  oklch(20% 0.02 40);

  --brand-pink:  oklch(59.4% 0.175 359.6);
  --brand-soft:  color-mix(in oklch, var(--primary) 8%, var(--background));
  --max-w: 1160px;
}

.dark {
  --primary:            oklch(70% 0.16 359.6);
  --primary-foreground: oklch(15% 0.03 359.6);
  --ring:               oklch(70% 0.16 359.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--background) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 34px; width: auto; }
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.social {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  color: var(--muted-foreground);
  transition: all .18s ease;
}
.social a:hover {
  color: var(--primary);
  background: var(--brand-soft);
}
.social svg { width: 19px; height: 19px; }
.header-cta {
  margin-left: .35rem;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(60% 90% at 50% -10%, var(--brand-soft), transparent 70%);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1rem;
}
.hero h1 .accent { color: var(--primary); }
.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted-foreground);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECTION başlık ─────────────────────────────────────── */
.section { padding: 3.5rem 0 4.5rem; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 .5rem;
}
.section-head p { color: var(--muted-foreground); margin: 0; }

/* ── ATÖLYE GRID (4 sütun box box) ──────────────────────── */
.atolye-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1000px) { .atolye-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .atolye-grid { grid-template-columns: 1fr; } }

.atolye-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.atolye-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklch, var(--primary) 40%, var(--border));
}
.atolye-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.atolye-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.atolye-card:hover .thumb img { transform: scale(1.06); }
.atolye-card .body {
  padding: 1.1rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.atolye-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 .5rem;
}
.atolye-card p {
  font-size: .85rem;
  color: var(--muted-foreground);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.atolye-card .more {
  margin-top: auto;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.atolye-card:hover .more { gap: .5rem; }

/* ── Brick Print Art takip kartı ────────────────────────── */
.brick-card {
  border-color: color-mix(in oklch, var(--primary) 35%, var(--border));
}
.brick-card .body { background: var(--brand-soft); }
.brick-desc {
  -webkit-line-clamp: unset !important;
  display: block !important;
  overflow: visible !important;
  line-height: 1.7;
}
.brick-by { font-weight: 700; color: var(--foreground); }
.brick-follow {
  align-self: flex-start;
  background: var(--primary);
  color: var(--primary-foreground) !important;
  padding: .5rem .9rem;
  border-radius: var(--radius-full);
  transition: filter .18s ease;
}
.brick-follow svg { width: 15px; height: 15px; }
.brick-card:hover .brick-follow { filter: brightness(1.06); gap: .3rem; }

/* ── ATÖLYE DETAY (blog layout) ─────────────────────────── */
.post { padding: 2.5rem 0 4rem; }
.post-head { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.post-head .back {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}
.post-head .back:hover { color: var(--primary); }
.post-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 .75rem;
}
.post-head .lead { color: var(--muted-foreground); font-size: 1.1rem; }
.post-hero {
  max-width: 960px; margin: 0 auto 2.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.post-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.post-body p { margin: 0 0 1.25rem; }
.post-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; letter-spacing: -0.02em; }
.post-body h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.post-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.post-body img { border-radius: var(--radius); }
.post-cta {
  max-width: 760px; margin: 3rem auto 0;
  text-align: center;
  padding: 2rem;
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.post-cta h3 { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 700; }
.post-cta p { margin: 0 0 1.25rem; color: var(--muted-foreground); }
.post-cta + .post-cta { margin-top: 1rem; }
/* İkinci (ürünler) box — nötr yüzey, kayıt box'ından ayrışsın */
.post-cta-alt {
  background: var(--surface);
  border-color: var(--border);
}

/* ── NEWSLETTER şeridi (footer üstü, tüm sayfalar) ──────── */
.newsletter {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(70% 120% at 100% 0%, var(--brand-soft), transparent 60%),
    var(--background);
  padding: 3rem 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-text { max-width: 480px; }
.newsletter-text h3 {
  margin: 0 0 .4rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.newsletter-text p { margin: 0; color: var(--muted-foreground); font-size: .92rem; }
.newsletter-form {
  flex: 1;
  min-width: 280px;
  max-width: 440px;
}
.newsletter-row { display: flex; gap: .5rem; }
#notify-msg { font-size: .8rem; margin: .6rem 0 0; min-height: 1em; }
#notify-msg.ok  { color: var(--success); }
#notify-msg.err { color: var(--danger); }
.newsletter-input {
  flex: 1;
  padding: .7rem 1rem;
  font-size: .92rem;
  font-family: inherit;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.newsletter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 18%, transparent);
}
.newsletter-input::placeholder { color: var(--muted-foreground); }
.newsletter-form .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .newsletter-form { max-width: none; width: 100%; }
}

/* ── Ghost Koenig kartları (galeri, resim, buton) ───────── */
.kg-card { margin: 1.75rem 0; }
figure { margin: 1.75rem 0; }
figure img { border-radius: var(--radius); width: 100%; }
figcaption { text-align: center; font-size: .82rem; color: var(--muted-foreground); margin-top: .5rem; }
.kg-gallery-container { display: flex; flex-direction: column; gap: .5rem; }
.kg-gallery-row { display: flex; gap: .5rem; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.kg-width-wide { margin-inline: -6%; }
@media (max-width: 700px) { .kg-width-wide { margin-inline: 0; } .kg-gallery-row { flex-direction: column; } }
.kg-image { border-radius: var(--radius); }
.kg-embed-card { margin: 1.75rem 0; }
.kg-embed-card iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--radius); border: 0; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--surface);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.footer-brand { max-width: 300px; }
.footer-brand img { height: 32px; margin-bottom: .75rem; }
.footer-brand p { color: var(--muted-foreground); font-size: .9rem; margin: 0; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-foreground); margin: 0 0 .75rem; }
.footer-col a { display: block; font-size: .9rem; margin-bottom: .4rem; color: var(--foreground); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--muted-foreground);
}
.footer-email {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--foreground);
  transition: color .18s ease;
}
.footer-email:hover { color: var(--primary); }

/* ── BUTONLAR (Norva nv-btn üzerine güvence) ────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .92rem;
  padding: .65rem 1.3rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
