/* Default Theme (Light Mode) */
:root {
    --bg-color: #f5f5f5;
    --text-color: #222;
    --accent-color: #0077cc;
    --nav-bg: #eaeaea;
    --footer-bg: #ddd;
  }
  
  /* Dark Mode Variables */
  body.dark-mode {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --accent-color: #66ccff;
    --nav-bg: #1f1f1f;
    --footer-bg: #1f1f1f;
  }
  
  body {
    font-family: Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
  }
  
  /* Navbar */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    padding: 10px 20px;
  }
  .navbar .logo {
    font-size: 20px;
    font-weight: bold;
  }
  .navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
  }
  .navbar .nav-links a {
    text-decoration: none;
    color: var(--text-color);
  }
  .navbar .nav-links a.active {
    color: var(--accent-color);
  }
  #darkModeToggle {
    border: none;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  /* Hero */
  .hero {
    text-align: center;
    padding: 60px 20px;
  }
  
  /* Footer */
  footer {
    background: var(--footer-bg);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
  }
  
  /* Forms */
  form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
  }
  form input, form textarea {
    padding: 8px;
    border: 1px solid #ccc;
  }
  form button {
    background: var(--accent-color);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
  }
  

.blog-page h1 {
  margin-bottom: 2rem;
  text-align: center; /* or left, depending on style */
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

  .blog-post {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
  }
  
  .blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
  }
  
  .blog-post .date,
  .blog-post .author {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
  }
  
  .blog-post .content p {
    margin-bottom: 15px;
    line-height: 1.6;
  }
  
  .blog-post .content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
  }
  
  .post-navigation {
    text-align: center;
    margin: 40px 0;
  }
  
  .post-navigation a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
  }
  .post-navigation a:hover {
    text-decoration: underline;
  }
  
  /* Twitch Hub Layout */
.twitch-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
  }
  
  .stream iframe,
  .chat iframe {
    border: none;
    border-radius: 8px;
  }
  
  /* Responsive: stack stream and chat on small screens */
  @media (max-width: 900px) {
    .twitch-container {
      flex-direction: column;
      align-items: center;
    }
    .chat iframe,
    .stream iframe {
      width: 95%;
    }
  }
  
  /* About / Info Section */
  .twitch-info {
    text-align: center;
    margin: 20px;
  }
  
  /* Follow / Subscribe Buttons */
  .twitch-links {
    text-align: center;
    margin: 20px;
  }
  
  .twitch-links button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
  }
  
  .twitch-links button:hover {
    background-color: #005fa3; /* Slightly darker hover */
  }
  
  /* Hamburger Button */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}

/* Overlay */
#menuOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 5;
}

/* Mobile Styles */
@media (max-width: 900px) {
  .nav-links {
    flex-direction: column;
    gap: 15px;
    background: var(--nav-bg);
    position: fixed;
    top: 60px; /* below navbar */
    right: -300px; /* hidden offscreen */
    width: 250px;
    padding: 20px;
    border-radius: 0 0 0 10px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 10;
  }

  .nav-links.active {
    right: 0; /* slide in */
  }

  .hamburger {
    display: block;
  }
}

/* Show overlay when menu is active */
#menuOverlay.active {
  display: block;
}

/* Default Hamburger (light mode) */
.hamburger {
  color: var(--text-color); /* or white if your navbar is dark in light mode */
  transition: color 0.3s ease;
}

/* Dark Mode Hamburger */
body.dark-mode .hamburger {
  color: #ffffff; /* bright color to stand out on dark nav */
}

/* Logo default (light mode) */
.logo a {
  color: var(--text-color); /* matches light mode navbar text */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

/* Dark Mode */
body.dark-mode .logo a {
  color: #ffffff; /* bright for dark navbar */
}

.contact-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.contact-container h1 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-container input,
.contact-container textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
}

.contact-container button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background: var(--accent-color);
  color: white;
  cursor: pointer;
  font-size: 1rem;
}

.contact-container button:hover {
  background: #00aaff; /* slightly darker on hover */
}

/* Dark Mode Support */
body.dark-mode .contact-container input,
body.dark-mode .contact-container textarea {
  background: #333;
  color: #fff;
  border: 1px solid #555;
}

body.dark-mode .contact-container button {
  background: #00bfff;
}

#formStatus {
  font-weight: bold;
  margin-top: 10px;
}

.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center; /* center children horizontally */
  width: 100%; /* take full container width */
  max-width: 500px; /* limit form width on large screens */
  margin: 0 auto; /* center form in container */
}

.contact-container input,
.contact-container textarea,
.contact-container button {
  width: 100%; /* make inputs/buttons stretch full form width */
  box-sizing: border-box; /* include padding in width calculation */
}
.contact-container {
  padding: 0 20px;
}
.contact-container h1 {
  margin-bottom: 10px;
}

