/* ═══════════════════════════════════════════════════════
   KANNADA NEWS WEBSITE — Mobile-First Newspaper Style
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Kannada:wght@300;400;500;600;700;800&family=Noto+Serif+Kannada:wght@400;600;700;900&display=swap');

/* ── CSS Variables (Light Mode) ── */
:root {
  --primary: #c40000;
  --primary-dark: #9b0000;
  --primary-light: #ff1a1a;
  --bg: #f4f4f4;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-footer: #1a1a2e;
  --bg-ticker: #c40000;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-inverse: #ffffff;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --shadow-card: 0 1px 6px rgba(0,0,0,0.06);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 4px;
  --font-body: 'Noto Sans Kannada', sans-serif;
  --font-heading: 'Noto Serif Kannada', serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --header-height: 60px;
  --bottom-nav-height: 60px;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --bg: #0d0d1a;
  --bg-card: #1a1a2e;
  --bg-header: #12121f;
  --text: #e8e8e8;
  --text-secondary: #b0b0b0;
  --text-muted: #777777;
  --border: #2a2a3e;
  --border-light: #1e1e30;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-card: 0 1px 6px rgba(0,0,0,0.2);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bottom-nav-height);
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

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

a:hover { color: var(--primary-dark); }

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

ul, ol { list-style: none; }

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

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 8px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════
   BREAKING NEWS TICKER
   ═══════════════════════════════════════════════════════ */
.ticker-wrap {
  background: var(--bg-ticker);
  color: var(--text-inverse);
  overflow: hidden;
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: #8b0000;
  padding: 0 14px;
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  letter-spacing: 0.5px;
  animation: tickerPulse 2s ease-in-out infinite;
}

@keyframes tickerPulse {
  0%, 100% { background: #8b0000; }
  50% { background: #a50000; }
}

.ticker-content {
  display: flex;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-content:hover { animation-play-state: paused; }

.ticker-item {
  padding: 0 40px;
  font-size: 0.85rem;
  font-weight: 500;
}

.ticker-item::before {
  content: '●';
  margin-right: 10px;
  color: rgba(255,255,255,0.6);
}

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

/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */
.site-header {
  background: var(--bg-header);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  min-height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-light);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
  color: var(--text);
}

.theme-toggle:hover {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* ── Navigation ── */
.main-nav {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.main-nav.active { max-height: 500px; }

@media (min-width: 768px) {
  .main-nav {
    max-height: none;
    border-top: none;
    overflow: visible;
  }
}

.nav-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

@media (min-width: 768px) {
  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    justify-content: center;
  }
}

.nav-list li a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--primary);
  background: rgba(196, 0, 0, 0.05);
  border-left-color: var(--primary);
}

@media (min-width: 768px) {
  .nav-list li a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  .nav-list li a:hover,
  .nav-list li a.active {
    border-bottom-color: var(--primary);
    background: transparent;
  }
}

/* ═══════════════════════════════════════════════════════
   AD PLACEHOLDERS
   ═══════════════════════════════════════════════════════ */
.ad-placeholder {
  background: var(--border-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 12px;
  margin: 20px 0;
  min-height: 90px;
}

.ad-top { min-height: 90px; }
.ad-sidebar { min-height: 250px; }
.ad-in-article { min-height: 120px; margin: 24px 0; }
.ad-footer { min-height: 90px; }

/* ═══════════════════════════════════════════════════════
   FEATURED HERO
   ═══════════════════════════════════════════════════════ */
.featured-hero {
  margin: 20px 0;
  cursor: pointer;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.hero-card:hover { box-shadow: var(--shadow-hover); }

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 40px 20px 20px;
  color: white;
}

.hero-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.4;
  color: white;
  margin-bottom: 8px;
}

.hero-meta {
  font-size: 0.75rem;
  opacity: 0.8;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-overlay { padding: 60px 30px 30px; }
}

/* ═══════════════════════════════════════════════════════
   CONTENT LAYOUT (Main + Sidebar)
   ═══════════════════════════════════════════════════════ */
.content-layout {
  display: grid;
  gap: 30px;
  margin: 30px 0;
}

@media (min-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr 320px;
  }
}

.sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar { display: block; }
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.sidebar-widget .section-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.trending-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: background var(--transition);
}

.trending-list li:last-child { border-bottom: none; }

