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

:root {
  /* KRGL Studio Official Dark Theme Palette (from KRGL_Studio_Dark_Theme.svg) */
  --bg-primary: #0b111e;
  --bg-secondary: #121c2d;
  --bg-elevated: #172235;
  --bg-hover: rgba(51, 92, 222, 0.16);
  --bg-glass: rgba(18, 28, 45, 0.88);
  --text-primary: #f4f7fb;
  --text-secondary: #c8d4e3;
  --text-muted: #a9b5c4;
  --border-color: rgba(138, 180, 255, 0.12);
  --border-strong: rgba(138, 180, 255, 0.24);
  --brand-red: #335cde;
  --brand-red-hover: #4b73ec;
  --brand-red-soft: rgba(138, 180, 255, 0.14);
  --brand-ice: #8ab4ff;
  --brand-accent-text: #8ab4ff;
  --accent-blue: #335cde;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #6366f1;
  --shadow-sm: 0 2px 10px rgba(5, 10, 20, 0.32);
  --shadow-md: 0 12px 32px -6px rgba(5, 10, 20, 0.55);
  --shadow-lg: 0 22px 48px -12px rgba(5, 10, 20, 0.7);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container-width: 1420px;
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  /* KRGL Studio Official Light Theme Palette (from KRGL_Studio_Light_Theme.svg) */
  --bg-primary: #f4f7fb;
  --bg-secondary: #ffffff;
  --bg-elevated: #eaf0f8;
  --bg-hover: rgba(51, 92, 222, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.92);
  --text-primary: #172235;
  --text-secondary: #34435a;
  --text-muted: #667085;
  --border-color: #dce4f0;
  --border-strong: #c4d1e5;
  --brand-red: #335cde;
  --brand-red-hover: #2548b8;
  --brand-red-soft: rgba(51, 92, 222, 0.1);
  --brand-ice: #335cde;
  --brand-accent-text: #335cde;
  --shadow-sm: 0 2px 8px rgba(23, 34, 53, 0.05);
  --shadow-md: 0 10px 26px -5px rgba(23, 34, 53, 0.09);
  --shadow-lg: 0 20px 42px -10px rgba(23, 34, 53, 0.14);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #335cde, #8ab4ff);
  width: 0%;
  z-index: 2000;
  transition: width 0.1s linear;
}

/* Top Breaking Ticker Bar */
.topbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  height: 42px;
  display: flex;
  align-items: center;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.breaking-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #335cde, #4f77f3);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.ticker-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition);
}

.ticker-text:hover {
  color: var(--brand-accent-text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.topbar-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.topbar-btn.admin-link {
  background: var(--brand-red-soft);
  color: var(--brand-accent-text);
  border-color: rgba(138, 180, 255, 0.28);
}

.topbar-btn.admin-link:hover {
  background: var(--brand-red);
  color: #fff;
}

/* Main Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-light {
  display: none;
}

[data-theme="light"] .logo-dark {
  display: none;
}

[data-theme="light"] .logo-light {
  display: block;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #335cde, #77a5f5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(51, 92, 222, 0.4);
}

.brand-accent {
  color: var(--brand-accent-text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  transition: all var(--transition);
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  border-color: var(--border-color);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(51, 92, 222, 0.24) 0%, rgba(138, 180, 255, 0.14) 100%);
  color: #f4f7fb;
  border-color: rgba(138, 180, 255, 0.55);
  box-shadow: 0 4px 16px -4px rgba(51, 92, 222, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

[data-theme="light"] .nav-item.active {
  background: linear-gradient(135deg, #335cde 0%, #4b73ec 100%);
  color: #ffffff;
  border-color: #335cde;
  box-shadow: 0 6px 16px -4px rgba(51, 92, 222, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-item.active svg {
  color: var(--brand-ice);
}

[data-theme="light"] .nav-item.active svg {
  color: #ffffff;
}

.header-search {
  position: relative;
  width: 250px;
  flex-shrink: 0;
}

.header-search input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 9px 14px 9px 38px;
  border-radius: 999px;
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition);
}

.header-search input:focus {
  border-color: var(--brand-ice);
  box-shadow: 0 0 0 3px var(--brand-red-soft);
}

.header-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Stories Bar (Webtekno Hikayeler) */
.stories-section {
  padding: 20px 0 8px;
}

.stories-track {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  scrollbar-width: none;
}

.stories-track::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  width: 92px;
  group: true;
}

.story-ring {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #335cde, #77a5f5, #9bbeff);
  transition: transform var(--transition);
}

.story-item:hover .story-ring {
  transform: translateY(-3px) scale(1.04);
}

.story-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
}

.story-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  border: 2px solid var(--bg-primary);
}

.story-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Bento Hero Grid (Webtekno Manşet) */
.hero-section {
  padding: 12px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 20px;
  min-height: 470px;
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 470px;
  cursor: pointer;
}

