/* Silverware Games - Clean & Modern CSS */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #4a90e2;
  --secondary-color: #f39c12;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --max-width: 1200px;
  --spacing: 1rem;
  --border-radius: 8px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Apply Fredoka One to H1, H2, H3 with fallback */
h1,
h2,
h3 {
  font-family:
    "Fredoka One",
    cursive,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-weight: 400;
}

h1 {
  font-size: 2.75rem;
}
h2 {
  font-size: 2.25rem;
  margin-top: 2.5rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.25rem;
}

/* First h2 in main doesn't need top margin */
main > .container > section:first-of-type h2:first-of-type {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Keyboard Focus Visibility */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Header */
header {
  background: linear-gradient(135deg, #1e3a5f, #0d1f35);
  color: white;
  padding: 2rem 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Star field canvas */
#starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

header .container {
  position: relative;
  z-index: 1;
}

header h1 {
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 0;
}

.header-top {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* RSS Feed Link */
.rss-link {
  position: absolute;
  top: 0;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #ff6600;
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rss-link:hover {
  background-color: #ff8533;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.rss-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* CTA Row and Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  background-color: var(--bg-light);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: var(--text-color);
}

.button.primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.button.primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none; /* Hidden checkbox */
}

.hamburger-button {
  display: none; /* Hidden by default on desktop */
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-hover);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.hamburger-button span {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-button:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

.hamburger-button:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Hamburger animation when checked */
.mobile-menu-toggle:checked + .hamburger-button span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle:checked + .hamburger-button span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle:checked + .hamburger-button span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Navigation */
nav {
  background-color: var(--bg-light);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  background-color: var(--primary-color);
  color: white;
}

nav a.games-cta {
  font-weight: 700;
}

/* Main Content */
main {
  flex: 1;
  padding: 2rem 0;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Blog Card */
.blog-card {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card-link:hover {
  color: inherit;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 1200 / 630;
  height: auto;
  object-fit: cover;
  background-color: var(--bg-light);
}

.blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  text-align: center;
}

.blog-card-link:hover .blog-card-title {
  color: var(--primary-color);
}

.blog-card-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-align: center;
}

.blog-card-description {
  color: var(--text-color);
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.blog-card-category-icon {
  display: block;
  height: 40px;
  width: auto;
  margin: 0 auto 1rem auto;
  object-fit: contain;
}

.blog-post-header .blog-card-category {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-post-category-icon {
  display: block;
  height: 60px;
  width: auto;
  margin: 0 auto 1.5rem auto;
  object-fit: contain;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

/* Blog Post Detail */
.blog-post {
  max-width: 100%;
}

.blog-post-header {
  background: linear-gradient(135deg, var(--primary-color), #357abd);
  color: white;
  padding: 2rem;
  margin: 0 -1rem 2rem -1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 200px;
}

.blog-post-header-content {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 500px;
  text-align: right;
  padding-right: 1.5rem;
}

.blog-post-header-image {
  flex: 0 1 auto;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.5rem;
}

.blog-post-header .blog-post-cover {
  width: 100%;
  height: auto;
  margin: 0;
  float: none;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.blog-post-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-post-meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 0;
  padding-bottom: 1rem;
  opacity: 0.95;
}

.blog-post-content .blog-post-cover {
  width: 50%;
  height: auto;
  float: left;
  margin: 0 2rem 1rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1200 / 630; /* Maintain OG image aspect ratio to prevent CLS */
  object-fit: cover;
}

.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-post-content::after {
  content: "";
  display: table;
  clear: both;
}

.blog-post-content img {
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

/* Clear floated cover image for non-paragraph elements */
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6,
.blog-post-content iframe,
.blog-post-content video,
.blog-post-content blockquote,
.blog-post-content pre,
.blog-post-content ul,
.blog-post-content ol,
.blog-post-content table,
.blog-post-content div {
  clear: both;
}

.blog-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

/* Blockquote Styling */
blockquote {
  position: relative;
  margin: 2rem auto;
  padding: 1.75rem 2rem 1.5rem 3.5rem;
  max-width: 90%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 5px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  font-size: 1.15rem;
  line-height: 1.7;
  font-style: italic;
  color: #2c3e50;
  clear: both;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-color);
  opacity: 0.3;
  font-family: Georgia, serif;
}

blockquote p {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Citation/Attribution right after blockquote */
blockquote + a,
blockquote + cite,
blockquote + p > cite,
blockquote + .quote-attribution {
  display: block;
  text-align: right;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--text-light);
  margin-top: -1.25rem;
  margin-bottom: 2rem;
  padding-right: 2rem;
  font-weight: 600;
}

blockquote + a::before,
blockquote + cite::before,
blockquote + .quote-attribution::before {
  content: "— ";
}

blockquote + a {
  color: var(--primary-color);
  text-decoration: none;
}

blockquote + a:hover {
  color: var(--secondary-color);
}

/* Alternative: cite element inside blockquote */
blockquote cite {
  display: block;
  text-align: right;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--text-light);
  margin-top: 1rem;
  font-weight: 600;
}

blockquote cite::before {
  content: "— ";
}

blockquote cite a {
  color: var(--primary-color);
  text-decoration: none;
}

blockquote cite a:hover {
  color: var(--secondary-color);
}

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* Figure and Figcaption Styling */
figure {
  max-width: 85%;
  margin: 2rem auto;
  padding: 1.5rem;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  clear: both;
}

figure img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--border-radius) - 2px);
  margin: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16 / 9; /* Fallback aspect ratio to prevent layout shift */
  object-fit: cover;
}

figure a {
  display: block;
  margin: 0;
}

figure a img {
  transition: opacity 0.3s ease;
}

figure a:hover img {
  opacity: 0.9;
}

figcaption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #1565c0;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}

figcaption a {
  color: #0d47a1;
  font-weight: 600;
}

figcaption a:hover {
  color: var(--secondary-color);
}

/* Gallery Lightbox Modal */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.gallery-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90vh;
}

.gallery-modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.gallery-info {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-info-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: "Fredoka One", cursive, sans-serif;
}

.gallery-info-meta {
  font-size: 0.9rem;
  color: #666;
}

.gallery-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  line-height: 1;
  padding: 0;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-nav {
  position: fixed;
  bottom: 2rem;
  top: auto;
  transform: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 4rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  line-height: 1;
  padding: 0;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.blog-post {
  margin-left: 0;
  margin-right: 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  background-color: #000;
  color: white;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #000;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 600;
}

.cta-button:hover {
  background-color: #222;
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 0 3px #000;
  color: white;
}

.cta-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cta-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  color: white;
}

.cta-price {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* Footer */
footer {
  background-color: var(--bg-light);
  border-top: 2px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

footer p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--primary-color);
  margin: 0 0.5rem;
}

/* Responsive Video Container */
.responsive-iframe-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem 0;
  border-radius: var(--border-radius);
}

.responsive-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-light);
}

/* Error State */
.error {
  text-align: center;
  padding: 2rem;
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: var(--border-radius);
  color: #c00;
}

/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Mobile Navigation */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-top: 5rem;
    z-index: 999;
    pointer-events: auto;
  }

  /* Show nav when checkbox is checked */
  .mobile-menu-toggle:checked ~ nav {
    transform: translateX(0);
  }

  /* Add backdrop when menu is open */
  .mobile-menu-toggle:checked ~ nav::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1; /* keeps it behind nav contents */
  }

  /* Visual indicator that menu is open */
  .mobile-menu-toggle:checked + .hamburger-button {
    background: var(--secondary-color);
  }

  /* Show hamburger button on mobile */
  .hamburger-button {
    display: flex;
  }

  /* RSS link responsive positioning */
  header .rss-link {
    position: static;
    margin-top: 1rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  header .rss-link svg {
    width: 18px;
    height: 18px;
  }

  nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  nav li {
    width: 100%;
    text-align: left;
  }

  nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button {
    min-width: 100%;
  }

  .cta-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  figure {
    max-width: 100%;
    padding: 1rem;
    margin: 1.5rem 0;
  }

  figcaption {
    font-size: 0.85rem;
  }

  /* Stack post header on mobile */
  .blog-post-header {
    flex-direction: column;
    padding: 1.5rem;
    min-height: auto;
  }

  .blog-post-header-content {
    text-align: center;
    padding-right: 0;
    max-width: 100%;
  }

  .blog-post-header-image {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
  }

  .blog-post-header .blog-post-cover {
    max-width: 100%;
  }

  .blog-post-content .blog-post-cover {
    width: 100%;
    float: none;
    margin: 0 0 1rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  header {
    padding: 1.5rem 0;
  }
}

/* Print Styles */
@media print {
  nav,
  footer {
    display: none;
  }

  .blog-card {
    break-inside: avoid;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #e8e8e8;
    --text-light: #b0b0b0;
    --bg-color: #0a0e14;
    --bg-light: #141821;
    --border-color: #2a2f3a;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.6);
  }

  body {
    background-color: var(--bg-color);
    color: var(--text-color);
  }

  header {
    background: linear-gradient(135deg, #0d1f35, #050a14);
  }

  nav {
    background-color: var(--bg-light);
    border-bottom-color: var(--border-color);
  }

  nav a {
    color: var(--text-color);
  }

  nav a:hover,
  nav a.active {
    background-color: #1e3a5f;
    color: white;
  }

  .blog-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
  }

  .blog-card:hover {
    border-color: var(--primary-color);
  }

  .blog-card-image {
    background-color: var(--bg-color);
  }

  .blog-card-title {
    color: var(--text-color);
  }

  .blog-card-link:hover .blog-card-title {
    color: var(--primary-color);
  }

  .blog-card-meta {
    color: var(--text-light);
  }

  .blog-card-description {
    color: var(--text-color);
  }

  .blog-post-header {
    background: linear-gradient(135deg, #1e3a5f, #0d1f35);
  }

  .blog-post-cover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  .blog-post-content {
    color: var(--text-color);
  }

  .blog-post-content a {
    color: #5ba3e0;
  }

  .blog-post-content a:hover {
    color: var(--secondary-color);
  }

  .image-gallery {
    background-color: var(--bg-color);
  }

  .gallery-image {
    background-color: var(--bg-light);
  }

  figure {
    background: linear-gradient(135deg, #1a2332 0%, #243447 50%, #2d4059 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  }

  figcaption {
    color: #90caf9;
  }

  figcaption a {
    color: #bbdefb;
  }

  figcaption a:hover {
    color: var(--secondary-color);
  }

  blockquote {
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    border-left-color: #5ba3e0;
    color: #e8e8e8;
  }

  blockquote::before {
    color: #5ba3e0;
  }

  blockquote + a,
  blockquote + cite,
  blockquote + .quote-attribution {
    color: #b0b0b0;
  }

  blockquote + a {
    color: #5ba3e0;
  }

  blockquote + a:hover {
    color: var(--secondary-color);
  }

  blockquote cite {
    color: #b0b0b0;
  }

  blockquote cite a {
    color: #5ba3e0;
  }

  blockquote cite a:hover {
    color: var(--secondary-color);
  }

  footer {
    background-color: var(--bg-light);
    border-top-color: var(--border-color);
  }

  footer p {
    color: var(--text-light);
  }

  footer a {
    color: #5ba3e0;
  }

  a {
    color: #5ba3e0;
  }

  a:hover {
    color: var(--secondary-color);
  }

  .error {
    background-color: #2a1515;
    border-color: #5a2a2a;
    color: #ff8888;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
