@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand Colors - KRİTER RED & DEEP SLATE */
  --c-primary: #E11D48;      /* Kriter Red */
  --c-primary-soft: rgba(225, 29, 72, 0.1);
  --c-primary-dark: #BE123C;
  --c-dark: #0F172A;         /* Deep Slate */
  --c-slate: #1E293B;        /* Slate Dark */
  --c-text: #64748B;         /* Slate Light */
  --c-text-strong: #0F172A;
  --c-white: #FFFFFF;
  --c-bg: #F8FAFC;           /* Off White / Light Gray */
  --c-accent: #6366F1;       /* Indigo Accent */

  /* Global Settings */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 24px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 60px rgba(15, 23, 42, 0.12);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: var(--transition);
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation --- */
.topbar {
  background-color: var(--c-white);
  color: var(--c-dark);
  padding: 20px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
}

.topbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-dark);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span {
  background: var(--c-white);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.brand-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  color: var(--c-dark);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo::before {
  content: '';
  width: 12px;
  height: 32px;
  background: var(--c-primary);
  border-radius: 4px;
}

.brand-logo span {
  color: var(--c-primary);
  font-weight: 400;
  opacity: 0.8;
}

.topbar-badges {
  display: flex;
  gap: 12px;
}

@media (max-width: 1100px) {
  .topbar-badges {
    display: none;
  }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-badge {
  background: var(--c-bg);
  border: 1px solid rgba(15, 23, 42, 0.05);
  color: var(--c-text-strong);
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.topbar-badge:hover {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}

.live-dot {
  width: 10px;
  height: 10px;
  background-color: var(--c-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--c-primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Nav */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--c-dark);
    z-index: 1200;
    transition: var(--transition);
    padding-top: 80px;
    box-shadow: 20px 0 50px rgba(0,0,0,0.5);
  }

  .nav.active {
    left: 0;
  }

  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 0 24px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--c-white);
  }

  body.menu-open {
    overflow: hidden;
  }
}

.nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
}

.nav-link:hover {
  color: var(--c-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--c-primary);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Re-override nav for mobile after desktop styles */
@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--c-dark);
    z-index: 1200;
    padding-top: 80px;
    border-bottom: none;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
  }

  .nav.active {
    right: 0;
    left: auto;
  }

  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 0 24px;
    justify-content: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: flex-start;
  }

  .nav-link {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--c-white);
  }
}

/* --- Layouts --- */
.page {
  max-width: 1320px;
  margin: 48px auto;
  padding: 0 24px;
}

.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 850px) 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

/* Article page layout: center content, place sidebar below */
body[data-page="article"] .grid-main {
  max-width: 980px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

body[data-page="article"] .article-detail {
  max-width: 860px;
  margin: 0 auto;
}

body[data-page="article"] .right-column {
  width: 100%;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* --- Cards --- */
/* Card Systems */
.card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card--hero {
  border-radius: var(--radius-lg);
  position: relative;
}

.card--hero .card-img {
  aspect-ratio: 21 / 9;
}

@media (max-width: 768px) {
  .card--hero .card-img {
    aspect-ratio: 16 / 10;
  }
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-tag {
  background: var(--c-primary);
  color: var(--c-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
  max-width: 100%;
  line-height: 1.1;
  align-self: flex-start;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-dark-soft);
  line-height: 1.3;
  margin-bottom: 12px;
}

/* Hero Card */
.card--hero .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 48px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 40%, rgba(15, 23, 42, 0) 100%);
  color: white;
  z-index: 2;
}

.card--hero .card-title {
  font-size: 2.8rem;
  color: white;
  margin-bottom: 16px;
}

.card--hero .card-excerpt {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Grid-4 (Small news) */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .card-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

/* Breaking News Bar */
.breaking-news {
  background: var(--c-white);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.breaking-label {
  background: var(--c-primary);
  color: var(--c-dark);
  font-family: var(--font-display);
  font-weight: 900;
  padding: 12px 24px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: relative;
}

.breaking-content {
  flex-grow: 1;
  padding: 0 24px;
  height: 50px;
  position: relative;
  overflow: hidden;
}

.breaking-item {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-dark-soft);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  pointer-events: none;
}

.breaking-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.breaking-item:hover {
  color: var(--c-accent);
}

/* Main Layout (Hero + Sidebar) */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 850px) 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar-3 {
    flex-direction: column;
  }
}