.hero-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main:hover .hero-main-img {
  transform: scale(1.04);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 22, 0.96) 0%, rgba(8, 12, 22, 0.65) 48%, rgba(8, 12, 22, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: #fff;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--brand-red);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-summary {
  color: #e2e8f0;
  font-size: 0.96rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 90%;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 500;
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.slider-num-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-num-btn:hover,
.slider-num-btn.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-2px);
}

/* Sub Hero Stack (Right Column) */
.hero-sub-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
}

.sub-hero-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  cursor: pointer;
  min-height: 146px;
  box-shadow: var(--shadow-sm);
}

.sub-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.sub-hero-card:hover img {
  transform: scale(1.06);
}

.sub-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 22, 0.95) 0%, rgba(8, 12, 22, 0.45) 65%, rgba(8, 12, 22, 0.15) 100%);
}

.sub-hero-info {
  position: relative;
  z-index: 2;
  color: #fff;
}

.sub-hero-info .cat-pill {
  padding: 3px 8px;
  font-size: 0.66rem;
  margin-bottom: 6px;
}

.sub-hero-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Main Content + Sidebar Grid */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding-bottom: 64px;
}

/* Feed Toolbar */
.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
}

.section-heading::before {
  content: '';
  width: 6px;
  height: 24px;
  background: var(--brand-red);
  border-radius: 4px;
  display: inline-block;
}

.feed-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(51, 92, 222, 0.24) 0%, rgba(138, 180, 255, 0.14) 100%);
  border-color: rgba(138, 180, 255, 0.55);
  color: #f4f7fb;
  box-shadow: 0 4px 14px -4px rgba(51, 92, 222, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

[data-theme="light"] .filter-chip.active {
  background: linear-gradient(135deg, #335cde, #4b73ec);
  border-color: #335cde;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(51, 92, 222, 0.35);
}

/* News Grid Cards (UI/UX Pro Max Editorial Cards) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(138, 180, 255, 0.42);
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: pointer;
}

.card-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 30, 0.68) 0%, transparent 48%);
  pointer-events: none;
  z-index: 1;
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .card-thumb-wrap img {
  transform: scale(1.06);
}

.card-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-badge-top .cat-pill {
  margin-bottom: 0;
  padding: 5px 10px;
  font-size: 0.68rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.review-score-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bookmark-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all var(--transition);
}

.bookmark-btn:hover,
.bookmark-btn.saved {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.card-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 600;
}

.card-author-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-ice);
  display: inline-block;
}

.card-title {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover .card-title,
.card-title:hover {
  color: var(--brand-accent-text);
}

.card-excerpt {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.76rem;
  color: var(--text-muted);
  gap: 8px;
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.card-read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--brand-accent-text);
  transition: transform var(--transition);
}

.article-card:hover .card-read-link {
  transform: translateX(2px);
}

/* Sticky Right Sidebar (UI/UX Pro Max Editorial Widgets) */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.sidebar-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #335cde, #8ab4ff);
  opacity: 0.9;
}

.widget-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.widget-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-red-soft);
  color: var(--brand-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.trending-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  box-shadow: 0 6px 18px -6px rgba(5, 10, 22, 0.42), inset 3px 0 0 var(--brand-ice);
}

.trend-thumb {
  position: relative;
  width: 68px;
  height: 54px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-primary);
}

.trend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.trending-item:hover .trend-thumb img {
  transform: scale(1.06);
}

.trend-rank-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(11, 17, 30, 0.88);
  backdrop-filter: blur(4px);
  color: #f4f7fb;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.trending-item:nth-child(1) .trend-rank-badge,
.trending-item:nth-child(2) .trend-rank-badge,
.trending-item:nth-child(3) .trend-rank-badge,
.trending-item:hover .trend-rank-badge {
  background: linear-gradient(135deg, #335cde, #608dff);
}

.trend-info {
  flex: 1;
  min-width: 0;
}

.trend-cat-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-accent-text);
  margin-bottom: 2px;
}

.trend-info h4 {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.34;
  margin-bottom: 5px;
  color: var(--text-primary);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-item:hover .trend-info h4 {
  color: var(--brand-accent-text);
}

.trend-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.71rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sidebar Review Cards */
.sidebar-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-review-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-review-card h4 {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.sidebar-review-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  box-shadow: 0 6px 18px -6px rgba(5, 10, 22, 0.42), inset 3px 0 0 var(--brand-ice);
}

.sidebar-review-card:hover h4 {
  color: var(--brand-accent-text);
}

.sidebar-review-thumb {
  width: 64px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.sidebar-review-card:hover .sidebar-review-thumb {
  transform: scale(1.05);
}

.sidebar-review-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(138, 180, 255, 0.14);
  color: var(--brand-accent-text);
  border: 1px solid rgba(138, 180, 255, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Poll Widget */
.poll-question {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--brand-ice);
  color: var(--text-primary);
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.poll-opt-btn {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.83rem;
  font-weight: 600;
}

.poll-opt-btn:hover {
  border-color: var(--brand-ice);
  background: var(--bg-hover);
  box-shadow: 0 4px 14px -4px rgba(51, 92, 222, 0.28);
}

.poll-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(51, 92, 222, 0.28), rgba(138, 180, 255, 0.12));
  width: 0%;
  transition: width 0.5s ease;
  z-index: 1;
}

.poll-opt-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.poll-pct-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--brand-accent-text);
}

