/* style/resources.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Grey */
  --accent-color: #FF0000; /* Red for emphasis */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #111;
  --background-light: #f8f8f8;
  --card-background: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.15);
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from shared.css body */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

/* Sections */
.page-resources__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__hero-section {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
  color: var(--text-light);
}

.page-resources__dark-bg {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-resources__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

/* Titles */
.page-resources__main-title {
  font-size: 3.2em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-resources__card-title,
.page-resources__feature-title,
.page-resources__guide-title,
.page-resources__blog-item-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Description & Text Blocks */
.page-resources__description,
.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light); /* Default for dark sections */
}

.page-resources__light-bg .page-resources__description,
.page-resources__light-bg .page-resources__text-block {
  color: var(--text-dark);
}

/* CTA Buttons */
.page-resources__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources__cta-buttons--center {
  justify-content: center;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Grid Container for Games */
.page-resources__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Cards */
.page-resources__card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__light-bg .page-resources__card {
  background-color: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

.page-resources__card-text {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-resources__light-bg .page-resources__card-text {
  color: var(--text-dark);
}

.page-resources__card-link {
  display: inline-block;
  margin-top: auto;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__card-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Feature Grid */
.page-resources__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources__feature-item {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-resources__light-bg .page-resources__feature-item {
  background-color: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-resources__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-resources__feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
}

.page-resources__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-resources__light-bg .page-resources__feature-description {
  color: var(--text-dark);
}

/* Guide Steps */
.page-resources__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources__guide-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  position: relative;
  padding-top: 80px;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

.page-resources__guide-step-number {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-resources__guide-description {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__btn-link {
  display: inline-block;
  margin-top: auto;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__btn-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Blog List */
.page-resources__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources__blog-item {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-align: left;
}

.page-resources__light-bg .page-resources__blog-item {
  background-color: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-resources__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-resources__blog-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

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

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

.page-resources__blog-item-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-resources__blog-item-excerpt {
  font-size: 0.9em;
  color: #f0f0f0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources__light-bg .page-resources__blog-item-excerpt {
  color: var(--text-dark);
}

.page-resources__blog-item-date {
  font-size: 0.85em;
  color: #aaa;
  margin-top: auto;
}

.page-resources__light-bg .page-resources__blog-item-date {
  color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__card-title,
  .page-resources__feature-title,
  .page-resources__guide-title,
  .page-resources__blog-item-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__hero-section {
    padding: 60px 0 40px;
  }

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

  .page-resources__main-title {
    font-size: 2.2em;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources__card-title,
  .page-resources__feature-title,
  .page-resources__guide-title,
  .page-resources__blog-item-title {
    font-size: 1.2em;
  }

  .page-resources__description,
  .page-resources__text-block {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__grid-container,
  .page-resources__feature-grid,
  .page-resources__guide-steps,
  .page-resources__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-resources__card,
  .page-resources__feature-item,
  .page-resources__guide-item,
  .page-resources__blog-item {
    padding: 20px;
  }

  .page-resources__card-image,
  .page-resources__blog-image {
    height: 180px;
  }

  .page-resources__guide-step-number {
    top: 20px;
    left: 20px;
  }

  .page-resources img,
  .page-resources video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__cta-buttons,
  .page-resources__feature-grid,
  .page-resources__guide-steps,
  .page-resources__blog-list,
  .page-resources__blog-item,
  .page-resources__feature-item,
  .page-resources__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-resources__hero-section .page-resources__container {
    padding-left: 0;
    padding-right: 0;
  }
}