/* style/index.css */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #E74C3C;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f1f3f5;
    --border-light: #e0e0e0;
    --accent-blue: #0066cc;
    --accent-dark-blue: #004499;
}

.page-index {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    background: var(--dark-bg-1); /* Assume dark background from shared.css */
}

/* 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), var(--secondary-color)); /* Ensure strong contrast with text */
    color: var(--text-light);
}

.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;
}

.page-index__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

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

.page-index__hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: bold;
    line-height: 1.2;
}

.page-index__hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.5;
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-index__cta-button:hover {
    background: #c0392b; /* Darker secondary color */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Game Leaderboard Section */
.page-index__game-leaderboard-section {
    padding: 60px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
}

.page-index__page-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

.page-index__game-leaderboard {
    max-width: 1400px; /* Wider for better content display */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-index__game-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-light);
}

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

.page-index__game-card-segment {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.page-index__game-card-segment:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: 1px;
    background-color: var(--border-light);
}

.page-index__segment-1 {
    min-width: 120px;
    max-width: 150px;
    padding-left: 0;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-index__rank-badge {
    position: absolute;
    top: -10px; /* Adjust based on desired position */
    left: 10px; /* Adjust based on desired position */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-index__game-icon {
    max-width: 100px;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-top: 10px; /* Space for badge if needed */
    object-fit: contain;
}

.page-index__segment-2 {
    flex: 2;
    min-width: 250px;
}

.page-index__game-name {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
    text-align: center;
    text-transform: uppercase;
}

.page-index__game-name-link {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

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

.page-index__game-description {
    font-size: 14px;
    color: #000000;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 0;
}

.page-index__game-description a {
    color: var(--accent-blue);
    font-weight: bold;
    text-decoration: none;
}

.page-index__game-description a:hover {
    color: var(--accent-dark-blue);
    text-decoration: underline;
}

.page-index__segment-3 {
    min-width: 180px;
    flex-shrink: 0;
}

.page-index__game-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.page-index__stars {
    color: #FFD700;
    font-size: 20px;
    margin-right: 5px;
    font-weight: bold;
}

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

.page-index__promotion-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.page-index__promotion-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: bold;
    margin-right: 5px;
}

.page-index__promotion-link:hover {
    color: var(--accent-dark-blue);
    text-decoration: underline;
}

.page-index__hot-badge {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-index__segment-4 {
    min-width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-index__btn-download,
.page-index__btn-review {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__btn-download {
    background: var(--secondary-color);
    color: var(--text-light);
}

.page-index__btn-download:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.page-index__btn-review {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-index__btn-review:hover {
    background: #1a2a38;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Brand Review Content Section */
.page-index__review-content-section {
  padding: 40px 20px;
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-index__review-content-container {
  max-width: 1400px; 
  margin: 0 auto;
}

.page-index__review-content-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  border: 1px solid var(--border-light);
}

.page-index__review-content-card h2 {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 24px;
  text-align: center;
}

.page-index__review-content-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-index__review-body {
  color: var(--text-dark);
  line-height: 1.7;
}

.page-index__review-body p {
  margin-bottom: 16px;
  font-size: 16px;
}

/* Homepage Introduction Section */
.page-index__intro-section {
    padding: 60px 20px;
    background: var(--dark-bg-1); /* Use body background for contrast */
    color: var(--text-light);
}

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

.page-index__card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

.page-index__intro-section .page-index__card {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark bg */
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__intro-section .page-index__card h2 {
    color: var(--text-light);
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.page-index__content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.page-index__intro-image {
    flex: 0 0 40%;
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-index__text-content {
    flex: 1;
    line-height: 1.7;
    font-size: 16px;
}

.page-index__text-content p {
    margin-bottom: 15px;
}

.page-index__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border: none;
}

.page-index__btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Core Game/Service Introduction Section */
.page-index__games-section {
    padding: 60px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
}

.page-index__games-section h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-index__section-description {
    font-size: 18px;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.page-index__game-item {
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-index__game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-index__game-item-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index__game-item h3 {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-index__game-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
}

.page-index__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-index__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 60px 20px;
    background: var(--dark-bg-1);
    color: var(--text-light);
    text-align: center;
}

.page-index__promotions-section h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-index__promotions-section .page-index__section-description {
    color: #cccccc;
}

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

.page-index__promotion-item {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__promotion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index__promotion-item h3 {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 10px;
}

.page-index__promotion-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 20px;
}

/* Latest Blog Content Section */
.page-index__blog-section {
    padding: 60px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
}

.page-index__blog-section h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.page-index__blog-post {
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease;
}

.page-index__blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.page-index__blog-summary {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.page-index__read-more {
    display: inline-block;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-index__read-more:hover {
    color: var(--accent-dark-blue);
    text-decoration: underline;
}

.page-index__post-date {
    display: block;
    font-size: 13px;
    color: #999999;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-content h1 {
        font-size: 36px;
    }
    .page-index__hero-content p {
        font-size: 18px;
    }
    .page-index__page-title {
        font-size: 32px;
    }
    .page-index__game-card {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px;
    }
    .page-index__game-card-segment {
        padding: 10px;
        border-left: none !important;
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
    }
    .page-index__game-card-segment:not(:first-child)::before {
        display: none;
    }
    .page-index__segment-1, .page-index__segment-3, .page-index__segment-4 {
        max-width: none;
        min-width: unset;
    }
    .page-index__segment-1 {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
    }
    .page-index__rank-badge {
        position: static;
        margin-right: 10px;
        top: unset;
        left: unset;
    }
    .page-index__game-icon {
        max-width: 80px;
        margin-top: 0;
    }
    .page-index__segment-2 {
        order: -1; /* Move game name/desc to top */
        margin-bottom: 10px;
    }
    .page-index__game-name {
        font-size: 22px;
    }
    .page-index__game-description {
        font-size: 13px;
    }
    .page-index__btn-download, .page-index__btn-review {
        font-size: 14px;
        padding: 10px 15px;
    }
    .page-index__content-wrapper {
        flex-direction: column;
    }
    .page-index__intro-image {
        max-width: 100%;
        flex: none;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        padding-top: 160px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index__hero-content h1 {
        font-size: 28px;
    }
    .page-index__hero-content p {
        font-size: 16px;
    }
    .page-index__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .page-index__game-leaderboard-section,
    .page-index__review-content-section,
    .page-index__intro-section,
    .page-index__games-section,
    .page-index__promotions-section,
    .page-index__blog-section {
        padding: 30px 15px;
    }
    
    .page-index__page-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-index__game-card {
        padding: 10px;
    }
    .page-index__rank-badge {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    .page-index__game-icon {
        max-width: 60px;
    }
    .page-index__game-name {
        font-size: 18px;
    }
    .page-index__game-description {
        font-size: 12px;
    }
    .page-index__stars {
        font-size: 18px;
    }
    .page-index__rating-number {
        font-size: 16px;
    }
    .page-index__promotion-text,
    .page-index__promotion-link,
    .page-index__hot-badge {
        font-size: 11px;
    }
    .page-index__segment-4 {
        padding-left: 10px;
        padding-right: 10px;
    }
    .page-index__btn-download,
    .page-index__btn-review {
        font-size: 12px;
        padding: 8px 12px;
        max-width: 100% !important;
        width: 100% !important;
        min-width: auto;
    }

    .page-index__review-content-card {
        padding: 25px 20px;
    }
    .page-index__review-content-card h2 {
        font-size: 24px;
    }
    .page-index__review-content-card h3 {
        font-size: 18px;
    }
    .page-index__review-body p {
        font-size: 15px;
    }

    .page-index__intro-section .page-index__card h2 {
        font-size: 26px;
    }
    .page-index__card {
        padding: 25px;
    }
    .page-index__intro-image {
        height: 180px;
    }
    .page-index__text-content {
        font-size: 15px;
    }

    .page-index__games-section h2,
    .page-index__promotions-section h2,
    .page-index__blog-section h2 {
        font-size: 26px;
    }
    .page-index__section-description {
        font-size: 16px;
    }
    .page-index__game-item-image,
    .page-index__promotion-image,
    .page-index__blog-image {
        height: 180px;
    }
    .page-index__game-item h3,
    .page-index__promotion-item h3,
    .page-index__blog-content h3 {
        font-size: 19px;
    }
    .page-index__game-item p,
    .page-index__promotion-item p,
    .page-index__blog-summary {
        font-size: 14px;
    }
    .page-index__btn-secondary {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Ensure all images are responsive and prevent overflow */
    .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;
    }
}