/* style/resources.css */

/* Cấu hình chung cho trang tài nguyên */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Màu chữ mặc định cho nền tối */
  background-color: #0d1117; /* Màu nền body từ shared.css */
}

/* Khoảng cách cho navbar cố định */
.page-resources__hero-banner {
  padding-top: 120px;
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding-top: 100px;
  }
}

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

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

.page-resources__dark-section {
  background-color: #003366;
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #1a202c; /* Nền sáng hơn một chút so với body để tạo sự phân biệt */
  color: #f0f0f0;
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #FFD700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

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

/* Hero Banner */
.page-resources__hero-banner {
  background: linear-gradient(135deg, #003366 0%, #0d1117 100%);
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-resources__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-resources__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-resources__btn--primary {
  background-color: #FFD700;
  color: #003366;
  border-color: #FFD700;
}

.page-resources__btn--primary:hover {
  background-color: #e0b000;
  border-color: #e0b000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-resources__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-resources__btn--secondary:hover {
  background-color: #FFD700;
  color: #003366;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-resources__btn--small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 30px;
}

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

.page-resources__guide-card,
.page-resources__news-card {
  background-color: #1a202c;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-resources__guide-card:hover,
.page-resources__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-resources__card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-resources__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__card-description {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Game List */
.page-resources__game-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__game-item {
  display: flex;
  background-color: #003366;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.page-resources__game-item img {
  width: 40%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-resources__game-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60%;
}

.page-resources__game-content h3 {
  font-size: 28px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-resources__game-content p {
  font-size: 17px;
  color: #e0e0e0;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #004488;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #004488;
  color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #0055aa;
}

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

.page-resources__faq-toggle {
  font-size: 28px;
  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: 32px;
  height: 32px;
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: #1a202c;
  color: #e0e0e0;
  border-radius: 0 0 10px 10px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.page-resources__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__faq-answer a:hover {
  color: #e0b000;
}

/* Contact Section */
.page-resources__contact-info {
  margin-top: 30px;
  font-size: 18px;
  color: #e0e0e0;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__contact-info a {
  color: #FFD700;
  text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 40px;
  }
  .page-resources__hero-description {
    font-size: 18px;
  }
  .page-resources__section-title {
    font-size: 32px;
  }
  .page-resources__text-block {
    font-size: 17px;
  }
  .page-resources__game-item {
    flex-direction: column;
  }
  .page-resources__game-item img {
    width: 100%;
    height: 250px;
  }
  .page-resources__game-content {
    width: 100%;
    padding: 25px;
  }
  .page-resources__game-content h3 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 16px;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn {
    width: 80%;
    max-width: 300px;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 28px;
  }
  .page-resources__text-block {
    font-size: 16px;
  }
  .page-resources__guide-grid,
  .page-resources__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__guide-card,
  .page-resources__news-card {
    padding: 20px;
  }
  .page-resources__card-title {
    font-size: 20px;
  }
  .page-resources__card-description {
    font-size: 15px;
  }
  .page-resources__game-content h3 {
    font-size: 22px;
  }
  .page-resources__game-content p {
    font-size: 16px;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
  }
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }
  .page-resources__contact-info {
    font-size: 16px;
  }
}

/* Mobile image responsive adaptation */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .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-banner,
  .page-resources__guide-card,
  .page-resources__news-card,
  .page-resources__game-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}