/* style/top-exchange-card-games.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #4B0082; /* Deep Purple */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f1f3f5;
    --border-light: #e0e0e0;
}

.page-top-exchange-card-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Assuming shared.css defines --dark-bg-1 as a dark color */
}

/* HERO Section */
.page-top-exchange-card-games__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(--secondary-color) 0%, #6a0dad 100%); /* Deep Purple gradient */
    color: var(--text-light);
    overflow: hidden;
}

.page-top-exchange-card-games__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-top-exchange-card-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-top-exchange-card-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-top-exchange-card-games__hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-top-exchange-card-games__hero-content p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-top-exchange-card-games__cta-button:hover {
    background: #FFC107; /* Lighter gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-top-exchange-card-games__page-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 40px;
    text-align: center;
}

.page-top-exchange-card-games__game-leaderboard {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.page-top-exchange-card-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-top-exchange-card-games__game-card-segment {
    padding: 0 20px;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 100px; /* Ensure consistent height */
}

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

.page-top-exchange-card-games__segment-1 {
    flex-shrink: 0;
    width: 150px;
    flex-direction: column;
    justify-content: center;
    padding-left: 0;
    padding-right: 20px;
}

.page-top-exchange-card-games__rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Default orange */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-top-exchange-card-games__game-icon {
    max-width: 100px;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: contain;
}

.page-top-exchange-card-games__segment-2 {
    flex: 2;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

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

.page-top-exchange-card-games__game-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-top-exchange-card-games__game-name-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-top-exchange-card-games__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;
}

.page-top-exchange-card-games__game-description a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

.page-top-exchange-card-games__game-description a:hover {
    color: #004499;
    text-decoration: underline;
}

.page-top-exchange-card-games__segment-3 {
    flex-shrink: 0;
    width: 180px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.page-top-exchange-card-games__game-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.page-top-exchange-card-games__stars {
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 5px;
    font-weight: bold;
}

.page-top-exchange-card-games__rating-number {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: bold;
}

.page-top-exchange-card-games__promotion-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #0066cc;
    font-weight: bold;
}

.page-top-exchange-card-games__promotion-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-top-exchange-card-games__promotion-link:hover {
    color: #004499;
    text-decoration: underline;
}

.page-top-exchange-card-games__hot-badge {
    background-color: #ff4d4f;
    color: var(--text-light);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.page-top-exchange-card-games__segment-4 {
    flex-shrink: 0;
    width: 200px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    display: flex;
    text-align: center;
}

.page-top-exchange-card-games__cta-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
}

.page-top-exchange-card-games__cta-button:hover {
    background: #6a0dad; /* Darker purple */
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.page-top-exchange-card-games__btn-download {
    background: var(--primary-color);
}

.page-top-exchange-card-games__btn-download:hover {
    background: #FFC107;
}

/* Brand Review Content Section */
.page-top-exchange-card-games__review-content-section {
  padding: 40px 20px;
  background: var(--bg-light);
}

.page-top-exchange-card-games__review-content-container {
  max-width: 1400px; /* Wider for better readability */
  margin: 0 auto;
}

.page-top-exchange-card-games__review-content-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  color: var(--text-dark);
}

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

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

.page-top-exchange-card-games__review-body {
  color: var(--text-dark);
  line-height: 1.7;
}

.page-top-exchange-card-games__review-body p {
  margin-bottom: 16px;
  font-size: 16px;
}

/* Homepage Introduction Section */
.page-top-exchange-card-games__intro-section {
    padding: 40px 20px;
    background: var(--dark-bg-1);
    color: var(--text-light);
}

.page-top-exchange-card-games__intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-top-exchange-card-games__intro-card {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-top-exchange-card-games__intro-image {
    max-width: 300px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.page-top-exchange-card-games__intro-card h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-top-exchange-card-games__intro-card h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-light);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-top-exchange-card-games__intro-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* Core Game/Service Introduction Section */
.page-top-exchange-card-games__core-games-section {
    padding: 40px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.page-top-exchange-card-games__core-games-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-top-exchange-card-games__core-games-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-top-exchange-card-games__core-games-image {
    max-width: 400px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.page-top-exchange-card-games__core-games-card h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-top-exchange-card-games__core-games-card h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-top-exchange-card-games__core-games-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Promotion Activities Section */
.page-top-exchange-card-games__promotions-section {
    padding: 40px 20px;
    background: var(--dark-bg-1);
    color: var(--text-light);
}

.page-top-exchange-card-games__promotions-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-top-exchange-card-games__promotions-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-top-exchange-card-games__promotions-image {
    max-width: 350px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.page-top-exchange-card-games__promotions-card h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-top-exchange-card-games__promotions-card h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-light);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-top-exchange-card-games__promotions-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* Latest Blog Content Section */
.page-top-exchange-card-games__blog-section {
    padding: 40px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.page-top-exchange-card-games__blog-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-top-exchange-card-games__blog-container h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

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

.page-top-exchange-card-games__blog-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-top-exchange-card-games__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-top-exchange-card-games__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-top-exchange-card-games__blog-content {
    padding: 20px;
}

.page-top-exchange-card-games__blog-content h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.page-top-exchange-card-games__blog-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-top-exchange-card-games__blog-content h3 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-top-exchange-card-games__blog-content p {
    font-size: 15px;
    line-height: 1.5;
    color: #666666;
    margin-bottom: 15px;
}

.page-top-exchange-card-games__blog-readmore {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-top-exchange-card-games__blog-readmore:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-top-exchange-card-games__hero-content h1 {
        font-size: 40px;
    }
    .page-top-exchange-card-games__hero-content p {
        font-size: 18px;
    }
    .page-top-exchange-card-games__page-title {
        font-size: 30px;
    }
    .page-top-exchange-card-games__game-card-segment {
        padding: 0 15px;
    }
    .page-top-exchange-card-games__game-name {
        font-size: 20px;
    }
    .page-top-exchange-card-games__game-description {
        font-size: 13px;
    }
    .page-top-exchange-card-games__segment-1 {
        width: 120px;
    }
    .page-top-exchange-card-games__game-icon {
        max-width: 80px;
    }
    .page-top-exchange-card-games__segment-3 {
        width: 150px;
    }
    .page-top-exchange-card-games__segment-4 {
        width: 180px;
    }
    .page-top-exchange-card-games__cta-button {
        font-size: 15px;
        padding: 10px 15px;
    }
    .page-top-exchange-card-games__review-content-card h2,
    .page-top-exchange-card-games__intro-card h2,
    .page-top-exchange-card-games__core-games-card h2,
    .page-top-exchange-card-games__promotions-card h2,
    .page-top-exchange-card-games__blog-container h2 {
        font-size: 28px;
    }
    .page-top-exchange-card-games__review-content-card h3,
    .page-top-exchange-card-games__intro-card h3,
    .page-top-exchange-card-games__core-games-card h3,
    .page-top-exchange-card-games__promotions-card h3 {
        font-size: 20px;
    }
}

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

    .page-top-exchange-card-games__game-leaderboard-section {
        padding: 20px 15px;
    }
    .page-top-exchange-card-games__page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-top-exchange-card-games__game-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .page-top-exchange-card-games__game-card-segment {
        width: 100% !important;
        padding: 10px 0 !important;
        border-left: none !important;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: auto;
    }
    .page-top-exchange-card-games__game-card-segment:not(:first-child)::before {
        display: none;
    }
    .page-top-exchange-card-games__segment-1 {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        padding-left: 0;
        position: relative;
    }
    .page-top-exchange-card-games__rank-badge {
        position: static;
        margin-right: 10px;
        width: 24px;
        height: 24px;
        font-size: 14px;
        flex-shrink: 0;
    }
    .page-top-exchange-card-games__game-icon {
        max-width: 60px;
        margin-top: 0;
        margin-left: auto;
        margin-right: auto;
    }
    .page-top-exchange-card-games__segment-2 {
        text-align: left;
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .page-top-exchange-card-games__game-name {
        font-size: 18px;
        text-align: left;
    }
    .page-top-exchange-card-games__game-description {
        font-size: 12px;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .page-top-exchange-card-games__segment-3 {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .page-top-exchange-card-games__game-rating,
    .page-top-exchange-card-games__promotion-text {
        justify-content: flex-start;
    }
    .page-top-exchange-card-games__segment-4 {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .page-top-exchange-card-games__btn-download,
    .page-top-exchange-card-games__btn-review {
        flex: 1 1 calc(50% - 5px);
        max-width: calc(50% - 5px) !important;
        width: 100% !important;
        font-size: 12px;
        padding: 8px 12px;
        white-space: normal;
        word-wrap: break-word;
        min-width: auto;
    }

    .page-top-exchange-card-games__review-content-section,
    .page-top-exchange-card-games__intro-section,
    .page-top-exchange-card-games__core-games-section,
    .page-top-exchange-card-games__promotions-section,
    .page-top-exchange-card-games__blog-section {
        padding: 20px 15px;
    }
    .page-top-exchange-card-games__review-content-card,
    .page-top-exchange-card-games__intro-card,
    .page-top-exchange-card-games__core-games-card,
    .page-top-exchange-card-games__promotions-card {
        padding: 24px 20px;
    }
    .page-top-exchange-card-games__review-content-card h2,
    .page-top-exchange-card-games__intro-card h2,
    .page-top-exchange-card-games__core-games-card h2,
    .page-top-exchange-card-games__promotions-card h2,
    .page-top-exchange-card-games__blog-container h2 {
        font-size: 24px;
    }
    .page-top-exchange-card-games__review-content-card h3,
    .page-top-exchange-card-games__intro-card h3,
    .page-top-exchange-card-games__core-games-card h3,
    .page-top-exchange-card-games__promotions-card h3 {
        font-size: 18px;
    }
    .page-top-exchange-card-games__review-body p,
    .page-top-exchange-card-games__intro-card p,
    .page-top-exchange-card-games__core-games-card p,
    .page-top-exchange-card-games__promotions-card p {
        font-size: 15px;
    }
    .page-top-exchange-card-games__blog-grid {
        grid-template-columns: 1fr;
    }
    .page-top-exchange-card-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-top-exchange-card-games__section,
    .page-top-exchange-card-games__card,
    .page-top-exchange-card-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-top-exchange-card-games__hero-content h1 {
        font-size: 28px;
    }
    .page-top-exchange-card-games__cta-button {
        font-size: 14px;
        padding: 10px 25px;
    }
    .page-top-exchange-card-games__page-title {
        font-size: 20px;
    }
    .page-top-exchange-card-games__game-name {
        font-size: 16px;
    }
    .page-top-exchange-card-games__game-description {
        font-size: 11px;
    }
    .page-top-exchange-card-games__btn-download,
    .page-top-exchange-card-games__btn-review {
        font-size: 11px;
        padding: 7px 10px;
    }
}