/* ============================================
   PERDANA MENTRI — Design System
   Portal Berita Terkini & Terpercaya
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Colors — Light Mode */
  --color-primary: #0A1628;
  --color-primary-light: #1E293B;
  --color-accent: #DC2626;
  --color-accent-hover: #B91C1C;
  --color-accent-light: rgba(220, 38, 38, 0.1);
  --color-secondary: #F59E0B;
  --color-secondary-hover: #D97706;
  --color-success: #10B981;
  --color-info: #3B82F6;
  
  /* Surfaces */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F1F5F9;
  --bg-tertiary: #E2E8F0;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-overlay: rgba(10, 22, 40, 0.6);
  
  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --text-inverse: #FFFFFF;
  --text-accent: #DC2626;
  --text-link: #2563EB;
  
  /* Borders */
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(220, 38, 38, 0.15);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout */
  --max-width: 1400px;
  --nav-height: 64px;
  --ticker-height: 40px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Dark Mode
   ============================================ */
[data-theme="dark"] {
  --bg-primary: #0B1120;
  --bg-secondary: #111827;
  --bg-tertiary: #1E293B;
  --bg-card: #151F32;
  --bg-glass: rgba(15, 23, 42, 0.8);
  --bg-overlay: rgba(0, 0, 0, 0.7);
  
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;
  --text-link: #60A5FA;
  
  --border-color: #1E293B;
  --border-light: #1E293B;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(220, 38, 38, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  min-height: 100vh;
}

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

a:hover {
  color: var(--color-accent);
}

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

ul, ol {
  list-style: none;
}

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

input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

::selection {
  background: var(--color-accent);
  color: white;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.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;
}

/* ============================================
   Breaking News Ticker
   ============================================ */
.ticker {
  background: linear-gradient(135deg, var(--color-accent) 0%, #991B1B 100%);
  height: var(--ticker-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.ticker__label {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.ticker__label::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
  z-index: 1;
}

.ticker__dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.ticker__track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker__content {
  display: flex;
  gap: var(--space-3xl);
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  padding-left: var(--space-xl);
}

.ticker__item {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.ticker__item::before {
  content: '•';
  color: var(--color-secondary);
  font-size: 1.2rem;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .nav {
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  height: var(--nav-height);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-accent), #991B1B);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-text .name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__logo-text .tagline {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: 1.2rem;
  position: relative;
}

.nav__btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.nav__btn--accent {
  background: var(--color-accent);
  color: white;
}

.nav__btn--accent:hover {
  background: var(--color-accent-hover);
  color: white;
}

.nav__datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  margin-right: var(--space-md);
}

.nav__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav__time {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* Search Bar */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-box {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  width: min(600px, 90vw);
  box-shadow: var(--shadow-xl);
  transform: translateY(-20px);
  transition: transform var(--transition-base);
}

.search-overlay.active .search-box {
  transform: translateY(0);
}

.search-box__input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-size: 1.1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.search-box__input:focus {
  border-color: var(--color-accent);
}

.search-box__input::placeholder {
  color: var(--text-tertiary);
}

/* Category Nav */
.nav__categories {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav__categories::-webkit-scrollbar {
  display: none;
}

.nav__cat-list {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}

.nav__cat-item {
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
  cursor: pointer;
}

.nav__cat-item:hover,
.nav__cat-item.active {
  color: var(--color-accent);
}

.nav__cat-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-lg);
  right: var(--space-lg);
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px 3px 0 0;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-primary);
  z-index: 3000;
  padding: var(--space-2xl) var(--space-xl);
  transition: right var(--transition-slow);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu__overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.mobile-menu__list {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-menu__item {
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu__item:hover {
  background: var(--bg-secondary);
  color: var(--color-accent);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: var(--space-xl) 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-lg);
  min-height: 500px;
}

.hero__main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  min-height: 500px;
}

.hero__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform var(--transition-slow);
}

.hero__main:hover .hero__main-img {
  transform: scale(1.03);
}

.hero__main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.1) 100%);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.hero__main-content {
  max-width: 600px;
}

.hero__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-lg);
}

.hero__side-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.hero__side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform var(--transition-slow);
}

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

.hero__side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

/* ============================================
   Badge / Category Label
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: var(--space-sm);
}

.badge--accent {
  background: var(--color-accent);
  color: white;
}

.badge--secondary {
  background: var(--color-secondary);
  color: #1a1a1a;
}

.badge--info {
  background: var(--color-info);
  color: white;
}

.badge--success {
  background: var(--color-success);
  color: white;
}

.badge--outline {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}

.badge--glass {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================
   Headline Typography
   ============================================ */
