/*
Theme Name: The Nerdy Humourist
Theme URI: https://thenerdyhumourist.com
Author: The Nerdy Humourist
Author URI: https://thenerdyhumourist.com
Description: A premium WordPress theme converted from Blogger.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: nerdy-humourist
*/

/* =============================================
   THE NERDY HUMOURIST - WordPress Theme CSS
   Based on Median UI Blogger Theme
   ============================================= */

:root {
  --fontHead: 'Noto Sans', sans-serif;
  --fontBody: 'Noto Sans', sans-serif;
  --fontBody-alt: 'Fira Sans', sans-serif;
  --fontCode: 'Fira Mono', monospace;

  /* Light mode colors */
  --themeLink: #1a73e8;
  --themeC: #202124;
  --themeC-alt: rgba(32,33,36,0.8);
  --themeBg: #ffffff;
  --themeBg-alt: #f8f9fa;
  --themeBg-sec: #e8eaed;
  --themeBd-color: #e0e0e0;

  /* Header */
  --headerBg: #ffffff;
  --headerC: #202124;
  --headerBd-color: #e0e0e0;
  --headerHeight: 60px;

  /* Content */
  --contentBg: #ffffff;
  --contentBg-alt: #f8f9fa;
  --contentBd-color: #e0e0e0;
  --contentBd-radius: 8px;
  --contentPadding: 20px;
  --contentSpace: 20px;

  /* Post */
  --postBg: #ffffff;
  --postBd-color: #e0e0e0;
  --postBd-radius: 8px;
  --postBs-color: rgba(0,0,0,0.08);
  --postBs-hoverColor: rgba(0,0,0,0.14);

  /* Footer */
  --footerBg: #1a1a2e;
  --footerC: #e0e0e0;

  /* Sidebar */
  --sidebarBg: transparent;
  --sidebarBd-color: #e0e0e0;

  /* Button */
  --buttonBg: #1a73e8;
  --buttonC: #ffffff;
  --buttonBd-radius: 6px;

  /* Transitions */
  --tDuration: 0.2s ease;
}

.dark {
  --themeLink: #8ab4f8;
  --themeC: #e8eaed;
  --themeC-alt: rgba(232,234,237,0.7);
  --themeBg: #202124;
  --themeBg-alt: #303134;
  --themeBg-sec: #404144;
  --themeBd-color: #404144;

  --headerBg: #202124;
  --headerC: #e8eaed;
  --headerBd-color: #404144;

  --contentBg: #202124;
  --contentBg-alt: #303134;
  --contentBd-color: #404144;

  --postBg: #303134;
  --postBd-color: #404144;
  --postBs-color: rgba(0,0,0,0.3);
  --postBs-hoverColor: rgba(0,0,0,0.5);

  --footerBg: #111115;
  --footerC: #9aa0a6;
}

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

body {
  font-family: var(--fontBody);
  color: var(--themeC);
  background-color: var(--themeBg);
  line-height: 1.7;
  transition: background-color var(--tDuration), color var(--tDuration);
}

.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

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

/* =============================================
   LAYOUT
   ============================================= */

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

.main-content-area {
  flex: 1;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px var(--contentPadding);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  height: var(--headerHeight);
  background-color: var(--headerBg);
  border-bottom: 1px solid var(--headerBd-color);
  color: var(--headerC);
  z-index: 100;
  transition: background-color var(--tDuration), border-color var(--tDuration);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--contentPadding);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--headerC);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.15s;
  flex-shrink: 0;
}

.menu-btn:hover {
  background-color: var(--themeBg-alt);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.logo-text {
  font-family: var(--fontBody-alt);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--headerC);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.65;
  letter-spacing: 0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.header-nav a {
  color: var(--headerC);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.header-nav a:hover {
  background-color: var(--themeBg-alt);
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--headerC);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.15s;
  flex-shrink: 0;
}

.icon-btn:hover {
  background-color: var(--themeBg-alt);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-box {
  background: var(--contentBg);
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.search-box h3 {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 12px;
  font-family: var(--fontBody-alt);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--contentBd-color);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--themeBg-alt);
}

.search-input-wrap svg {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  flex-shrink: 0;
}

.search-input-wrap input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--fontBody);
  font-size: 1rem;
  color: var(--themeC);
  flex: 1;
}

.search-input-wrap input::placeholder {
  opacity: 0.5;
}

/* =============================================
   MOBILE MENU OVERLAY
   ============================================= */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.mobile-menu-panel {
  position: relative;
  width: 280px;
  background: var(--contentBg);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--contentBd-color);
}

