/* style/index.css */
/* Color Palette */
:root {
    --page-index-primary-color: #FFD700; /* Gold */
    --page-index-secondary-color: #1A202C; /* Dark Blue/Black */
    --page-index-text-light: #F0F0F0;
    --page-index-text-dark: #1A202C;
    --page-index-background-dark: #1A202C;
    --page-index-background-light: #2A3340; /* Slightly lighter dark for contrast */
    --page-index-accent-color: #e6b800; /* Darker gold for hover/active */
}

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

.page-index__highlight {
    color: var(--page-index-primary-color);
    font-weight: bold;
}

.page-index__section-title {
    color: var(--page-index-primary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-weight: bold;
}

.page-index__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-index-primary-color);
    border-radius: 2px;
}

.page-index__text-block {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    color: var(--page-index-text-light);
}

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

.page-index__btn--primary {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-text-dark); /* Dark text on gold button */
    border: 2px solid var(--page-index-primary-color);
}

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

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

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

.page-index__btn--large {
    padding: 15px 30px;
    font-size: 1.2em;
    min-width: 200px;
}

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

.page-index__btn--link {
    background-color: transparent;
    color: var(--page-index-primary-color);
    border: none;
    text-decoration: underline;
    padding: 0;
    font-size: 1em;
}

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

/* Hero Section */
.page-index__hero-section {
    background: linear-gradient(135deg, var(--page-index-background-dark) 0%, var(--page-index-secondary-color) 70%, #0d1016 100%);
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-index__hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, transparent 70%);
    animation: page-index__hero-glow 10s infinite alternate;
}

.page-index__hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
    animation: page-index__hero-glow 12s infinite reverse alternate;
}

@keyframes page-index__hero-glow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(20px, 20px) scale(1.1); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
}

.page-index__hero-content {
    max-width: 700px;
    z-index: 1;
    padding: 0 20px;
}

.page-index__hero-title {
    font-size: 3.5em;
    color: var(--page-index-primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-index__hero-description {
    font-size: 1.2em;
    color: var(--page-index-text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.page-index__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-index__hero-image-wrapper {
    max-width: 500px;
    flex-shrink: 0;
    z-index: 1;
    padding: 0 20px;
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* General Section Styling */
.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__mobile-section,
.page-index__quick-access-section,
.page-index__detail-pages-section,
.page-index__final-cta-section {
    padding: 80px 0;
    background-color: var(--page-index-background-dark);
}

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

/* About Section */
.page-index__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-index__feature-item {
    background-color: var(--page-index-background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-index__feature-item:hover {
    transform: translateY(-10px);
}

.page-index__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: invert(80%) sepia(80%) saturate(1000%) hue-rotate(0deg) brightness(120%) contrast(100%); /* Gold tint */
}

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

.page-index__feature-description {
    font-size: 1em;
    color: var(--page-index-text-light);
}

/* Games Section */
.page-index__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

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

.page-index__game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--page-index-primary-color);
}

.page-index__game-title {
    font-size: 1.4em;
    color: var(--page-index-primary-color);
    margin: 20px 15px 10px;
}

.page-index__game-description {
    font-size: 0.95em;
    color: var(--page-index-text-light);
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-index__game-card .page-index__btn {
    margin: 0 15px 20px;
    align-self: center;
    width: calc(100% - 30px);
}

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

.page-index__promo-card {
    background-color: var(--page-index-background-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-index__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--page-index-primary-color);
}

.page-index__promo-title {
    font-size: 1.6em;
    color: var(--page-index-primary-color);
    margin: 20px 15px 10px;
}

.page-index__promo-description {
    font-size: 1em;
    color: var(--page-index-text-light);
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-index__promo-card .page-index__btn {
    margin: 0 15px 20px;
    align-self: center;
    width: calc(100% - 30px);
}

/* Mobile Section */
.page-index__content-wrapper--reverse {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap-reverse; /* Image on right, text on left for desktop, reversed on mobile */
}

.page-index__mobile-text-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-index__mobile-text-content .page-index__section-title,
.page-index__mobile-text-content .page-index__text-block {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
.page-index__mobile-text-content .page-index__section-title::after {
    left: 0;
    transform: translateX(0);
}


.page-index__mobile-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-index__mobile-image {
    width: 80%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 5px solid var(--page-index-primary-color);
}

/* Quick Access Section */
.page-index__quick-access-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

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