/* CEPZONE - ortak arayüz stili (2026-11-08). AdminLTE/Bootstrap bağımlılığı yok.
   Kurumsal palet: amber/turuncu (logo "CEP") + antrasit (logo "ZONE"). */
:root {
  --cz-bg: #faf7f2;
  --cz-bg-2: #fff6e9;
  --cz-card: #ffffff;
  --cz-ink: #1f2330;
  --cz-muted: #6f6a61;
  --cz-line: #ece5d8;
  --cz-primary: #f59300;
  --cz-primary-dark: #c96f00;
  --cz-accent: #ef6c1a;
  --cz-dark: #23262f;
  --cz-dark-2: #353a48;
  --cz-soft: #fff1d6;
  --cz-grad: linear-gradient(135deg, #ffb627 0%, #f59300 52%, #ef6c1a 100%);
  --cz-grad-dark: linear-gradient(135deg, #23262f 0%, #3a3f4e 100%);
  --cz-radius: 18px;
  --cz-shadow: 0 10px 30px rgba(120, 70, 0, 0.10);
  --cz-shadow-sm: 0 3px 12px rgba(120, 70, 0, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--cz-ink);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(245, 147, 0, 0.16), transparent 60%),
    radial-gradient(800px 500px at 110% 0%, rgba(35, 38, 47, 0.10), transparent 60%),
    linear-gradient(180deg, var(--cz-bg) 0%, var(--cz-bg-2) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

a { color: var(--cz-primary-dark); text-decoration: none; }
a:hover { color: var(--cz-accent); }
img { max-width: 100%; display: block; }

/* Logo (inline SVG işaret + yazı markası) */
.cz-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cz-ink);
  line-height: 1;
}
.cz-logo:hover { color: var(--cz-ink); }
.cz-mark {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 30%;
  background: var(--cz-grad);
  box-shadow: 0 4px 12px rgba(245, 147, 0, 0.35);
  display: grid; place-items: center;
}
.cz-mark svg { width: 62%; height: 62%; display: block; }
.cz-word {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  background: var(--cz-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cz-word b {
  font-weight: 800;
  background: var(--cz-grad-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cz-logo-lg { flex-direction: column; gap: 14px; text-align: center; }
.cz-logo-lg .cz-mark { width: 72px; height: 72px; border-radius: 26%; box-shadow: 0 10px 26px rgba(245, 147, 0, 0.35); }
.cz-logo-lg .cz-word { font-size: 40px; }
.cz-logo-md .cz-mark { width: 56px; height: 56px; }
.cz-logo-md .cz-word { font-size: 32px; }
.cz-tagline {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cz-muted);
}

/* Üst çubuk */
.cz-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--cz-line);
}
.cz-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cz-nav { display: flex; gap: 6px; }
.cz-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--cz-muted);
  padding: 7px 12px;
  border-radius: 999px;
}
.cz-nav a:hover { background: var(--cz-soft); color: var(--cz-primary-dark); }

/* Sayfa gövdesi */
.cz-main { flex: 1; width: 100%; }
.cz-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 16px 36px;
}
.cz-container.narrow { max-width: 460px; }

.cz-card {
  background: var(--cz-card);
  border: 1px solid var(--cz-line);
  border-radius: var(--cz-radius);
  box-shadow: var(--cz-shadow-sm);
  padding: 22px 20px;
}
.cz-card + .cz-card, .cz-card + .cz-grid, .cz-grid + .cz-card { margin-top: 16px; }

.cz-center { text-align: center; }
.cz-muted { color: var(--cz-muted); }
.cz-small { font-size: 13px; }

h1.cz-title, h2.cz-title {
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1.cz-title { font-size: 28px; }
h2.cz-title { font-size: 20px; }
.cz-title .grad {
  background: var(--cz-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cz-lead { margin: 0 0 18px; color: var(--cz-muted); font-size: 16px; }

/* Düğmeler */
.cz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.cz-btn:active { transform: translateY(1px); }
.cz-btn-primary {
  color: #fff;
  background: var(--cz-grad);
  box-shadow: 0 8px 20px rgba(245, 147, 0, 0.30);
}
.cz-btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(245, 147, 0, 0.40); }
.cz-btn-dark {
  color: #fff;
  background: var(--cz-grad-dark);
  box-shadow: 0 8px 20px rgba(35, 38, 47, 0.25);
}
.cz-btn-dark:hover { color: #fff; box-shadow: 0 10px 26px rgba(35, 38, 47, 0.32); }
.cz-btn-ghost {
  color: var(--cz-ink);
  background: #fff;
  border-color: var(--cz-line);
}
.cz-btn-ghost:hover { background: var(--cz-soft); color: var(--cz-ink); }
.cz-btn-block { width: 100%; }
.cz-btn + .cz-btn-block, .cz-btn-block + .cz-btn-block { margin-top: 10px; }
.cz-btn[disabled] { opacity: .6; cursor: default; }

/* Formlar */
.cz-field { margin-bottom: 14px; text-align: left; }
.cz-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cz-muted);
  margin-bottom: 6px;
}
.cz-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--cz-line);
  border-radius: 12px;
  font: inherit;
  color: var(--cz-ink);
  background: #fff;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.cz-input:focus {
  border-color: var(--cz-primary);
  box-shadow: 0 0 0 3px rgba(245, 147, 0, 0.18);
}
.cz-alert {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 14px;
}
.cz-alert-error { background: #fdeeec; color: #a3261a; border: 1px solid #f6cbc4; }

/* Özellik rozetleri (index) */
.cz-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 4px; }
.cz-chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--cz-primary-dark);
  background: var(--cz-soft);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Günün ipucu / teşekkür kartı (antrasit zemin, amber vurgu) */
