:root {
  --bg: #0f172a;
  --card: #111827;
  --card-2: #1f2937;
  --red: #c81e1e;
  --red-2: #a11313;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --line: rgba(255,255,255,.08);
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(0,0,0,.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    linear-gradient(rgba(7, 12, 24, 0.82), rgba(7, 12, 24, 0.94)),
    url('/assets/images/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.topbar {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.topbar-inner,
.nav-wrap,
.stats,
.cards,
.footer-grid,
.grid-2,
.grid-3 {
  display: grid;
  gap: 20px;
}

.topbar-inner {
  grid-template-columns: 1fr auto;
  padding: 10px 0;
  align-items: center;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 12, 24, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 0;
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.site-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.nav a.active,
.nav a:hover {
  color: var(--white);
}

.nav .btn {
  padding: 12px 18px;
  border-radius: 14px;
}

.menu-toggle {
  display: none;
  justify-self: end;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: 12px;
  padding: 10px 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 80px;
  background:
    radial-gradient(circle at 85% 15%, rgba(200, 30, 30, 0.18), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(40, 90, 255, 0.12), transparent 25%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -100px;
  top: -80px;
  background: rgba(255, 60, 60, 0.16);
}

.hero::after {
  width: 360px;
  height: 360px;
  left: -80px;
  bottom: -80px;
  background: rgba(70, 100, 255, 0.12);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}

.hero-card,
.card,
.panel,
.stat,
.gallery-item,
.timeline-item {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card,
.hero .panel {
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-card {
  padding: 38px;
}

.kicker {
  color: #fecaca;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 14px 0 18px;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 760px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--red), #ef4444);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(200, 30, 30, 0.18);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(200, 30, 30, 0.24);
}

.btn-outline {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
}

.btn-sm {
  padding: 10px 14px;
  border-radius: 12px;
}

.stats {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
  gap: 18px;
}

.stat {
  padding: 22px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, border-color .2s ease;
}

.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.14);
}

.stat h3 {
  font-size: 32px;
  margin: 0 0 8px;
}

.stat p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 700px;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 24px;
}

.card h3 {
  margin-top: 0;
}

.card p,
.card li {
  color: var(--muted);
  line-height: 1.7;
}

.muted { color: var(--muted); }
.meta { font-size: 14px; color: #fca5a5; }

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.panel {
  padding: 28px;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item .body {
  padding: 18px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 18px 20px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: var(--white);
  border: 1px solid var(--line);
  outline: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.alert {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.alert-success {
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
}

.alert-error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  margin-top: 64px;
}

.footer-grid {
  grid-template-columns: 1.1fr .7fr .8fr;
  padding: 48px 0 24px;
}

.footer-grid h4,
.footer-grid h3 {
  margin-top: 0;
}

.footer-grid a,
.footer-grid p {
  color: var(--muted);
  display: block;
  margin: 8px 0;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.page-hero {
  padding: 56px 0 24px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px 10px;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-size: 13px;
  color: #fecaca;
}

.cards-media {
  align-items: stretch;
}

.card-media {
  overflow: hidden;
  padding: 0;
}

.card-media-cover {
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.03);
}

.card-media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media-body {
  padding: 24px;
}

.placeholder-cover,
.placeholder-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(200,30,30,.22), rgba(255,255,255,.03));
  color: #fecaca;
  font-weight: 800;
  letter-spacing: .03em;
}

.placeholder-cover.small {
  min-height: 92px;
  border-radius: 16px;
  font-size: 14px;
}

.timeline-item-media {
  padding: 0;
  overflow: hidden;
}

.timeline-item-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
  align-items: center;
}

.timeline-thumb {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  min-height: 92px;
}

.timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.component-card {
  text-align: center;
}

.component-card-inline {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  align-items: center;
  text-align: left;
}

.component-logo-wrap {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.component-logo-wrap.small {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 18px;
}

.component-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 10px;
}

.placeholder-logo {
  width: 100%;
  height: 100%;
  font-size: 32px;
}

.article-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 20px;
}

.article-text {
  font-size: 17px;
  line-height: 1.9;
}

.thumb-xs {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.logo-thumb {
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

.image-preview-admin {
  display: grid;
  gap: 10px;
}

.image-preview-admin img {
  max-width: 220px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.brand-logo {
  display: block;
  max-width: 180px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.admin-site-logo-preview {
  max-width: 260px !important;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.admin-empty-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.02);
}

.settings-inline-check {
  display: flex;
  align-items: center;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkline input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.board-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.board-card {
  overflow: hidden;
  padding: 0;
}

.board-photo {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
}

.board-body {
  padding: 18px;
}

.board-body h3 {
  margin: 0 0 10px;
}

.header .container {
  width: min(1320px, calc(100% - 32px));
}

/* ===== GALERİ FIX ===== */
.gallery-item video,
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

@media (max-width: 1280px) {
  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 12px;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 13px;
  }

  .site-logo {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 1100px) {
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .footer-grid,
  .cards,
  .gallery-grid,
  .stats,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .brand strong,
  .brand small {
    white-space: normal;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    font-size: 13px;
  }

  .site-logo {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 768px) {
  .gallery-item video,
  .gallery-item img {
    height: 220px;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .topbar-inner,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav-wrap {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    padding: 16px;
    background: #0b1220;
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .hero-grid,
  .grid-2,
  .cards,
  .gallery-grid,
  .stats,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 90px 0 60px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-card {
    padding: 26px;
  }

  .timeline-item-inner,
  .component-card-inline {
    grid-template-columns: 1fr;
  }

  .component-logo-wrap.small {
    margin: 0 auto;
  }

  .brand-logo {
    max-width: 130px;
    max-height: 48px;
  }

  .gallery-item {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .board-grid {
    grid-template-columns: 1fr;
  }
}