/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#0a0a0a) */
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  background: linear-gradient(135deg, #26A9E0, #0a0a0a);
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
  color: #ffffff;
}

.page-blog__main-title {
  font-size: clamp(36px, 5vw, 56px); /* Using clamp for responsive font size */
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-blog__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-blog__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-blog__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Latest News/Articles Grid */
.page-blog__latest-news {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__article-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-blog__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #26A9E0;
}

.page-blog__article-meta {
  font-size: 14px;
  color: #bbbbbb;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-link:hover {
  color: #1e87b7;
  text-decoration: underline;
}

.page-blog__view-all-button-container {
  margin-top: 50px;
}

/* Guides Section */
.page-blog__guides {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-blog__guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__guide-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog__guide-card:hover {
  transform: translateY(-5px);
}

.page-blog__guide-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-blog__guide-text {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* Game Reviews Section */
.page-blog__game-reviews {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-blog__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-blog__game-card:hover {
  transform: translateY(-5px);
}

.page-blog__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-blog__game-title {
  font-size: 24px;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: #ffffff;
}

.page-blog__game-text {
  font-size: 16px;
  color: #e0e0e0;
  margin: 0 20px 20px;
}

/* FAQ Section */
.page-blog__faq {
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: left;
}

.page-blog__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-blog__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #e0e0e0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom CTA Section */
.page-blog__cta-bottom {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
}

.page-blog__cta-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #ffffff;
}

.page-blog__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-blog__hero-image {
    height: 350px;
    margin-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: clamp(30px, 6vw, 40px);
  }

  .page-blog__description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    margin-bottom: 15px;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog__section {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .page-blog__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-blog__articles-grid,
  .page-blog__guide-cards,
  .page-blog__game-cards {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .page-blog__article-card,
  .page-blog__guide-card,
  .page-blog__game-card {
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .page-blog__article-image,
  .page-blog__game-image {
    height: 200px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__article-title {
    font-size: 20px;
  }

  .page-blog__guide-title {
    font-size: 22px;
  }

  .page-blog__game-title {
    font-size: 20px;
  }

  .page-blog__faq-list {
    padding: 0 15px;
  }

  .page-blog__faq-item summary {
    font-size: 18px;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }

  .page-blog__cta-bottom {
    padding: 60px 15px;
  }

  .page-blog__cta-title {
    font-size: clamp(26px, 5.5vw, 36px);
  }

  .page-blog__cta-description {
    font-size: 18px;
  }

  /* Ensure all images are responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-news,
  .page-blog__guides,
  .page-blog__game-reviews,
  .page-blog__faq,
  .page-blog__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by container or specific sections */
  }

  .page-blog__view-all-button-container {
    padding: 0 15px;
  }
}

/* Color Contrast Specifics */
.page-blog__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-blog__light-bg {
  background-color: #1a1a1a; /* Using a darker shade for light-bg in this theme */
  color: #ffffff;
}

/* Content area text color for general paragraphs and lists */
.page-blog p,
.page-blog li {
  color: #e0e0e0;
}

/* Ensure specific elements maintain contrast */
.page-blog__article-card,
.page-blog__guide-card,
.page-blog__game-card {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.page-blog__faq-item {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.page-blog__faq-item summary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.page-blog__faq-answer {
  color: #e0e0e0;
}

.page-blog__hero-section,
.page-blog__cta-bottom {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}