/* style/index.css */

/* Variables for colors */
:root {
  --page-index-primary-color: #FFD700; /* Gold */
  --page-index-secondary-color: #DC143C; /* Deep Red */
  --page-index-dark-text: #333;
  --page-index-light-text: #fff;
  --page-index-background-light: #f9f9f9;
  --page-index-background-dark: #222;
  --page-index-accent-gold-dark: #b39700;
  --page-index-accent-red-light: #e75b77;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-index-dark-text);
  background-color: var(--page-index-background-light);
}

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

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-index__btn--primary {
  background-color: var(--page-index-primary-color);
  color: var(--page-index-dark-text);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-index__btn--primary:hover {
  background-color: var(--page-index-accent-gold-dark);
  transform: translateY(-2px);
}

.page-index__btn--secondary {
  background-color: var(--page-index-secondary-color);
  color: var(--page-index-light-text);
  margin-left: 15px;
  box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4);
}

.page-index__btn--secondary:hover {
  background-color: var(--page-index-accent-red-light);
  transform: translateY(-2px);
}

.page-index__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-index__btn--large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-index__btn--block {
  display: block;
  width: calc(100% - 20px); /* Adjust for padding if needed */
  margin: 10px auto;
}

.page-index__btn--download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--page-index-dark-text);
  color: var(--page-index-light-text);
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-index__btn--download:hover {
  background-color: #555;
  transform: translateY(-2px);
}

.page-index__btn--download img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.page-index__btn--link {
  color: var(--page-index-secondary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
}

.page-index__btn--link:hover {
  text-decoration: underline;
  color: var(--page-index-accent-red-light);
}

.page-index__section-title {
  font-size: 2.5em;
  color: var(--page-index-secondary-color);
  margin-bottom: 20px;
  text-align: left;
  font-weight: bold;
}

.page-index__section-title--center {
  text-align: center;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
}

.page-index__img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-index__hero-section {
  background: linear-gradient(135deg, var(--page-index-primary-color) 0%, var(--page-index-secondary-color) 100%);
  padding: 100px 0;
  text-align: center;
  color: var(--page-index-light-text);
  position: relative;
  overflow: hidden;
}

.page-index__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:abstract,geometric,pattern,gold,red]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-index__hero-section > .page-index__container {
  position: relative;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: var(--page-index-light-text);
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.page-index__hero-actions .page-index__btn {
  font-size: 1.2em;
  padding: 15px 35px;
}

/* General Grid Layout */
.page-index__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
}

.page-index__grid--reverse .page-index__image-content {
  order: 2;
}

.page-index__grid--reverse .page-index__text-content {
  order: 1;
}

/* About Section */
.page-index__about-section {
  background-color: var(--page-index-background-light);
}

.page-index__text-content p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #555;
}

.page-index__keyword {
  font-weight: bold;
  color: var(--page-index-secondary-color);
}

/* Featured Games Section */
.page-index__featured-games-section {
  background-color: #f0f0f0;
  padding: 80px 0;
}

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

.page-index__game-card {
  background-color: var(--page-index-light-text);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.page-index__game-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__game-title {
  font-size: 1.6em;
  color: var(--page-index-secondary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #777;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: var(--page-index-background-light);
}

.page-index__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-index__promo-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left 8px center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #555;
}

/* Why Choose Section */
.page-index__why-choose-section {
  background-color: var(--page-index-background-dark);
  color: var(--page-index-light-text);
  padding: 80px 0;
}

.page-index__why-choose-section .page-index__section-title {
  color: var(--page-index-primary-color);
}

.page-index__why-choose-section .page-index__section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

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

.page-index__feature-item {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.page-index__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.page-index__feature-title {
  font-size: 1.8em;
  color: var(--page-index-primary-color);
  margin-bottom: 10px;
}

.page-index__feature-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

/* App Download Section */
.page-index__app-download-section {
  background-color: var(--page-index-background-light);
}

.page-index__download-buttons {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Announcements Section */
.page-index__announcements-section {
  background-color: #f0f0f0;
  padding: 80px 0;
}

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

.page-index__announcement-item {
  background-color: var(--page-index-light-text);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
}

.page-index__announcement-item:hover {
  transform: translateY(-5px);
}

.page-index__announcement-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-index__announcement-title a {
  color: var(--page-index-secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-index__announcement-title a:hover {
  text-decoration: underline;
  color: var(--page-index-accent-red-light);
}

.page-index__announcement-description {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
}

/* CTA Section */
.page-index__cta-section {
  background: linear-gradient(45deg, var(--page-index-secondary-color), var(--page-index-primary-color));
  padding: 100px 0;
  text-align: center;
  color: var(--page-index-light-text);
}

.page-index__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__cta-title {
  font-size: 3em;
  color: var(--page-index-light-text);
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-index__cta-description {
  font-size: 1.3em;
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.9);
}

.page-index__cta-content .page-index__btn--secondary {
  margin-left: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-index__grid--reverse .page-index__image-content {
    order: initial;
  }
  .page-index__grid--reverse .page-index__text-content {
    order: initial;
  }
  .page-index__hero-actions .page-index__btn {
    display: block;
    margin: 10px auto;
    width: 80%;
  }
  .page-index__hero-actions .page-index__btn--secondary {
    margin-left: 0;
  }
  .page-index__cta-content .page-index__btn--secondary {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-subtitle {
    font-size: 1em;
  }
  .page-index__games-grid,
  .page-index__features-grid,
  .page-index__announcement-list {
    grid-template-columns: 1fr;
  }
  .page-index__cta-title {
    font-size: 2.5em;
  }
  .page-index__cta-description {
    font-size: 1.1em;
  }
  .page-index__btn--large {
    font-size: 1em;
    padding: 12px 25px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__hero-actions .page-index__btn {
    width: 90%;
  }
  .page-index__download-buttons {
    align-items: center;
  }
  .page-index__btn--download {
    width: 90%;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
  .page-index__cta-content .page-index__btn {
    width: 90%;
    margin-left: 0;
  }
}