.headline {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.headline--hero {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: white;
  margin-bottom: var(--space-sm);
}

.headline--side {
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  color: white;
}

.headline--section {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.headline--section::before {
  content: '';
  width: 4px;
  height: 1.3em;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.headline--card {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

.meta--light {
  color: rgba(255, 255, 255, 0.7);
}

.meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.hero__excerpt {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Main Content Layout
   ============================================ */
.content {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.content__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
}

/* ============================================
   News Cards
   ============================================ */
.news-section {
  margin-bottom: var(--space-2xl);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.news-card:hover .headline--card {
  color: var(--color-accent);
}

.news-card__img-wrapper {
  position: relative;
  padding-top: 58%;
  overflow: hidden;
}

.news-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card__img {
  transform: scale(1.06);
}

.news-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
}

.news-card__body {
  padding: var(--space-lg);
}

.news-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Horizontal Card */
.news-card--horizontal {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.news-card--horizontal .news-card__img-wrapper {
  padding-top: 0;
  height: 100%;
  min-height: 140px;
}

/* Mini Card */
.news-card--mini {
  display: flex;
  gap: var(--space-md);
  background: transparent;
  border: none;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
}

.news-card--mini:hover {
  transform: none;
  box-shadow: none;
}

.news-card--mini .news-card__thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.news-card--mini .news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card--mini .headline--card {
  font-size: 0.88rem;
}

/* Numbered List Card */
.news-list-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item:hover .headline--card {
  color: var(--color-accent);
}

.news-list-item__number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}

.news-list-item:hover .news-list-item__number {
  opacity: 1;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.sidebar__widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
}

.sidebar__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar__title .icon {
  font-size: 1.1rem;
}

/* Trending Widget */
.trending-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.trending-item:first-child {
  padding-top: 0;
}

.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-item:hover .trending-item__title {
  color: var(--color-accent);
}

.trending-item__rank {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}

.trending-item__content {
  flex: 1;
}

.trending-item__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.trending-item__meta {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Weather Widget */
.weather {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.weather__icon {
  font-size: 2.8rem;
}

.weather__info {
  flex: 1;
}

.weather__temp {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-primary);
}

.weather__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.weather__location {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Newsletter Widget */
.newsletter {
  background: linear-gradient(135deg, var(--color-primary), #1E3A5F) !important;
  color: white !important;
  border: none !important;
}

.newsletter .sidebar__title {
  color: white;
}

.newsletter__text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter__input {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.newsletter__input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter__input:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.newsletter__btn {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  text-align: center;
}

.newsletter__btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  color: white;
}

/* ============================================
   Video Section
   ============================================ */
.video-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-primary);
  margin-top: var(--space-xl);
}

.video-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
}

.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.video-card__img-wrapper {
  position: relative;
  padding-top: 56.25%;
}

.video-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background var(--transition-fast);
  z-index: 2;
}

.video-card:hover .video-card__play {
  background: rgba(0,0,0,0.5);
}

.video-card__play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: all var(--transition-spring);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.video-card:hover .video-card__play-btn {
  transform: scale(1.1);
}

.video-card__info {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.video-card__duration {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  z-index: 3;
  font-family: var(--font-mono);
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.video-list-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-md);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.video-list-item:hover {
  background: var(--bg-secondary);
}

.video-list-item__thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

.video-list-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

.video-list-item__play-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.video-list-item__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.video-list-item:hover .video-list-item__title {
  color: var(--color-accent);
}

/* ============================================
   Category Tabs
   ============================================ */
.category-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--space-sm);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.category-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.category-tab.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-3xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-accent), #991B1B);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
}

.footer__logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
}

.footer__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 320px;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.footer__social-link:hover {
  background: var(--color-accent);
  color: white;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}

.footer__link:hover {
  color: white;
  padding-left: 4px;
}

.footer__bottom {
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__bottom-links a {
  color: rgba(255,255,255,0.4);
}

.footer__bottom-links a:hover {
  color: white;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 900;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
  color: white;
}

/* ============================================
   Loading Skeleton
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Stagger animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
  .content__grid {
    grid-template-columns: 1fr 340px;
  }
  
  .footer__grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .hero__main {
    min-height: 400px;
  }
  
  .hero__side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  
  .hero__side-card {
    min-height: 220px;
  }
  
  .content__grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }
  
  .nav__datetime {
    display: none;
  }
  
  .nav__categories {
    display: none;
  }
  
  .hero__grid {
    gap: var(--space-md);
  }
  
  .hero__main {
    min-height: 300px;
  }
  
  .hero__side {
    grid-template-columns: 1fr;
  }
  
  .hero__side-card {
    min-height: 180px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-card--horizontal {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    grid-template-columns: 1fr;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .headline--hero {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero__main {
    min-height: 260px;
    border-radius: var(--radius-md);
  }
  
  .hero__side-card {
    border-radius: var(--radius-md);
  }
  
  .hero__main-overlay {
    padding: var(--space-lg);
  }
  
  .ticker__label {
    padding: 0 var(--space-md);
    font-size: 0.6rem;
  }
  
  .video-list-item {
    grid-template-columns: 120px 1fr;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .ticker,
  .nav,
  .back-to-top,
  .search-overlay,
  .mobile-menu,
  .mobile-menu__overlay {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}
