/* ======== Temel Reset ======== */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }

/* ======== Değişkenler ======== */
:root{
  --bg: #f3f4f6;           /* sayfa arka plan */
  --card: #ffffff;         /* kart zemin */
  --text: #111827;         /* temel metin */
  --muted: #6b7280;        /* yardımcı metin */
  --border: #e5e7eb;       /* sınır rengi */
  --primary: #2563eb;      /* buton ana rengi */
  --primary-hover: #1e40af;
  --ring: rgba(37,99,235,.35);
  --radius: 14px;
  --space: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-2: 0 18px 50px rgba(0,0,0,.12);
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
}

body.page{
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  display: grid;
  place-items: center;
  padding: 20px;
}

/* ======== Kart (iki kolon) ======== */
.card{
  width: min(1100px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

/* >= 900px iki kolona geç */
@media (min-width: 900px){
  .card{ grid-template-columns: 3fr 2fr; }
}

/* Sol taraf (görsel) */
.media{
  padding: clamp(16px, 2vw, 24px);
  display: grid;
  place-items: center;
  background: #fff;
}
.media-img{
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

/* Sağ taraf (form) */
.form-side{
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.title{
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

/* Form alanları */
.form{ display: grid; gap: 14px; }
.field{ display: grid; gap: 6px; }
.label{ font-size: 14px; color: #374151; }
.req{ color: #dc2626; }
.hint{ color: #9ca3af; font-weight: 500; font-size: 12px; }
.help{ font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Kontroller */
.input,
.select,
.textarea{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.input:focus,
.select:focus,
.textarea:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}
.textarea{ min-height: 120px; resize: vertical; }

/* Checkbox */
.checkbox{ display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.checkbox-input{
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--primary);
}
.checkbox-text{ font-size: 14px; color: #374151; }

/* Link tarzı buton */
.link{
  background: none; border: none; padding: 0;
  color: #155e75; text-decoration: underline; cursor: pointer;
}
.link:hover{ color: #0c4a6e; }

/* Buton */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .04s ease;
}
.btn:hover{ background: var(--primary-hover); }
.btn:active{ transform: translateY(1px); }

.btn-ghost{
  background: #fff;
  color: #111;
  border-color: var(--border);
}
.btn-ghost:hover{
  background: #f8fafc;
}

/* ======== Modal ======== */
.hidden{ display: none !important; }

.modal{
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 16px;
}
.modal-backdrop{
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
}
.modal-card{
  position: relative;
  width: min(860px, 96vw);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: 92vh;
}
.modal-head, .modal-foot{
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 7px 16px; border-bottom: 1px solid var(--border);
}
.modal-foot{ border-top: 1px solid var(--border); border-bottom: 0; }
.modal-title{ font-size: 10px; font-weight: 600; color: #1f2937; }
.modal-close{
  background: transparent; border: 0; cursor: pointer;
  border-radius: 8px; padding: 6px 10px; font-size: 16px;
}
.modal-close:hover{ background: #f3f4f6; }
.modal-body{ padding: 0; }
.modal-iframe{
  width: 100%;
  height: clamp(60vh, 80vh, 80vh);
  border: 0;
}

/* ======== Noscript Uyarısı ======== */
.noscript{
  margin-top: 12px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  padding: 10px 12px;
  border-radius: 8px;
}
