/* style/index.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #E3B505;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #000;
    --bg-light: #f1f3f5;
    --gray-border: #e4e4e4;
}

.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherited from shared.css body */
}

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

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

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

.page-index__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.text-highlight {
    color: var(--secondary-color);
}

/* HERO Section */
.page-index__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* Desktop: Adjust for fixed header */
    background: linear-gradient(135deg, var(--primary-color), #000);
    overflow: hidden;
}

.page-index__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-index__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.page-index__hero-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-index__hero-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-index__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--secondary-color), #FFC107);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-index__cta-button:hover {
    background: linear-gradient(135deg, #FFC107, var(--secondary-color));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    color: var(--primary-color);
}

/* Game Leaderboard Section */
.page-index__game-leaderboard-section {
    background: var(--bg-dark);
    padding: 60px 0;
}

.page-index__leaderboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index__page-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-light);
    position: relative;
    padding-bottom: 15px;
}

.page-index__page-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.page-index__game-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-index__game-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

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

.page-index__game-card-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
    border-left: 1px solid var(--gray-border);
    height: 100%;
}

.page-index__segment-1 {
    border-left: none;
    padding-left: 0;
    min-width: 140px;
    max-width: 160px;
    flex-direction: row;
    gap: 15px;
}

.page-index__segment-2 {
    flex: 2;
    align-items: flex-start;
    text-align: left;
}

.page-index__segment-3 {
    min-width: 180px;
    max-width: 220px;
}

.page-index__segment-4 {
    min-width: 220px;
    max-width: 260px;
    gap: 12px;
}

.page-index__rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Default for 4+ */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.page-index__rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold */
}

.page-index__rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0); /* Silver */
}

.page-index__rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333); /* Bronze */
}

.page-index__game-icon {
    max-width: 80px;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.page-index__game-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
    text-transform: uppercase;
}

.page-index__game-name-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-index__game-name-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-index__game-description {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 5px;
}

.page-index__game-description a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

.page-index__game-description a:hover {
    color: #004499;
    text-decoration: underline;
}

.page-index__game-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--secondary-color);
}

.page-index__stars {
    margin-right: 5px;
    font-weight: bold;
}

.page-index__rating-number {
    font-weight: bold;
    color: var(--text-dark);
}

.page-index__promotion-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
}

.page-index__promotion-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__promotion-link:hover {
    color: #004499;
    text-decoration: underline;
}

.page-index__hot-badge {
    background-color: #ff4d4d;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-index__cta-button {
    display: inline-block;
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--secondary-color), #FFC107);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: none;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to wrap */
}