.mobile-menu-header .logo-text {
  font-size: 1rem;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--themeC);
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.mobile-menu-close:hover {
  background: var(--themeBg-alt);
}

.mobile-menu-nav {
  padding: 12px 0;
  flex: 1;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--themeC);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.15s;
}

.mobile-menu-nav a:hover {
  background: var(--themeBg-alt);
  text-decoration: none;
}

.mobile-menu-social {
  padding: 16px 20px;
  border-top: 1px solid var(--contentBd-color);
}

.mobile-menu-social p {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 10px;
  font-family: var(--fontBody-alt);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.15s, transform 0.15s;
}

.social-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  text-decoration: none;
}

/* =============================================
   HERO SLIDER
   ============================================= */

.hero-slider {
  background: var(--themeBg-alt);
  position: relative;
  overflow: hidden;
}

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

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}

.slide-image {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
}

.slide-placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: white;
}

.slide-label {
  display: inline-block;
  background: var(--themeLink);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-family: var(--fontBody-alt);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-title {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.slide-meta {
  font-size: 0.82rem;
  opacity: 0.8;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 16px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--themeBd-color);
  transition: all 0.2s;
  padding: 0;
}

.slider-dot.active {
  background: var(--themeLink);
  width: 24px;
  border-radius: 4px;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
  transition: background 0.15s;
}

.slider-prev:hover,
.slider-next:hover {
  background: white;
}

.slider-prev {
  left: 30px;
}

.slider-next {
  right: 30px;
}

/* =============================================
   SECTION TITLE
   ============================================= */

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--contentBd-color);
}

.section-title h2 {
  font-family: var(--fontHead);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--themeC);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title-bar {
  width: 4px;
  height: 18px;
  background: var(--themeLink);
  border-radius: 2px;
  flex-shrink: 0;
}

/* =============================================
   POST CARDS
   ============================================= */

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

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

.post-card {
  background: var(--postBg);
  border: 1px solid var(--postBd-color);
  border-radius: var(--postBd-radius);
  overflow: hidden;
  box-shadow: 0 1px 4px var(--postBs-color);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.post-card:hover {
  box-shadow: 0 4px 16px var(--postBs-hoverColor);
  transform: translateY(-2px);
}

.post-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--themeBg-sec);
}

.post-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-thumb-emoji {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--themeBg-alt), var(--themeBg-sec));
}

.post-thumb-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--themeLink);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--fontBody-alt);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-body {
  padding: 16px;
}

.post-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--themeC);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-title:hover {
  color: var(--themeLink);
}

.post-excerpt {
  font-size: 0.875rem;
  color: var(--themeC-alt);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--themeC-alt);
  font-family: var(--fontBody-alt);
  flex-wrap: wrap;
}

.post-meta-dot {
  opacity: 0.4;
}

.post-meta-author {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--themeLink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--contentBd-color);
}

.post-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--themeC-alt);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 4px;
  font-family: var(--fontBody-alt);
  transition: background-color 0.15s, color 0.15s;
}

.post-action-btn:hover {
  background: var(--themeBg-alt);
  color: var(--themeLink);
}

.post-action-btn svg {
  width: 14px;
  height: 14px;
}

/* Featured large card */
.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.post-card-featured .post-thumb {
  padding-top: 0;
  min-height: 240px;
}

@media (max-width: 640px) {
  .post-card-featured {
    grid-template-columns: 1fr;
  }
  .post-card-featured .post-thumb {
    padding-top: 56.25%;
    min-height: unset;
  }
}

/* =============================================
   PAGINATION
   ============================================= */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 32px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--contentBd-color);
  border-radius: 6px;
  background: var(--contentBg);
  color: var(--themeC);
  cursor: pointer;
  font-family: var(--fontBody);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  transition: all 0.15s;
  gap: 4px;
}

.page-btn:hover {
  border-color: var(--themeLink);
  color: var(--themeLink);
}

.page-btn.active {
  background: var(--themeLink);
  border-color: var(--themeLink);
  color: white;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =============================================
   SIDEBAR
   ============================================= */

.sidebar {
  position: sticky;
  top: calc(var(--headerHeight) + 16px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: var(--postBg);
  border: 1px solid var(--postBd-color);
  border-radius: var(--postBd-radius);
  overflow: hidden;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--contentBd-color);
  font-family: var(--fontHead);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--themeC);
}

.widget-title-dot {
  width: 3px;
  height: 14px;
  background: var(--themeLink);
  border-radius: 2px;
}

.widget-body {
  padding: 16px;
}