.cz-tip {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--cz-grad-dark);
  border: 0;
  box-shadow: var(--cz-shadow);
}
.cz-tip::after {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background: var(--cz-grad);
  opacity: .22;
}
.cz-tip-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffb627;
  margin-bottom: 6px;
  position: relative;
}
.cz-tip-text { font-size: 17px; line-height: 1.5; margin: 0; position: relative; }
.cz-tip-big { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 6px; position: relative; }

/* Kategori ızgarası (eski kartlar) */
.cz-section-title {
  margin: 22px 4px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cz-muted);
}
.cz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) { .cz-grid { grid-template-columns: 1fr 1fr; } }
.cz-cat {
  display: block;
  background: var(--cz-card);
  border: 1px solid var(--cz-line);
  border-radius: var(--cz-radius);
  overflow: hidden;
  box-shadow: var(--cz-shadow-sm);
  color: var(--cz-ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cz-cat:hover { transform: translateY(-2px); box-shadow: var(--cz-shadow); color: var(--cz-ink); }
.cz-cat img { width: 100%; aspect-ratio: 10 / 3; object-fit: cover; }
.cz-cat-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}
.cz-cat-title { font-weight: 700; font-size: 15px; }
.cz-cat-sub { font-size: 12px; color: var(--cz-muted); margin-top: 2px; }
.cz-cat-arrow {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cz-soft);
  color: var(--cz-primary-dark);
  font-weight: 700;
}
.cz-cat-ai { margin-top: 16px; }
.cz-ai-banner {
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--cz-dark);
  overflow: hidden;
}
@media (min-width: 600px) { .cz-ai-banner { aspect-ratio: 10 / 3; } }
.cz-ai-banner img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.cz-ai-banner-text {
  position: absolute;
  inset: 0;
  width: 60%;
  padding: 0 0 0 clamp(14px, 5%, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: linear-gradient(90deg, rgba(35, 38, 47, 0.75) 55%, rgba(35, 38, 47, 0) 100%);
}
.cz-ai-kicker {
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #ffb627;
  margin-bottom: 4px;
}
.cz-ai-title {
  font-size: clamp(20px, 6vw, 34px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.cz-ai-sub {
  margin-top: 6px;
  font-size: clamp(11px, 2.9vw, 14px);
  color: rgba(255, 255, 255, 0.82);
}
@media (max-width: 380px) { .cz-ai-sub { display: none; } }

/* Kategori şeridi (üst çubuk altı) */
.cz-catnav {
  position: sticky;
  top: 55px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--cz-line);
}
.cz-catnav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cz-catnav-inner::-webkit-scrollbar { display: none; }
.cz-catchip {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--cz-muted);
  background: #fff;
  border: 1px solid var(--cz-line);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}
.cz-catchip:hover { color: var(--cz-primary-dark); border-color: #f4cf8a; }
.cz-catchip.active { color: #fff; background: var(--cz-dark); border-color: transparent; }

/* Bölüm başlığı + "tümünü gör" */
.cz-section { margin-top: 22px; }
.cz-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 4px 10px;
}
.cz-section-head .cz-section-title { margin: 0; }
.cz-section-more { font-size: 13px; font-weight: 600; white-space: nowrap; }

/* İçerik kartları */
.cz-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 600px) { .cz-items-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .cz-items-grid { grid-template-columns: repeat(4, 1fr); } }
.cz-items-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.cz-items-scroll > .cz-item { flex: 0 0 46%; scroll-snap-align: start; }
@media (min-width: 600px) { .cz-items-scroll > .cz-item { flex-basis: 31%; } }
@media (min-width: 760px) { .cz-items-scroll > .cz-item { flex-basis: 23%; } }

.cz-item {
  background: var(--cz-card);
  border: 1px solid var(--cz-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--cz-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cz-item:hover { transform: translateY(-2px); box-shadow: var(--cz-shadow); }
.cz-item-link { color: var(--cz-ink); display: flex; flex-direction: column; flex: 1; }
.cz-item-link:hover { color: var(--cz-ink); }
.cz-item-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fff1d6, #ffe3c2);
  overflow: hidden;
}
.cz-item-wallpaper .cz-item-media { aspect-ratio: 3 / 4; }
.cz-item-video .cz-item-media { aspect-ratio: 16 / 10; background: var(--cz-dark); }
.cz-item-media img, .cz-item-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cz-item-ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-weight: 700; color: var(--cz-primary-dark);
}
.cz-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cz-accent);
  font-size: 16px;
  padding-left: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.cz-item-body { padding: 10px 12px 12px; }
