:root {
  --red: #E30613;
  --red-dark: #b6050f;
  --ink: #111111;
  --muted: #5b5b5b;
  --line: #ececec;
  --bg: #ffffff;
  --soft: #f6f6f6;
  --shadow: 0 12px 40px rgba(17, 17, 17, 0.08);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header { background: #fff; }
.header-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-text { line-height: 1.05; }
.brand-name {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #111;
}
.brand-name em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: var(--red);
  margin-left: 4px;
}
.brand-tag {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: #444;
  font-weight: 500;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.menu a {
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  white-space: nowrap;
}
.menu a:hover { color: var(--red); }
.menu a.active {
  background: var(--red);
  color: #fff;
}
.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  min-width: 180px;
  max-width: 230px;
  flex: 0 1 230px;
}
.search-form input {
  border: 0;
  outline: 0;
  padding: 8px 14px;
  width: 100%;
  background: transparent;
  font-size: 13.5px;
}
.search-form button {
  width: 34px;
  height: 34px;
  margin: 3px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.search-form button:hover { background: var(--red-dark); }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #eee;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
  margin: 4px auto;
  border-radius: 2px;
}
.header-rule {
  height: 3px;
  background: var(--red);
  width: 100%;
}

/* Ads */
.ad-slot {
  border: 1px dashed #f0b6ba;
  background: #fff7f7;
  color: var(--red);
  border-radius: 14px;
  text-align: center;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 14px;
  margin: 16px 0;
}
.ad-slot span { display: block; font-weight: 500; color: #8a4a4e; font-size: 12px; margin-top: 2px; }

/* Slider */
.son-wrap { padding: 18px 0 8px; position: relative; }
.son-label {
  position: absolute;
  top: 18px;
  left: 0;
  z-index: 3;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 9px 22px 9px 16px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.son-label svg { width: 18px; height: 18px; fill: currentColor; }

.slider-card {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px 18px 18px;
  position: relative;
}
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 340px;
}
.slide {
  display: none;
  grid-template-columns: 18px 1.15fr 0.95fr 18px;
  align-items: stretch;
  gap: 0;
  min-height: 360px;
  animation: fade .45s ease;
}
.slide.active { display: grid; }
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }

.peek {
  border-radius: 14px;
  overflow: hidden;
  opacity: .55;
  align-self: stretch;
  background: #ddd;
}
.peek img, .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo {
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  min-height: 340px;
  background: #ccc;
}
.panel {
  background: var(--red);
  color: #fff;
  padding: 36px 40px 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -42px;
  border-radius: 0 16px 16px 0;
  position: relative;
  z-index: 1;
}
.panel-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 12px;
  opacity: .95;
}
.panel h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.panel p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  max-width: 36ch;
  color: rgba(255,255,255,.92);
}
.btn-oku {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--red);
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
  width: max-content;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.btn-oku:hover { background: #fff5f5; }

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  cursor: pointer;
  z-index: 4;
  color: #222;
  font-size: 22px;
  display: grid;
  place-items: center;
}
.arrow.prev { left: 26px; }
.arrow.next { right: 26px; }
.arrow:hover { color: var(--red); }

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
}
.dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #d9d9d9;
  cursor: pointer;
  padding: 0;
}
.dots button.active { background: var(--red); }

.empty-hero {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #555;
  padding: 40px 20px;
}
.empty-hero h2 { margin: 0 0 8px; font-size: 26px; }
.empty-hero p { margin: 0; color: var(--muted); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px 0 36px;
}
.card {
  border: 1px solid #efefef;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img {
  height: 128px;
  background: #eee;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 16px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.badge.gundem { background: #fde8ea; color: var(--red); }
.badge.belediye { background: #e7f3ff; color: #1c6fbf; }
.badge.kesintiler { background: #fff1d6; color: #b25b00; }
.badge.asayis { background: #ececec; color: #333; }
.badge.spor { background: #e8f6ee; color: #1f7a46; }
.badge.ekonomi-ve-tarim { background: #eef6e4; color: #4a7c12; }
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.card time, .meta-time { color: var(--muted); font-size: 12.5px; }

.empty-cards {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px;
  color: var(--muted);
  border: 1px dashed #e5e5e5;
  border-radius: 16px;
}

/* Article / pages */
.page { padding: 28px 0 60px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumb a:hover { color: var(--red); }
.article-head h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.article-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  margin: 8px 0 22px;
}
.article-body { font-size: 18px; line-height: 1.75; max-width: 72ch; }
.article-body p { margin: 0 0 16px; }
.source {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.source a { color: var(--red); font-weight: 600; }

.list { display: grid; gap: 14px; }
.list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  border: 1px solid #efefef;
  border-radius: 16px;
  overflow: hidden;
}
.list-item img { width: 100%; height: 130px; object-fit: cover; }
.list-item div { padding: 14px 16px 16px; }
.list-item h2 { margin: 6px 0 8px; font-size: 20px; }

/* Footer / contact */
.site-footer {
  background: #111;
  color: #eee;
  padding: 36px 0 22px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}
.site-footer a:hover { color: #fff; }
.site-footer h3 { margin: 0 0 10px; font-size: 15px; color: #fff; }
.site-footer p, .site-footer li { margin: 0 0 6px; color: #cfcfcf; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
  font-size: 13px;
  color: #999;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ig { color: #fff !important; font-weight: 700; }

/* Admin */
.admin { max-width: 860px; margin: 0 auto; padding: 28px 0 60px; }
.admin h1 { margin: 0 0 18px; }
.login-box, .admin-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
label { display: block; font-weight: 700; font-size: 13px; margin: 12px 0 6px; }
input[type=text], input[type=password], input[type=url], textarea, select {
  width: 100%;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
textarea { min-height: 160px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #ddd; }
.admin-msg { margin: 10px 0; font-weight: 600; }
.admin-list { margin-top: 28px; }
.admin-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slide { grid-template-columns: 1fr; min-height: auto; }
  .peek { display: none; }
  .photo { border-radius: 16px 16px 0 0; min-height: 220px; height: 240px; }
  .panel {
    margin-left: 0;
    clip-path: none;
    border-radius: 0 0 16px 16px;
    padding: 22px 22px 24px;
  }
  .arrow.prev { left: 10px; }
  .arrow.next { right: 10px; }
}
@media (max-width: 820px) {
  .burger { display: inline-block; }
  .menu {
    display: none;
    position: absolute;
    top: 92px;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    z-index: 20;
  }
  .menu.open { display: flex; }
  .menu a { padding: 10px 12px; }
  .header-row { position: relative; }
  .brand img { width: 58px; height: 58px; }
  .brand-name { font-size: 22px; }
  .list-item { grid-template-columns: 1fr; }
  .list-item img { height: 180px; }
  .row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .cards { grid-template-columns: 1fr; }
  .search-form { display: none; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; display: grid; }
  .panel h2 { font-size: 24px; }
}
