/* style/resources.css */

/* General Page Styling */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0d0d0d; /* Matching shared.css body background */
}

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

.page-resources__heading-primary {
  font-size: 3.2em;
  color: #FFD700; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-resources__heading-secondary {
  font-size: 2.5em;
  color: #FFD700; /* Gold */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 25px;
  font-weight: 600;
  line-height: 1.3;
}

.page-resources__heading-tertiary {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-resources__paragraph {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-resources__paragraph a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__paragraph a:hover {
  text-decoration: underline;
}

.page-resources__highlight {
  color: #FFD700;
  font-weight: bold;
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #000000; /* Black for contrast */
  border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #000000;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000; /* Black for contrast */
}

.page-resources__btn-tertiary {
  background-color: #8B0000; /* Dark Red */
  color: #ffffff;
  border: 2px solid #8B0000;
}

.page-resources__btn-tertiary:hover {
  background-color: #a30000;
  border-color: #a30000;
}

/* HERO Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.page-resources__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-resources__hero-image {
  width: 100%;
  margin: 0;
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Products Section */
.page-resources__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #1a1a1a; /* Darker background for contrast */
}

.page-resources__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 20px;
}

.page-resources__products-grid {
  display: grid;
  gap: 20px;
}

.page-resources__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-resources__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-resources__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a;
  border: 3px solid #FFD700; /* Gold border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.page-resources__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-resources__product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-resources__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Intro Section */
.page-resources__intro-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #e0e0e0;
  padding-top: 120px; /* Spacing for fixed header */
}

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

.page-resources__feature-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid #333;
}

.page-resources__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__feature-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.5;
  text-align: center;
}

.page-resources__cta-group {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Quick Access Section */
.page-resources__quick-access-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-resources__link-card {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: #e0e0e0;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid #444;
}

.page-resources__link-card:hover {
  transform: translateY(-8px);
  background-color: #3a3a3a;
}

.page-resources__link-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-resources__link-description {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.5;
}

/* Games Section */
.page-resources__games-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-resources__game-category {
  margin-bottom: 60px;
}

.page-resources__game-title {
  font-size: 2em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-resources__game-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-resources__game-content--reverse {
  flex-direction: row-reverse;
}

.page-resources__game-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 2px solid #FFD700;
}

.page-resources__game-text {
  flex: 1;
  color: #e0e0e0;
}

.page-resources__game-text p {
  text-align: left;
  font-size: 1.05em;
  margin-bottom: 15px;
  color: #cccccc;
}

.page-resources__game-text ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-resources__game-text li {
  margin-bottom: 8px;
  font-size: 1em;
}

/* Promotions Section */
.page-resources__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-resources__promo-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  border: 1px solid #444;
}

.page-resources__promo-card:hover {
  transform: translateY(-10px);
}

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

.page-resources__promo-content {
  padding: 25px;
  text-align: center;
}

.page-resources__promo-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__promo-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 25px;
}

/* Safety & Support Section */
.page-resources__safety-support-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-resources__safety-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid #333;
}

.page-resources__safety-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__safety-description {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.5;
}

.page-resources__contact-cta {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-resources__faq-list {
  margin-top: 40px;
}

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

.page-resources__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;
  color: #cccccc;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a2a2a;
  border-radius: 0 0 5px 5px;
}

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

.page-resources__faq-question:hover {
  background: #444444;
  border-color: #666666;
}

.page-resources__faq-question:active {
  background: #555555;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700;
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

/* Blog Section */
.page-resources__blog-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-resources__blog-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  border: 1px solid #333;
}

.page-resources__blog-card:hover {
  transform: translateY(-10px);
}

.page-resources__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-resources__blog-content {
  padding: 20px;
}

.page-resources__blog-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.page-resources__blog-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-resources__blog-date {
  font-size: 0.85em;
  color: #999999;
  display: block;
}

.page-resources__view-all-cta {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__heading-primary {
    font-size: 2.8em;
  }
  .page-resources__heading-secondary {
    font-size: 2em;
  }
  .page-resources__products-container {
    grid-template-columns: 1fr;
  }
  .page-resources__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-resources__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-resources__game-content {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__game-content--reverse {
    flex-direction: column;
  }
  .page-resources__game-image {
    max-width: 100%;
  }
  .page-resources__game-text p,
  .page-resources__game-text ul {
    text-align: center;
  }
  .page-resources__game-text ul {
    margin-left: 0;
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__container {
    padding: 30px 15px;
  }
  .page-resources__heading-primary {
    font-size: 2.2em;
    margin-bottom: 20px;
  }
  .page-resources__heading-secondary {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-resources__paragraph {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-tertiary {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources__intro-section {
    padding: 60px 0;
    padding-top: 100px; /* Mobile spacing for fixed header */
  }
  .page-resources__intro-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__quick-access-section {
    padding: 40px 0;
  }
  .page-resources__link-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-resources__games-section,
  .page-resources__promotions-section,
  .page-resources__safety-support-section,
  .page-resources__faq-section,
  .page-resources__blog-section {
    padding: 40px 0;
  }
  .page-resources__game-content {
    gap: 20px;
  }
  .page-resources__promo-grid,
  .page-resources__safety-grid,
  .page-resources__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__promo-title,
  .page-resources__safety-title,
  .page-resources__blog-title {
    font-size: 1.3em;
  }
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 1.05em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  
  /* Mobile image adaptation */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__products-section,
  .page-resources__intro-section,
  .page-resources__quick-access-section,
  .page-resources__games-section,
  .page-resources__promotions-section,
  .page-resources__safety-support-section,
  .page-resources__faq-section,
  .page-resources__blog-section
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile specific product grid */
  .page-resources__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-resources__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-resources__products-grid--small .page-resources__product-card {
    aspect-ratio: 1 / 1;
  }
  .page-resources__products-grid--small .page-resources__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
  .page-resources__products-grid--large {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-resources__products-grid--large .page-resources__product-card {
    aspect-ratio: 1 / 1;
  }
  .page-resources__products-grid--large .page-resources__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
}