/* Newsletter Input With Icon */
.newsletter-input-wrap {
  position: relative;
}

.newsletter-input-wrap .input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: inline-flex;
  pointer-events: none;
}

.newsletter-input-wrap input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.86rem;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-input-wrap input:focus {
  border-color: var(--brand-red);
}

/* Article Detail Reader View */
.article-detail-view {
  display: none;
  padding: 24px 0 72px;
}

.article-detail-view.active {
  display: block;
}

.article-detail-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 42px;
  box-shadow: var(--shadow-md);
}

.detail-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
}

.back-btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.detail-title {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.detail-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 22px;
  line-height: 1.65;
}

.detail-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), #7c3aed);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.detail-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.detail-body {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.detail-body p {
  margin-bottom: 20px;
}

.detail-body h2, .detail-body h3 {
  margin: 30px 0 14px;
  font-weight: 800;
}

.detail-body ul, .detail-body ol {
  margin: 0 0 22px 22px;
}

.detail-body li {
  margin-bottom: 10px;
}

.detail-body blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--brand-red);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Webtekno Emoji Reaction Bar */
.reactions-box {
  margin: 36px 0;
  padding: 26px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  text-align: center;
}

.reactions-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.reactions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.reaction-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.reaction-btn:hover,
.reaction-btn.voted {
  border-color: var(--brand-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.reaction-btn.voted {
  background: var(--brand-red-soft);
}

.reaction-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reaction-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.reaction-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Comments Section */
.comments-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--brand-red);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 10px;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--brand-red-hover);
  transform: translateY(-1px);
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-elevated);
  margin-bottom: 12px;
}

/* Story Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.story-modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 660px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
}

.story-modal-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-modal-body {
  position: relative;
  z-index: 2;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 65%, transparent 100%);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-left: 4px solid var(--brand-red);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-sub-stack {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 0;
  }
  .header-search {
    width: 100%;
    order: 3;
  }
  .hero-sub-stack {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .reactions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-detail-container {
    padding: 22px 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   WEBTEKNO PORTAL v3.5 — TIMELINE, 10-SLIDER & LUCIDE ICONS
   ========================================================= */
.wt-3col-layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr) 340px;
  gap: 24px;
  padding-bottom: 64px;
  align-items: start;
}

.wt-timeline-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.wt-timeline-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #335cde, #8ab4ff);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.wt-timeline-list {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wt-timeline-item {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wt-timeline-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  box-shadow: 0 6px 18px -6px rgba(5, 10, 22, 0.42), inset 2px 0 0 var(--brand-ice);
}

.wt-timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-ice);
  box-shadow: 0 0 0 3px var(--bg-secondary);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.wt-timeline-item:hover::before {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(51, 92, 222, 0.55);
}

.wt-timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.wt-timeline-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--brand-accent-text);
  background: var(--brand-red-soft);
  padding: 2px 7px;
  border-radius: 5px;
}

.wt-timeline-cat {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wt-timeline-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.wt-timeline-item:hover .wt-timeline-title {
  color: var(--brand-accent-text);
}

/* 4-Card Top Featured Strip (Günün Manşetleri) */
.wt-top-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.wt-strip-card {
  position: relative;
  height: 168px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wt-strip-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.wt-strip-card:hover img {
  transform: scale(1.06);
}

.wt-strip-card .sub-hero-title {
  font-size: 0.9rem;
  line-height: 1.32;
}

/* Pagination */
.wt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

/* Category Header Banner */
.cat-hero-banner {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Reaction Percentage Bar */
.react-pct-bar {
  width: 100%;
  height: 5px;
  background: var(--bg-elevated);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.react-pct-fill {
  height: 100%;
  background: var(--brand-red);
  border-radius: 99px;
}

@media (max-width: 1200px) {
  .wt-3col-layout {
    grid-template-columns: 1fr 330px;
  }
  .wt-timeline-box {
    display: none;
  }
  .wt-top-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .wt-3col-layout {
    grid-template-columns: 1fr;
  }
  .wt-top-strip {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   LUCIDE ICONS & UI/UX PRO MAX ACCESSIBILITY TOKENS
   ========================================================= */
svg.lucide,
i[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.icon-text-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.widget-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-red-soft);
  color: var(--brand-accent-text);
  font-weight: 700;
  transition: all var(--transition);
}

.widget-more-link:hover {
  background: var(--brand-red);
  color: #fff;
}

.search-icon-wrap {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.icon-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.icon-close-btn:hover {
  background: var(--brand-red);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Touch Target & Stable Interaction States (UI/UX Pro Max) */
.bookmark-btn {
  width: 38px;
  height: 38px;
}

.slider-num-btn {
  min-width: 36px;
  height: 36px;
}

.slider-num-btn:hover,
.slider-num-btn.active {
  transform: none;
}

.btn-primary:hover {
  transform: none;
}

.reaction-btn:hover,
.reaction-btn.voted {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