.sidebar-3 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar */
.right-column .section-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--c-dark);
  border-left: 6px solid var(--c-primary);
  padding-left: 16px;
  margin-bottom: 32px;
}

.list-news {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.list-item {
  display: flex;
  gap: 16px;
  background: var(--c-white);
  padding: 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.list-thumb {
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

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

.list-meta-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--c-accent);
  text-transform: uppercase;
}

.list-meta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-dark-soft);
  line-height: 1.4;
}

/* Slider (V2) */
.slider {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.slider-main {
  height: 550px;
  position: relative;
  overflow: hidden;
}

.slider-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.95) 60%);
  padding: 60px;
  color: white;
  z-index: 10;
}

.slider-overlay h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.2;
}

.slider-overlay p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 800px;
}

.slider-pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 15;
}

.slider-dot {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--c-primary);
  width: 80px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 15;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: var(--c-primary);
  color: var(--c-dark);
}

.slider-arrow.left {
  left: 24px;
}

.slider-arrow.right {
  right: 24px;
}

/* Category Page Headers */
.category-header-section {
  padding: 64px 0;
  border-bottom: 2px solid var(--c-bg);
  margin-bottom: 48px;
}

.category-page-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--c-dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.category-page-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 6px;
  background: var(--c-primary);
  border-radius: 3px;
}

.category-page-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--c-text);
  font-weight: 500;
}

/* Article Detail */
.article-detail {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.article-header {
  margin-bottom: 48px;
}

.article-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--c-dark);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--c-text);
}

.cat-tag {
  background: var(--c-primary);
  color: var(--c-white);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.cat-tag:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.meta-dot {
  width: 4px;
  height: 4px;
  background: var(--c-text);
  border-radius: 50%;
  opacity: 0.3;
}

.article-image {
  margin: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.article-body {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: #334155;
  line-height: 1.9;
  padding: 48px 0;
}

.article-body p:first-of-type::first-letter {
  background: var(--c-primary);
  color: var(--c-dark);
  padding: 5px 10px;
  border-radius: 7px;
  font-family: var(--font-display);
}

/* Popüler (Most Searched) - KRİTER DESIGN */
.most-searched {
  background: var(--c-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--c-dark);
  margin-top: 64px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: var(--shadow-md);
}

.most-searched-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--c-bg);
  padding-bottom: 20px;
}

.most-searched-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.most-searched-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--c-primary);
  border-radius: 2px;
}

.most-tab {
  background: var(--c-bg);
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--c-text);
  cursor: pointer;
  transition: var(--transition);
}

.most-tab:hover {
  background: rgba(225, 29, 72, 0.1);
  color: var(--c-primary);
}

.most-tab.active {
  background: var(--c-primary);
  color: var(--c-white);
}

.most-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.most-item {
  border-bottom: 1px solid var(--c-bg);
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.most-item:hover {
  padding-left: 8px;
  color: var(--c-primary);
}

.most-item a {
  flex: 1;
}

.most-item::before {
  content: '→';
  color: var(--c-primary);
  font-weight: 800;
}

/* Footer */
.footer {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 80px 0 40px;
  border-top: 8px solid var(--c-primary);
  margin-top: 100px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 48px;
  display: block;
}

.footer-logo span {
  color: var(--c-primary);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 64px;
}

.footer-heading {
  color: var(--c-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--c-primary);
  padding-left: 8px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive Adjustments & Cleanup */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .slider-main {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .section-heading {
    margin-bottom: 24px;
  }
  
  .article-title {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 12px 0;
  }

  .brand-logo {
    font-size: 1.6rem;
  }

  .page {
    margin: 24px auto;
    padding: 0 16px;
  }

  .slider-main {
    height: 320px;
  }

  .slider-overlay {
    padding: 24px;
  }

  .slider-overlay h2 {
    font-size: 1.6rem;
  }
}

/* Breadcrumb */
.breadcrumb {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-bg);
  padding: 12px 0;
  font-size: 0.85rem;
}
.breadcrumb-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--c-text);
  font-family: var(--font-display);
  font-weight: 500;
}
.breadcrumb a {
  color: var(--c-primary);
  text-decoration: none;
  font-weight: 700;
}
.breadcrumb .sep {
  margin: 0 10px;
  opacity: 0.3;
}

@media (max-width: 768px) {
  body[data-page="article"] .article-detail {
    padding: 0 4px;
  }
}