.contact-container p {
  margin-bottom: 20px;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

/* SVG sizing and color */
.social-media a svg {
  width: 40px;
  height: 40px;
  fill: var(--accent-color);
  transition: fill 0.3s ease, transform 0.3s ease;
}

/* Hover effects */
.social-media a:hover svg {
  fill: #00bfff;
  transform: scale(1.2);
}

/* Dark mode */
body.dark-mode .social-media a svg {
  fill: #ffffff;
}

body.dark-mode .social-media a:hover svg {
  fill: #00bfff;
}

/* Optional fade/slide animation */
.social-media a {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.6s forwards;
}

.social-media a:nth-child(1) { animation-delay: 0.1s; }
.social-media a:nth-child(2) { animation-delay: 0.3s; }
.social-media a:nth-child(3) { animation-delay: 0.5s; }
.social-media a:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* expands to fill available space */
}

footer {
  margin-top: auto; /* pushes footer to bottom */
}

/* Blog container */
.blog-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Blog card */
.blog-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  padding: 1rem;
  box-shadow: var(--shadow);
  position: relative;
}

.blog-card img {
  width: 350px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease-in-out;
  aspect-ratio: 16 / 9;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.blog-card:hover h2{
  text-decoration: underline;
}

.blog-card .blog-content {
  position: relative; /* ensure content sits above the link overlay */
  z-index: 2;
}

/* Single post image */
.blog-card .blog-image img {
  width: 180px;
  height: 120px;
  object-fit: contain;
}

/* Series stack */
.series-label {
  font-size: 0.9rem;
  color: var(--accent);
}


/* Blog content */
.blog-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-content h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.blog-content p {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #666;
}

.blog-content .meta {
  font-size: 0.85rem;
  color: #999;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .blog-card {
    flex-direction: column;
  }

  .blog-card .blog-image img,
  .blog-image-stack {
    width: 100%;
    height: auto;
  }
}

/* Series label badge */
.blog-image-stack .series-label {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: var(--accent-color, #00bcd4);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 5;  /* make sure it’s above all images */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  text-transform: uppercase;
}

/* --- Blog Series Image Stack --- */
.image-stack {
  position: relative;
  display: inline-block;
  width: 350px;
  /* max-width: 350px; Adjust card size */
  aspect-ratio: 16 / 9; /* Keeps nice proportions */
}

.image-stack img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease-in-out;
}

/* Slight diagonal offset for stacked look */
.image-stack img:nth-child(2) {
  top: 8px;
  left: 8px;
  z-index: -1;
  opacity: 0.9;
}

.image-stack img:nth-child(3) {
  top: 16px;
  left: 16px;
  z-index: -2;
  opacity: 0.8;
}

/* Hover effect: bring the stack forward */
.image-stack:hover img {
  transform: translateY(-4px);
}




/* Series Page */
.series-header {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-color);
  border-bottom: 1px solid #ccc;
}

.series-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.series-header p {
  font-size: 1.1rem;
  color: #555;
}

.series-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
}

.series-post-card {
  display: flex;
  background: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.series-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.series-post-card img {
  width: 180px;
  object-fit: cover;
}

.series-post-card div {
  padding: 15px;
}

.series-post-card h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.series-post-card p {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #666;
}


.series-page .blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* space between posts */
  max-height: 100vh; /* control vertical height */
  overflow-y: auto; /* make scrollable if too long */
  padding-right: 0.5rem; /* space for scrollbar */
}

.series-page .blog-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--nav-bg);
}

.series-page .image-stack {
  width: 300px;       /* or whatever uniform width you like */
  height: 200px;      /* fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #bbd9a7;  /* optional: nice background */
  border-radius: 8px;
  overflow: hidden;   /* keeps things neat */
}

.series-page .image-stack img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;  /* ensures the full image is visible */
}

.series-page .blog-content {
  flex: 1;
}


/* About Page */
.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.about-photo {
  width: 1000px;
  max-width: 100%;
  text-align: center;
  object-fit: contain;
}

.about-content h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-color);
}

a {
  color: var(--text-color);
  text-decoration: none;
}

a:visited {
  color: var(--text-color);
}

a:hover,
a:active {
  color: var(--text-color);
  text-decoration: none;
}

@media (max-width: 600px) {
  .series-page .blog-card {
    flex-direction: column;   /* stack image on top of text */
    align-items: center;      /* center content horizontally */
    gap: 1rem;
  }

  .series-page .blog-content {
    width: 100%;              /* take full width */
    text-align: center;       /* optional for nicer mobile look */
  }

  .series-page .image-stack {
    width: 100%;              /* scale image to card width */
    height: auto;             /* adjust height proportionally */
  }

  .series-page .image-stack img {
    width: 100%;
    height: auto;
  }
}

.back-to-blog,
.back-to-blog:visited {
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem; /* slightly larger */
  font-weight: 600;  /* bold */
  color: #0066cc;   /* your site’s accent color */
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.back-to-blog:hover {
  color: #004499;
  transform: translateX(-4px); /* subtle slide left on hover */
}

.back-to-blog::after {
  content: "→";
  font-size: 1.4rem; /* make arrow bigger */
  margin-left: 6px;
  transition: transform 0.2s ease-in-out;
}

.back-to-blog:hover::after {
  transform: translateX(3px); /* arrow shifts right on hover */
}

.back-to-blog-container {
  display: flex;
  justify-content: center; /* centers horizontally */
  margin: 2rem 0;          /* space above/below */
}
