@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,560;9..144,700&family=Sora:wght@400;500;600;700&display=swap");

:root {
  --brand: #145c38;
  --brand-mid: #1f7a4d;
  --brand-dark: #0b3a24;
  --brand-soft: #e7f3ec;
  --accent: #b8913f;
  --accent-soft: #f6eedc;
  --bg: #edf3ef;
  --surface: #ffffff;
  --text: #12241b;
  --muted: #5a6d62;
  --border: #cfdcd4;
  --danger: #b42318;
  --yeni: #1849a9;
  --inceleniyor: #b54708;
  --yanitlandi: #067647;
  --kapandi: #667085;
  --shadow: 0 12px 30px rgba(11, 58, 36, 0.08);
  --radius: 16px;
  --font: "Sora", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(184, 145, 63, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at -10% 20%, rgba(20, 92, 56, 0.1), transparent 50%),
    linear-gradient(180deg, #f5faf7 0%, var(--bg) 45%, #e8f0eb 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page {
  position: relative;
  z-index: 1;
  width: min(740px, 100%);
  margin: 0 auto;
  padding: 0 16px 104px;
}

.page-flush {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(207, 220, 212, 0.9);
}

.site-header-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 12px 16px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.brand-centered {
  flex-direction: column;
  text-align: center;
  margin-bottom: 8px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.brand-logo-lg {
  width: 88px;
  height: 88px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(160deg, var(--brand-mid), var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.brand-text span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.header-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-link:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* —— Home hero (full-bleed) —— */
.home-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  animation: fadeIn 0.55s ease-out;
}

.home-hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 58, 36, 0.25) 0%, rgba(11, 58, 36, 0.72) 48%, rgba(8, 40, 25, 0.92) 100%),
    radial-gradient(circle at 78% 18%, rgba(184, 145, 63, 0.35), transparent 42%),
    linear-gradient(145deg, #1f7a4d 0%, #0b3a24 55%, #072819 100%);
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.55'%3E%3Cpath d='M36 8c8 10 12 20 12 28a12 12 0 1 1-24 0c0-8 4-18 12-28z'/%3E%3Cpath d='M36 36v20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  animation: drift 28s linear infinite;
}

.home-hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12), transparent 65%);
  animation: softPulse 5.5s ease-in-out infinite;
}

.home-hero-inner {
  width: min(740px, 100%);
  margin: 0 auto;
  padding: 36px 20px 44px;
}

.home-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: rise 0.55s ease-out both;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  animation: rise 0.6s ease-out 0.28s both;
}

.privacy-pill svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f3ec, #f3f8f0);
  border: 1px solid #b9d9c6;
  color: var(--brand-dark);
  animation: rise 0.4s ease-out;
}

.privacy-banner svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-banner strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.privacy-banner p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.home-brand {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 9vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  animation: rise 0.6s ease-out 0.08s both;
}

.home-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  max-width: 18em;
  animation: rise 0.6s ease-out 0.16s both;
}

.home-hero p {
  margin: 0;
  max-width: 28em;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  animation: rise 0.6s ease-out 0.24s both;
}

.home-hero .cta-stack {
  margin-top: 28px;
  animation: rise 0.6s ease-out 0.32s both;
}

.home-hero .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.home-hero .btn-primary:hover {
  background: var(--accent-soft);
}

.home-hero .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.home-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero {
  padding: 22px 0 8px;
  animation: rise 0.45s ease-out;
}

.hero-kicker {
  display: inline-block;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5.5vw, 2.15rem);
  line-height: 1.15;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.cta-stack {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  width: 100%;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: linear-gradient(165deg, var(--brand-mid), var(--brand-dark));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--surface);
  color: var(--brand-dark);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: #a9c4b5;
  background: #fbfefc;
}

.btn-ghost {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--border);
}

.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(207, 220, 212, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  margin-top: 18px;
  animation: rise 0.45s ease-out;
  backdrop-filter: blur(8px);
}

.panel h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.panel .lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.form-grid {
  display: grid;
  gap: 15px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}

.field .hint {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #f8fbf9;
  appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6d62' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.textarea {
  min-height: 148px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.15);
}

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 500;
}

.alert-error {
  background: #fef3f2;
  color: var(--danger);
  border: 1px solid #fecdca;
}

.alert-success {
  background: #ecfdf3;
  color: var(--yanitlandi);
  border: 1px solid #abeec6;
}

.alert-info {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid #b9d9c6;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-yeni {
  background: #eff4ff;
  color: var(--yeni);
}

.badge-inceleniyor {
  background: #fffaeb;
  color: var(--inceleniyor);
}

.badge-yanitlandi {
  background: #ecfdf3;
  color: var(--yanitlandi);
}

.badge-kapandi {
  background: #f2f4f7;
  color: var(--kapandi);
}

.meta-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.meta-list li:last-child {
  border-bottom: 0;
}

.meta-list .label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-list .value {
  font-size: 0.98rem;
  word-break: break-word;
}

.takip-box {
  text-align: center;
  padding: 28px 14px;
}

.takip-box .code {
  display: inline-block;
  margin: 14px 0 8px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--brand-soft), #dff0e6);
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid #b9d9c6;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
  padding: 6px 10px calc(6px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.bottom-nav a svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.admin-shell {
  background-image:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(20, 92, 56, 0.08), transparent 50%),
    linear-gradient(180deg, #f4f8f5 0%, var(--bg) 100%);
}

.admin-shell .page {
  width: min(980px, 100%);
  padding-bottom: 48px;
}

.admin-shell .site-header {
  background: rgba(255, 255, 255, 0.92);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 18px 0 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-nav a {
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav a:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.admin-nav a.active {
  background: var(--brand-dark);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  animation: rise 0.45s ease-out;
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-mid);
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.1;
}

.stat-card .lbl {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 4px;
}

.card-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.item-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  box-shadow: var(--shadow);
  color: inherit;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.item-card:hover {
  border-color: #9fc4af;
  transform: translateY(-1px);
}

.item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.item-top strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
}

.item-meta {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.filters {
  display: grid;
  gap: 12px;
}

.filters .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(184, 145, 63, 0.2), transparent 55%),
    linear-gradient(160deg, #0f4630 0%, #145c38 42%, #0b3a24 100%);
}

.login-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M36 8c8 10 12 20 12 28a12 12 0 1 1-24 0c0-8 4-18 12-28z'/%3E%3Cpath d='M36 36v20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  pointer-events: none;
}

.login-card {
  position: relative;
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  padding: 28px 22px;
  animation: rise 0.5s ease-out;
}

.login-card h1 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.login-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 8px 0 4px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 72px 72px; }
}

@keyframes softPulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 0.9; transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters .full {
    grid-column: 1 / -1;
  }

  .bottom-nav {
    display: none;
  }

  .page {
    padding-bottom: 48px;
  }

  .page-flush {
    padding-bottom: 0;
  }

  .home-hero {
    min-height: calc(100svh - var(--header-h));
    border-radius: 0 0 28px 28px;
  }

  .home-hero-inner {
    padding: 56px 24px 64px;
  }

  .desktop-nav {
    display: flex !important;
    gap: 4px;
  }
}

.desktop-nav {
  display: none;
}

.desktop-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