.trending-list li:hover { background: rgba(196,0,0,0.03); }

.trending-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  min-width: 30px;
  line-height: 1;
}

.trending-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.trending-views {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   BLOG CARDS GRID
   ═══════════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-light);
}

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

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

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

.blog-card:hover .card-image-wrap img { transform: scale(1.08); }

.card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-author img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   BLOG POST DETAIL
   ═══════════════════════════════════════════════════════ */
.post-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.post-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.post-breadcrumb a { color: var(--primary); }

.post-header { margin-bottom: 24px; }

.post-category-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .post-title { font-size: 2.2rem; }
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.post-author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.post-author-details {
  flex: 1;
}

.post-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.post-date-views {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

.post-share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--border-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.share-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.post-featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}

.post-content p {
  margin-bottom: 18px;
}

.post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--font-heading);
  color: var(--text);
  margin: 28px 0 12px;
}

.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.3rem; }

.post-content ul, .post-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 18px;
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 20px 0;
  background: rgba(196,0,0,0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   RECOMMENDED POSTS
   ═══════════════════════════════════════════════════════ */
.recommended-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border);
}

.recommended-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .recommended-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .recommended-grid { grid-template-columns: repeat(4, 1fr); }
}

.rec-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
}

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

.rec-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.rec-card-body {
  padding: 12px;
}

.rec-card-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.rec-read-more {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
}

.rec-read-more:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   STATIC PAGES (About, Privacy, Contact)
   ═══════════════════════════════════════════════════════ */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 16px 50px;
}

.static-page h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
}

.static-page h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.static-page p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.static-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.static-page ul li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ── Contact Form ── */
.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,0,0,0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(196,0,0,0.3);
}

.btn-secondary {
  background: var(--border-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #b02a37;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════ */
.admin-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 16px 50px;
}

.admin-login {
  max-width: 400px;
  margin: 60px auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.admin-login h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--text);
}

.admin-login .logo-icon {
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  font-size: 1.8rem;
}

.admin-dashboard { display: none; }
.admin-dashboard.active { display: block; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.admin-table th {
  background: var(--primary);
  color: white;
  padding: 12px 14px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-table th:first-child { text-align: left; }

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text);
}

.admin-table tr:hover { background: rgba(196,0,0,0.02); }

.admin-table .actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* ── Admin Form Modal ── */
.admin-form-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-form-overlay.active { display: flex; }

.admin-form-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.admin-form-modal h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text);
}

.admin-form-modal .form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  animation: toastSlide 0.3s ease;
  border-left: 4px solid var(--primary);
  font-size: 0.9rem;
  color: var(--text);
}

.toast.success { border-left-color: #28a745; }
.toast.error { border-left-color: #dc3545; }

@keyframes toastSlide {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-footer);
  color: #cccccc;
  padding: 40px 0 20px;
  margin-top: 40px;
}

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

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: white;
  margin-bottom: 14px;
  font-size: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #aaaaaa;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #aaaaaa;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #777777;
}

/* ═══════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 6px 0;
  transition: color var(--transition);
  text-decoration: none;
  min-width: 56px;
}

.bottom-nav a .nav-icon {
  font-size: 1.3rem;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(196,0,0,0.3);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 998;
  border: none;
}

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

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .scroll-top { bottom: 30px; right: 30px; }
}

/* ═══════════════════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16/10;
}

.skeleton-body { padding: 16px; }

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.skeleton-line:last-child { width: 60%; }

.skeleton-line-short { width: 40%; }

/* ═══════════════════════════════════════════════════════
   COOKIE CONSENT
   ═══════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  padding: 16px 20px;
  z-index: 5000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner.active { display: flex; }

.cookie-banner p {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 200px;
}

.cookie-banner .btn { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════ */
.page-loader {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.page-loader.active {
  transform: scaleX(0.7);
  transition: transform 3s ease;
}

.page-loader.done {
  transform: scaleX(1);
  transition: transform 0.2s ease;
}

/* ═══════════════════════════════════════════════════════
   MISC ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Category filter pills ── */
.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.category-pill {
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════ */
@media print {
  .ticker-wrap, .site-header, .bottom-nav, .scroll-top,
  .ad-placeholder, .cookie-banner, .site-footer { display: none !important; }
  body { padding: 0; background: white; color: black; }
  .post-detail { max-width: 100%; }
}