.cz-item-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cz-item-sub { font-size: 12px; color: var(--cz-muted); margin-top: 3px; }
.cz-audio { width: 100%; height: 36px; margin: 0 0 10px; padding: 0 8px; box-sizing: border-box; }
.cz-audio-lg { height: 44px; margin: 14px 0 6px; padding: 0; }

/* Sayfalama */
.cz-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0 6px; }
.cz-page {
  min-width: 38px; height: 38px;
  padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--cz-line);
  font-size: 14px; font-weight: 600;
  color: var(--cz-muted);
}
.cz-page:hover { color: var(--cz-primary-dark); }
.cz-page.active { color: #fff; background: var(--cz-dark); border-color: transparent; }
.cz-page.disabled, .cz-page.gap { opacity: .5; border-color: transparent; background: transparent; }

/* İçerik detayı */
.cz-crumb { margin: 2px 4px 12px; }
.cz-crumb a { color: var(--cz-muted); }
.cz-detail { padding: 16px; }
.cz-detail-media {
  border-radius: 14px;
  overflow: hidden;
  background: var(--cz-dark);
  max-height: 70vh;
}
.cz-detail-media img, .cz-detail-media video { width: 100%; height: 100%; object-fit: contain; display: block; max-height: 70vh; }
.cz-detail-square { max-width: 320px; margin: 0 auto; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #fff1d6, #ffe3c2); }
.cz-detail-square img { object-fit: cover; }
.cz-detail-tall { max-width: 420px; margin: 0 auto; }
.cz-detail-title { font-size: 22px; margin: 16px 0 4px; text-align: center; }
.cz-detail-meta { text-align: center; color: var(--cz-muted); font-size: 14px; margin: 0 0 8px; }
.cz-stars { color: #f5a623; letter-spacing: 1px; }
.cz-detail-desc { color: var(--cz-ink); font-size: 15px; line-height: 1.6; margin: 10px 0 0; }
.cz-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.cz-detail-actions .cz-btn-block { width: 100%; }

/* Uygulama listesi (apps) */
.cz-app { display: flex; flex-direction: column; gap: 10px; }
.cz-app p { margin: 0; color: var(--cz-muted); font-size: 15px; }
.cz-app-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-app-actions .cz-btn { min-height: 42px; padding: 9px 16px; font-size: 14px; }
.cz-prose p { margin: 0 0 12px; }
.cz-prose ul { margin: 6px 0 0 20px; padding: 0; }

/* Alt bilgi */
.cz-footer {
  border-top: 1px solid var(--cz-line);
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--cz-muted);
}
.cz-footer a { color: var(--cz-muted); text-decoration: underline; }

/* ---- AI asistan sayfası ---- */
body.cz-fixed {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body.cz-fixed .cz-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.cz-fixed .cz-footer { padding: 10px 16px; }
.ai-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 12px 8px;
}
.ai-roles {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.ai-roles::-webkit-scrollbar { display: none; }
.ai-role {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--cz-line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--cz-ink);
  transition: box-shadow .12s ease, border-color .12s ease;
}
.ai-role img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ai-role.active {
  border-color: transparent;
  background: var(--cz-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(35, 38, 47, 0.3);
}
.ai-chat {
  flex: 1;
  min-height: 200px;
  overflow-y: auto;
  background: var(--cz-card);
  border: 1px solid var(--cz-line);
  border-radius: var(--cz-radius);
  box-shadow: var(--cz-shadow-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-row { display: flex; align-items: flex-end; gap: 8px; }
.ai-row.user { flex-direction: row-reverse; }
.ai-row img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.ai-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ai-row.bot .ai-bubble { background: var(--cz-soft); color: var(--cz-ink); border-bottom-left-radius: 6px; }
.ai-row.user .ai-bubble { background: var(--cz-grad); color: #fff; border-bottom-right-radius: 6px; }
.ai-row.error .ai-bubble { background: #fdeeec; color: #a3261a; }
.ai-typing span {
  display: inline-block; width: 6px; height: 6px; margin: 0 2px;
  border-radius: 50%; background: var(--cz-primary); opacity: .4;
  animation: ai-blink 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .2s; }
.ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ai-blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-input {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.ai-input .cz-input { border-radius: 999px; padding-left: 18px; }
.ai-send {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--cz-grad);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(245, 147, 0, 0.3);
}
.ai-send[disabled] { opacity: .55; cursor: default; }
.ai-hint { text-align: center; font-size: 11px; color: var(--cz-muted); margin: 6px 0 0; }
.ai-bubble strong { font-weight: 700; }

/* Gizlilik metni */
.cz-legal h1 { font-size: 26px; margin: 0 0 4px; }
.cz-legal h2 { font-size: 18px; margin: 22px 0 6px; color: var(--cz-primary-dark); }
.cz-legal p, .cz-legal li { font-size: 15px; color: var(--cz-ink); }
.cz-legal ul { margin: 6px 0 10px 20px; padding: 0; }
