/* style/game-strategy-library.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --dark-background: #050505;
    --light-text: #ffffff;
    --dark-text: #333333;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-shadow-color: rgba(0, 0, 0, 0.2);
}

.page-game-strategy-library {
    color: var(--light-text); /* Default text color for dark body background */
    background-color: var(--dark-background); /* Ensure consistency with body */
}

/* 🚨 Fixed nav bar padding-top for desktop */
.page-game-strategy-library__introduction-section {
    padding-top: 120px; /* Adjust based on shared header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3); /* Darker gradient for intro */
    color: var(--light-text);
    text-align: center;
}

.page-game-strategy-library__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-game-strategy-library__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--light-text);
}

.page-game-strategy-library__intro-text {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #e0e0e0;
}

.page-game-strategy-library__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-game-strategy-library__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.page-game-strategy-library__btn-primary {
    background: var(--secondary-color);
    color: var(--dark-text);
    border: 2px solid var(--secondary-color);
}

.page-game-strategy-library__btn-primary:hover {
    background: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--hover-shadow-color);
}

.page-game-strategy-library__btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.page-game-strategy-library__btn-secondary:hover {
    background: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--hover-shadow-color);
}

.page-game-strategy-library__section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: var(--light-text);
}

.page-game-strategy-library__section-description {
    font-size: 1.1em;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: center;
    color: #e0e0e0;
}

.page-game-strategy-library__strategy-section {
    padding: 80px 0;
    background-color: var(--dark-background);
}

.page-game-strategy-library__strategy-grid,
.page-game-strategy-library__promo-grid,
.page-game-strategy-library__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-game-strategy-library__strategy-card,
.page-game-strategy-library__promo-card,
.page-game-strategy-library__blog-card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--dark-text); /* Card text color */
}

.page-game-strategy-library__promo-card {
  background: rgba(0, 123, 255, 0.1); /* Slightly transparent primary color for promo cards */
  color: var(--light-text);
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.page-game-strategy-library__promo-card .page-game-strategy-library__card-title,
.page-game-strategy-library__promo-card .page-game-strategy-library__card-text {
  color: var(--light-text);
}

.page-game-strategy-library__strategy-card:hover,
.page-game-strategy-library__promo-card:hover,
.page-game-strategy-library__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--hover-shadow-color);
}

.page-game-strategy-library__card-image,
.page-game-strategy-library__promo-image,
.page-game-strategy-library__blog-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-game-strategy-library__card-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--dark-text);
}

.page-game-strategy-library__promo-card .page-game-strategy-library__card-title {
    color: var(--light-text);
}

.page-game-strategy-library__card-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-strategy-library__card-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-game-strategy-library__card-text {
    font-size: 1em;
    line-height: 1.7;
    color: #666666;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-game-strategy-library__promo-card .page-game-strategy-library__card-text {
    color: #e0e0e0;
}

.page-game-strategy-library__card-button {
    margin-top: auto;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-game-strategy-library__promotions-section {
    padding: 80px 0;
    background-color: #f1f3f5; /* Light background for contrast */
    color: var(--dark-text);
}

.page-game-strategy-library__promotions-section .page-game-strategy-library__section-title,
.page-game-strategy-library__promotions-section .page-game-strategy-library__section-description {
    color: var(--dark-text);
}

.page-game-strategy-library__promo-card.page-game-strategy-library__dark-bg {
    background: var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-strategy-library__promo-card.page-game-strategy-library__dark-bg .page-game-strategy-library__card-title,
.page-game-strategy-library__promo-card.page-game-strategy-library__dark-bg .page-game-strategy-library__card-text,
.page-game-strategy-library__promo-card.page-game-strategy-library__dark-bg .page-game-strategy-library__card-link {
    color: var(--light-text);
}

.page-game-strategy-library__promo-card.page-game-strategy-library__dark-bg .page-game-strategy-library__card-button {
    background: var(--secondary-color);
    color: var(--dark-text);
    border: none;
}

.page-game-strategy-library__promo-card.page-game-strategy-library__dark-bg .page-game-strategy-library__card-button:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.page-game-strategy-library__blog-section {
    padding: 80px 0;
    background-color: var(--dark-background);
}

.page-game-strategy-library__blog-card .page-game-strategy-library__card-title,
.page-game-strategy-library__blog-card .page-game-strategy-library__card-text {
    color: var(--dark-text);
}

.page-game-strategy-library__faq-section {
    padding: 80px 0;
    background-color: #f1f3f5; /* Light background for contrast */
    color: var(--dark-text);
}

.page-game-strategy-library__faq-section .page-game-strategy-library__section-title {
    color: var(--dark-text);
}

.page-game-strategy-library__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-game-strategy-library__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-game-strategy-library__faq-item.active .page-game-strategy-library__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-game-strategy-library__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-game-strategy-library__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-game-strategy-library__faq-question:active {
  background: #eeeeee;
}

.page-game-strategy-library__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--dark-text);
}

.page-game-strategy-library__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-game-strategy-library__faq-item.active .page-game-strategy-library__faq-toggle {
  color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-strategy-library__main-title {
        font-size: 2.8em;
    }
    .page-game-strategy-library__section-title {
        font-size: 2em;
    }
    .page-game-strategy-library__strategy-card,
    .page-game-strategy-library__promo-card,
    .page-game-strategy-library__blog-card {
        padding: 25px;
    }
    .page-game-strategy-library__card-image,
    .page-game-strategy-library__promo-image,
    .page-game-strategy-library__blog-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* 🚨 Fixed nav bar padding-top for mobile */
    .page-game-strategy-library__introduction-section {
        padding-top: 100px !important; /* Adjust based on shared mobile header height */
        padding-bottom: 40px;
    }

    .page-game-strategy-library__container {
        padding: 0 15px;
    }

    .page-game-strategy-library__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-game-strategy-library__intro-text {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-game-strategy-library__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-strategy-library__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-game-strategy-library__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-game-strategy-library__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .page-game-strategy-library__strategy-section,
    .page-game-strategy-library__promotions-section,
    .page-game-strategy-library__blog-section,
    .page-game-strategy-library__faq-section {
        padding: 40px 0;
    }

    .page-game-strategy-library__strategy-grid,
    .page-game-strategy-library__promo-grid,
    .page-game-strategy-library__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-strategy-library__strategy-card,
    .page-game-strategy-library__promo-card,
    .page-game-strategy-library__blog-card {
        padding: 20px;
    }
    .page-game-strategy-library__card-image,
    .page-game-strategy-library__promo-image,
    .page-game-strategy-library__blog-image {
        height: 150px;
        margin-bottom: 15px;
    }
    .page-game-strategy-library__card-title {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    .page-game-strategy-library__card-text {
        font-size: 0.9em;
        margin-bottom: 15px;
    }

    /* 🚨 Mobile image responsive adaptation */
    .page-game-strategy-library img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      box-sizing: border-box !important;
    }
    
    .page-game-strategy-library__section,
    .page-game-strategy-library__card,
    .page-game-strategy-library__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-game-strategy-library__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-game-strategy-library__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-game-strategy-library__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-game-strategy-library__faq-answer {
        padding: 0 15px;
    }
    
    .page-game-strategy-library__faq-item.active .page-game-strategy-library__faq-answer {
        padding: 15px !important;
    }
}