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

:root {
  --navy: #1e293b; /* Dark Navy for text/footer */
  --navy-light: #334155;
  --red: #e11d48; /* Turkish Flag Red */
  --red-hover: #be123c;
  --bg-light: #f8fafc;
  --border: #e2e8f0;

  font-size: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--navy);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Merriweather", serif;
  color: var(--navy);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
a:hover {
  color: var(--red);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.top-bar {
  background: var(--navy);
  color: white;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header {
  background: white;
  border-bottom: 2px solid var(--red);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 2rem;
  font-family: "Merriweather", serif;
  font-weight: 900;
  color: var(--navy);
}
.logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a.active {
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}
.dropdown:hover .dropdown-content {
  display: block !important;
}
.dropdown-content a:hover {
  background-color: #f8fafc;
  color: var(--red) !important;
}
.dropdown-content a.active {
  background-color: #f1f5f9;
  color: var(--red) !important;
  font-weight: bold;
}
.mobile-only {
  display: none !important;
}

/* Breaking News (Sürmanşet) */
.breaking-news {
  background: var(--red);
  color: white;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}
.breaking-label {
  background: white;
  color: var(--red);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 15px;
}
.breaking-marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

/* Home Grid Structure */
.home-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

/* Pagination Anchor Offset */
#haber-listesi {
  scroll-margin-top: 100px;
}

/* Slider (Ana Manşet) */
.main-slider {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  height: 100%;
}
.main-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 30px 20px 20px;
  color: white;
}
.slider-caption h2 {
  color: white;
  margin-bottom: 5px;
  font-size: 1.8rem;
}
.slider-category {
  background: var(--red);
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: bold;
}

/* Side Articles (Yan Manşetler) */
.side-articles {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}
.side-article-card {
  display: flex;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex: 1;
}
.side-article-card img {
  width: 120px;
  height: 100%;
  object-fit: cover;
}
.side-article-content {
  padding: 10px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.side-article-content h3 {
  font-size: 1.05rem;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.footer {
  background: var(--navy);
  color: white;
  padding: 40px 0 20px;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer h4 {
  color: white;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  padding-bottom: 5px;
}
.footer ul {
  list-style: none;
}
.footer ul li {
  margin-bottom: 8px;
}
.footer ul li a {
  color: #cbd5e1;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .main-header .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .logo {
    text-align: center;
    width: 100%;
  }
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar {
    height: 4px;
  }
  .nav-links::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
  }
  .nav-links::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 4px;
  }
  .slider-caption h2 {
    font-size: 1.3rem;
  }
  .article-title {
    font-size: 1.6rem !important; /* Mobile detail title size */
    line-height: 1.3;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-block !important;
  }
}
