/* style/game-arena.css */

/* Base Styles for Page Game Arena */
.page-game-arena {
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--black-color); /* Inherit from shared.css, which is dark */
}

/* Ensure text is visible on dark body background */
.page-game-arena__dark-bg {
    color: #ffffff;
    background-color: #26A9E0;
}

.page-game-arena__light-bg {
    color: #333333;
    background-color: #ffffff;
}

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

.page-game-arena__section-title {
    font-size: 3em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.page-game-arena__section-description {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

/* Buttons */
.page-game-arena__btn-primary,
.page-game-arena__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

.page-game-arena__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-game-arena__btn-primary:hover {
    background-color: #1a7fb2;
    border-color: #1a7fb2;
}

.page-game-arena__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-game-arena__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-game-arena__btn-text {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-game-arena__btn-text:hover {
    color: #1a7fb2;
    text-decoration: underline;
}

/* Hero Section */
.page-game-arena__hero-section {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    box-sizing: border-box;
}

.page-game-arena__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-game-arena__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-game-arena__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-game-arena__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    line-height: 1.5;
}

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

/* Introduction Section */
.page-game-arena__introduction-section {
    padding: 80px 0;
}

.page-game-arena__intro-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-game-arena__intro-text {
    flex: 1;
    line-height: 1.8;
}

.page-game-arena__intro-text p {
    margin-bottom: 20px;
}

.page-game-arena__intro-image {
    flex: 1;
    text-align: center;
}

.page-game-arena__intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Game Types Section */
.page-game-arena__game-types-section {
    padding: 80px 0;
}

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

.page-game-arena__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-game-arena__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-game-arena__card-content {
    padding: 25px;
}

.page-game-arena__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-game-arena__card-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Benefits Section */
.page-game-arena__benefits-section {
    padding: 80px 0;
}

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

.page-game-arena__benefit-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #f9f9f9;
}

.page-game-arena__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-game-arena__benefit-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-game-arena__benefit-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Getting Started Section */
.page-game-arena__getting-started-section {
    padding: 80px 0;
}

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

.page-game-arena__step-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-arena__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #26A9E0;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.page-game-arena__step-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-game-arena__step-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* FAQ Section */
.page-game-arena__faq-section {
    padding: 80px 0;
}

.page-game-arena__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-game-arena__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-game-arena__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-game-arena__faq-question:hover {
    background-color: #f0f0f0;
}

.page-game-arena__faq-question-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    margin: 0;
}

.page-game-arena__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-game-arena__faq-item.active .page-game-arena__faq-toggle {
    transform: rotate(45deg);
}

.page-game-arena__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
}

.page-game-arena__faq-item.active .page-game-arena__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px;
}

.page-game-arena__faq-answer p {
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-arena__hero-title {
        font-size: 3em;
    }
    .page-game-arena__hero-description {
        font-size: 1.2em;
    }
    .page-game-arena__section-title {
        font-size: 2.5em;
    }
    .page-game-arena__intro-grid {
        flex-direction: column;
    }
    .page-game-arena__intro-image {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-game-arena__container {
        padding: 15px;
    }
    .page-game-arena__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header for mobile */
    }
    .page-game-arena__hero-title {
        font-size: 2.2em;
    }
    .page-game-arena__hero-description {
        font-size: 1em;
    }
    .page-game-arena__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-arena__btn-primary,
    .page-game-arena__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
    }
    .page-game-arena__section-title {
        font-size: 2em;
    }
    .page-game-arena__section-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-game-arena__game-cards-grid,
    .page-game-arena__benefits-grid,
    .page-game-arena__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-game-arena__card-image {
        height: 200px;
    }
    .page-game-arena__card-title {
        font-size: 1.3em;
    }
    .page-game-arena__benefit-title {
        font-size: 1.2em;
    }
    .page-game-arena__step-title {
        font-size: 1.5em;
    }
    .page-game-arena__faq-question {
        padding: 15px 20px;
    }
    .page-game-arena__faq-question-text {
        font-size: 1em;
    }
    .page-game-arena__faq-answer {
        padding: 0 20px;
    }
    .page-game-arena__faq-item.active .page-game-arena__faq-answer {
        padding: 15px 20px;
    }
    /* Mobile image responsiveness */
    .page-game-arena img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-game-arena__section,
    .page-game-arena__card,
    .page-game-arena__container,
    .page-game-arena__intro-image,
    .page-game-arena__hero-buttons,
    .page-game-arena__game-cards-grid,
    .page-game-arena__benefits-grid,
    .page-game-arena__steps-grid,
    .page-game-arena__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden;
    }
    .page-game-arena__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-game-arena__hero-title {
        font-size: 1.8em;
    }
    .page-game-arena__hero-description {
        font-size: 0.9em;
    }
    .page-game-arena__section-title {
        font-size: 1.8em;
    }
    .page-game-arena__section-description {
        font-size: 0.9em;
    }
    .page-game-arena__game-card {
        margin: 0;
    }
    .page-game-arena__benefit-item,
    .page-game-arena__step-item {
        padding: 20px;
    }
}