.page-index__cta-button:hover {
    background: linear-gradient(135deg, #FFC107, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    color: var(--primary-color);
}

.page-index__btn-download {
    background: linear-gradient(135deg, var(--primary-color), #0A2463);
    color: var(--text-light);
}

.page-index__btn-download:hover {
    background: linear-gradient(135deg, #0A2463, var(--primary-color));
    color: var(--text-light);
}

.page-index__btn-review {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: var(--primary-color);
}

.page-index__btn-review:hover {
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    color: var(--secondary-color);
}

/* Review Content Section */
.page-index__review-content-section {
  padding: 60px 0;
  background: var(--bg-dark); /* Match body background */
}

.page-index__review-content-container {
  max-width: 1400px; /* Wider for better readability */
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__review-content-card {
  background: var(--text-light); /* White background */
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
  color: var(--text-dark);
}

.page-index__review-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-index__review-body h3 {
  font-size: 24px;
  font-weight: bold; /* Subheadings bold */
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-index__review-body p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-index__review-body p strong {
    color: var(--primary-color);
}

/* Intro Section */
.page-index__intro-section {
    padding: 60px 0;
    background: var(--primary-color);
}

.page-index__intro-section .page-index__section-title {
    color: var(--text-light);
}

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

.page-index__grid-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    color: var(--text-light);
}

.page-index__grid-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.page-index__intro-image {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-index__intro-heading {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-index__grid-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Games Showcase Section */
.page-index__games-showcase-section {
    background: var(--bg-dark);
    padding: 60px 0;
}

.page-index__games-showcase-section .page-index__section-title {
    color: var(--text-light);
}

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

.page-index__game-card-item {
    background: var(--text-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-index__game-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-type-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index__game-type-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-index__game-card-item p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-index__game-type-link {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__game-type-link:hover {
    background-color: #FFC107;
    transform: translateY(-2px);
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), #000);
}

.page-index__promotions-section .page-index__section-title {
    color: var(--text-light);
}

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

.page-index__promotion-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    color: var(--text-light);
}

.page-index__promotion-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.page-index__promotion-image {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index__promotion-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-index__promotion-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.page-index__btn-promo {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* Blog Section */
.page-index__blog-section {
    background: var(--bg-dark);
    padding: 60px 0;
}

.page-index__blog-section .page-index__section-title {
    color: var(--text-light);
}

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

.page-index__blog-card {
    background: var(--text-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    color: var(--text-dark);
}

.page-index__blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.page-index__blog-content {
    padding: 25px;
    text-align: left;
}

.page-index__blog-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-index__blog-link {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-index__blog-link:hover {
    color: var(--secondary-color);
}

.page-index__blog-excerpt {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-index__blog-date {
    font-size: 13px;
    color: #888888;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 40px;
    }
    .page-index__hero-description {
        font-size: 18px;
    }
    .page-index__cta-button {
        padding: 15px 35px;
        font-size: 20px;
    }
    .page-index__page-title {
        font-size: 32px;
    }
    .page-index__section-title {
        font-size: 28px;
    }
    .page-index__game-card {
        flex-wrap: wrap;
        padding: 20px;
    }
    .page-index__game-card-segment {
        padding: 10px;
        border-left: none;
        width: 100%;
        text-align: center;
    }
    .page-index__segment-1 {
        flex-direction: row;
        justify-content: center;
        min-width: unset;
        max-width: 100%;
        gap: 10px;
    }
    .page-index__game-icon {
        max-width: 70px;
    }
    .page-index__segment-2, .page-index__segment-3, .page-index__segment-4 {
        border-top: 1px solid var(--gray-border);
        margin-top: 15px;
        padding-top: 15px;
        min-width: unset;
        max-width: 100%;
        flex: 1 1 100%;
    }
    .page-index__segment-2 {
        align-items: center;
        text-align: center;
    }
    .page-index__game-name {
        font-size: 20px;
    }
    .page-index__game-description {
        font-size: 13px;
    }
    .page-index__game-rating {
        font-size: 16px;
    }
    .page-index__promotion-text {
        font-size: 13px;
    }
    .page-index__cta-button {
        font-size: 14px;
        padding: 10px 15px;
    }
    .page-index__review-content-card {
        padding: 30px;
    }
    .page-index__review-title {
        font-size: 28px;
    }
    .page-index__review-body h3 {
        font-size: 20px;
    }
    .page-index__review-body p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        padding-top: 140px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index__hero-title {
        font-size: 32px;
    }
    .page-index__hero-description {
        font-size: 16px;
    }
    .page-index__cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }
    .page-index__page-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-index__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-index__container {
        padding: 0 15px;
    }
    .page-index__game-card {
        padding: 15px;
    }
    .page-index__segment-1 {
        padding-top: 0;
        margin-top: 0;
        border-top: none;
    }
    .page-index__game-icon {
        max-width: 60px;
    }
    .page-index__rank-badge {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .page-index__game-name {
        font-size: 18px;
    }
    .page-index__game-description {
        font-size: 12px;
    }
    .page-index__game-rating {
        font-size: 14px;
    }
    .page-index__promotion-text {
        font-size: 12px;
    }
    .page-index__segment-4 {
        padding-left: 10px;
        padding-right: 10px;
    }
    .page-index__btn-download, .page-index__btn-review {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        min-width: auto !important;
    }
    .page-index__review-content-section {
        padding: 30px 0;
    }
    .page-index__review-content-card {
        padding: 25px 20px;
    }
    .page-index__review-title {
        font-size: 24px;
    }
    .page-index__review-body h3 {
        font-size: 18px;
    }
    .page-index__review-body p {
        font-size: 15px;
    }
    .page-index__grid-item, .page-index__game-card-item, .page-index__promotion-card, .page-index__blog-card {
        padding: 20px;
    }
    .page-index__intro-image {
        max-width: 120px;
    }
    .page-index__intro-heading {
        font-size: 20px;
    }
    .page-index__grid-item p {
        font-size: 15px;
    }
    .page-index__game-type-image {
        height: 150px;
    }
    .page-index__game-type-title {
        font-size: 20px;
    }
    .page-index__btn-promo, .page-index__game-type-link {
        padding: 10px 20px;
        font-size: 14px;
    }
    .page-index__promotion-image {
        height: 150px;
    }
    .page-index__promotion-title {
        font-size: 20px;
    }
    .page-index__blog-image {
        height: 180px;
    }
    .page-index__blog-title {
        font-size: 18px;
    }
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-index__section, .page-index__card, .page-index__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}