:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --card: #ffffff;
  --text: #12151d;
  --text-dim: #626b7a;
  --accent: #6c4cff;
  --accent-2: #ff5b7a;
  --border: #e8eaf1;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(20, 24, 40, 0.07);
  --shadow-hover: 0 14px 32px rgba(20, 24, 40, 0.14);
}

* { box-sizing: border-box; }

html { width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Segoe UI", Roboto, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 56px);
}

/* Full-bleed helper: breaks an element out of its parent to span the full viewport width */
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Header */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  flex-wrap: wrap;
  gap: 6px 0;
}
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.main-nav a {
  margin-left: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .15s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .header-inner { height: auto; padding: 12px 0; }
  .logo { font-size: 1.3rem; }
  .main-nav a { margin: 0 0 0 14px; font-size: 0.82rem; }
}

/* Ad slots */
.ad-slot {
  margin: 20px auto;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px dashed #c7cce0;
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.8rem;
}
.ad-slot::before {
  content: "REKLAM ALANI";
}
.ad-slot ins { width: 100%; }

/* Layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(20px, 2.5vw, 40px);
  align-items: start;
  padding-top: 28px;
  padding-bottom: 40px;
  width: 100%;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--accent-2)) 1;
  padding-bottom: 10px;
}
.section-title h1 { font-size: 1.6rem; margin: 0; }
.last-update { font-size: 0.8rem; color: var(--text-dim); }

/* Category pill helper (colors set inline via JS) */
.category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Hero slider - full-bleed, wide/horizontal banner that scales with viewport size */
.hero-slider {
  position: relative;
  background: var(--card);
  overflow: hidden;
  height: clamp(240px, 34vw, 560px);
  box-shadow: var(--shadow-hover);
}
.hero-slider-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 0;
  border-radius: 0;
}
.slides { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,20,0.90) 0%, rgba(10,10,20,0.45) 50%, rgba(10,10,20,0.05) 100%);
}
.slide-content {
  position: absolute;
  left: 0;
  right: 90px;
  bottom: 0;
  padding: 28px 34px;
  display: block;
}
.slide-content .category-tag { background: var(--accent); color: #fff; }
.slide-content h2 { font-size: 1.7rem; margin: 10px 0; color: #fff; max-width: 680px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.slide-content p {
  color: rgba(255,255,255,0.88);
  margin: 0 0 10px;
  max-width: 620px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-content .meta { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.slide-video-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: rgba(255,255,255,0.92);
  color: var(--accent-2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.85);
  border: none;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-arrow:hover { background: var(--accent); color: #fff; }
.slider-dots { position: absolute; right: 22px; bottom: 20px; display: flex; gap: 8px; z-index: 3; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width .2s, background .2s;
}
.dot.active { background: var(--accent-2); width: 24px; border-radius: 5px; }
@media (max-width: 700px) {
  .slide-content { right: 20px; padding: 16px 16px; }
  .slide-content h2 { font-size: 1.1rem; margin: 6px 0; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-content p { display: none; }
  .slider-arrow { width: 32px; height: 32px; font-size: 1.1rem; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .slider-dots { right: 14px; bottom: 12px; }
  .slide-video-badge { top: 12px; right: 12px; width: 36px; height: 36px; }
}

/* News grid - fluid: number of columns adapts automatically to available width */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  margin-bottom: 10px;
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
}
.news-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-card img { width: 100%; height: 170px; object-fit: cover; }
.news-card .card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 { font-size: 1.05rem; margin: 0; color: var(--text); }
.news-card p { color: var(--text-dim); font-size: 0.88rem; margin: 0; flex: 1; }
.news-card .meta { font-size: 0.75rem; color: var(--text-dim); display: flex; justify-content: space-between; }
.card-video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(20,20,30,0.65);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Sidebar */
.sidebar .widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}
.sidebar .widget h3 { margin: 0 0 12px; font-size: 1rem; }
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li {
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.category-list li:last-child { border-bottom: none; }
.category-list button {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 2px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.category-list button:hover { background: var(--bg-alt); color: var(--text); }
.category-list button.active { color: #fff; font-weight: 700; padding-left: 10px; }
.category-list .count {
  background: var(--bg-alt);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.category-list button.active .count { background: rgba(255,255,255,0.3); color: #fff; }
.sticky { position: sticky; top: 88px; }

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 26px 0;
  margin-top: 20px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-inner nav a { margin-left: 16px; font-weight: 600; }
.footer-inner nav a:hover { color: var(--accent); }

/* Static pages */
.static-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.static-page h1 {
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--accent-2)) 1;
  padding-bottom: 10px;
}
.static-page p { color: var(--text-dim); }

/* Article page - cap reading width for legibility even though the site layout is fluid/wide */
.content:has(.article-page) {
  max-width: 820px;
}
.article-page { padding-top: 8px; }
.article-page h1 { font-size: 1.95rem; line-height: 1.28; margin: 12px 0 10px; color: var(--text); }
.article-page .meta { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 18px; }
.article-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.article-text p { color: var(--text); font-size: 1.04rem; line-height: 1.8; margin: 0 0 18px; }
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 22px 0;
  box-shadow: var(--shadow-hover);
  background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 26px 0 10px;
}
.source-note {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.source-note a { color: var(--accent); font-weight: 700; }
.related-title { font-size: 1.2rem; margin: 30px 0 16px; border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--accent), var(--accent-2)) 1; padding-bottom: 8px; }