/* Search widget */
.widget-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--contentBd-color);
  border-radius: 6px;
  padding: 9px 12px;
  background: var(--themeBg-alt);
}

.widget-search svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  flex-shrink: 0;
}

.widget-search input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--fontBody);
  font-size: 0.9rem;
  color: var(--themeC);
  flex: 1;
}

.widget-search input::placeholder {
  opacity: 0.5;
}

/* About widget */
.about-widget {
  text-align: center;
  padding: 20px 16px;
}

.about-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.about-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.about-desc {
  font-size: 0.83rem;
  color: var(--themeC-alt);
  line-height: 1.5;
  margin-bottom: 14px;
}

.about-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Popular posts widget */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.popular-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.popular-thumb {
  width: 68px;
  height: 55px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--themeBg-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

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

.popular-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--themeC);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  cursor: pointer;
}

.popular-title:hover {
  color: var(--themeLink);
}

.popular-date {
  font-size: 0.75rem;
  color: var(--themeC-alt);
  font-family: var(--fontBody-alt);
}

/* Labels/Tags widget */
.labels-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--contentBd-color);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--themeC-alt);
  cursor: pointer;
  font-family: var(--fontBody-alt);
  transition: all 0.15s;
}

.label-tag:hover {
  border-color: var(--themeLink);
  color: var(--themeLink);
  background: rgba(26, 115, 232, 0.05);
}

/* Newsletter widget */
.newsletter-widget {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(26,115,232,0.08), rgba(13,71,161,0.05));
}

.newsletter-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.newsletter-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.newsletter-desc {
  font-size: 0.8rem;
  color: var(--themeC-alt);
  margin-bottom: 14px;
  line-height: 1.4;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-input {
  border: 1px solid var(--contentBd-color);
  border-radius: 6px;
  padding: 9px 12px;
  font-family: var(--fontBody);
  font-size: 0.875rem;
  color: var(--themeC);
  background: var(--contentBg);
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}

.newsletter-input:focus {
  border-color: var(--themeLink);
}

.newsletter-btn {
  background: var(--themeLink);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 9px;
  font-family: var(--fontBody);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.newsletter-btn:hover {
  opacity: 0.9;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: var(--footerBg);
  color: var(--footerC);
  padding: 48px 0 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--contentPadding);
}

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

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

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

.footer-brand .logo-text {
  color: #fff;
  margin-bottom: 12px;
  display: block;
  font-size: 1.05rem;
}

.footer-brand .logo-text span {
  color: rgba(255,255,255,0.5);
}

.footer-desc {
  font-size: 0.85rem;
  opacity: 0.65;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  color: white;
}

.footer-social-btn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.9);
  font-family: var(--fontBody-alt);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.9);
}

/* =============================================
   COOKIE NOTICE
   ============================================= */

.cookie-notice {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 420px;
  background: #1a1a2e;
  color: #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  z-index: 999;
  font-size: 0.875rem;
  line-height: 1.5;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.cookie-text {
  opacity: 0.75;
  margin-bottom: 16px;
  font-family: var(--fontBody-alt);
}

.cookie-text a {
  color: #8ab4f8;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-decline {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 7px 16px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-family: var(--fontBody);
  font-size: 0.85rem;
  transition: all 0.15s;
}

.cookie-decline:hover {
  border-color: rgba(255,255,255,0.4);
  color: white;
}

.cookie-accept {
  background: #1a73e8;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  color: white;
  cursor: pointer;
  font-family: var(--fontBody);
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.15s;
}

.cookie-accept:hover {
  opacity: 0.9;
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--themeLink);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26,115,232,0.4);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26,115,232,0.5);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* =============================================
   DARK MODE TOGGLE
   ============================================= */

.dark-toggle {
  position: relative;
}

/* =============================================
   BREAKING NEWS TICKER
   ============================================= */

.news-ticker {
  background: var(--themeLink);
  color: white;
  font-size: 0.82rem;
  overflow: hidden;
  white-space: nowrap;
}

.news-ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--contentPadding);
  display: flex;
  align-items: center;
  gap: 0;
  height: 34px;
}

.ticker-label {
  font-weight: 700;
  font-family: var(--fontBody-alt);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.2);
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 16px;
}

.ticker-text {
  display: inline-flex;
  animation: tickerScroll 25s linear infinite;
  gap: 60px;
}

.ticker-text span {
  cursor: pointer;
  opacity: 0.9;
}

.ticker-text span:hover {
  opacity: 1;
  text-decoration: underline;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .slider-prev, .slider-next {
    display: none;
  }

  .post-card-featured {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-card {
  animation: fadeIn 0.3s ease;
}
