/* style/arcade-games.css */

:root {
    --phdream-primary: #F2C14E;
    --phdream-secondary: #FFD36B;
    --phdream-card-bg: #111111;
    --phdream-background: #0A0A0A;
    --phdream-text-main: #FFF6D6;
    --phdream-border: #3A2A12;
    --phdream-glow: #FFD36B;
    --phdream-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-arcade-games {
    font-family: 'Arial', sans-serif;
    color: var(--phdream-text-main); /* Default text color for dark background */
    background-color: var(--phdream-background); /* Assumed body background from shared.css */
}

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

.page-arcade-games__section-title {
    font-size: clamp(2em, 5vw, 3em);
    font-weight: 700;
    color: var(--phdream-primary);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-arcade-games__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 246, 214, 0.8);
}

.page-arcade-games__btn-primary,
.page-arcade-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-arcade-games__btn-primary {
    background: var(--phdream-btn-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-arcade-games__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-arcade-games__btn-secondary {
    background: transparent;
    color: var(--phdream-primary);
    border: 2px solid var(--phdream-primary);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-arcade-games__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-arcade-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-arcade-games__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-arcade-games__card {
    background-color: var(--phdream-card-bg);
    border: 1px solid var(--phdream-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--phdream-text-main);
}

.page-arcade-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.page-arcade-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--phdream-background);
}

.page-arcade-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
}

.page-arcade-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-arcade-games__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly with image for visual flow */
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, var(--phdream-background) 30%, var(--phdream-background) 100%);
}

.page-arcade-games__main-title {
    font-size: clamp(2.8em, 6vw, 4.5em);
    font-weight: 900;
    color: var(--phdream-secondary);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-arcade-games__hero-description {
    font-size: 1.3em;
    color: rgba(255, 246, 214, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Intro Section */
.page-arcade-games__intro-section {
    padding: 80px 0;
}

.page-arcade-games__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-arcade-games__text-block {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.7;
    color: rgba(255, 246, 214, 0.85);
}

.page-arcade-games__text-block p {
    margin-bottom: 1em;
}

.page-arcade-games__image-block {
    flex: 1;
    min-width: 300px;
}

.page-arcade-games__image-block img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--phdream-primary);
}

/* Features Section */
.page-arcade-games__features-section {
    padding: 80px 0;
    background-color: var(--phdream-background); /* Ensure consistent dark background */
}

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

.page-arcade-games__feature-card {
    text-align: center;
}

.page-arcade-games__feature-card img {
    margin-bottom: 15px;
     /* Ensure icons are not too small */
    
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--phdream-secondary));
}

.page-arcade-games__feature-card .page-arcade-games__card-title {
    font-size: 1.4em;
    color: var(--phdream-primary);
    margin-bottom: 10px;
}

.page-arcade-games__feature-card p {
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 246, 214, 0.75);
}

/* Categories Section */
.page-arcade-games__categories-section {
    padding: 80px 0;
}

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

.page-arcade-games__category-item {
    text-align: center;
}

.page-arcade-games__category-item img {
    margin-bottom: 15px;
     /* Enforce minimum icon size */
    
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--phdream-secondary));
}

.page-arcade-games__category-name {
    font-size: 1.3em;
    color: var(--phdream-secondary);
    margin-bottom: 10px;
}

.page-arcade-games__category-item p {
    font-size: 0.95em;
    line-height: 1.5;
    color: rgba(255, 246, 214, 0.7);
}

/* Featured Games Section */
.page-arcade-games__featured-games-section {
    padding: 80px 0;
    background-color: var(--phdream-background);
}

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

.page-arcade-games__game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-arcade-games__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--phdream-border);
}

.page-arcade-games__game-title {
    font-size: 1.5em;
    color: var(--phdream-primary);
    margin-bottom: 10px;
}

.page-arcade-games__game-description {
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 246, 214, 0.75);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-arcade-games__game-card .page-arcade-games__btn-secondary {
    width: fit-content;
    padding: 10px 25px;
    margin-top: auto; /* Push button to bottom */
}

/* How to Play Section */
.page-arcade-games__how-to-play-section {
    padding: 80px 0;
}

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

.page-arcade-games__step-card {
    text-align: center;
    position: relative;
    padding-top: 50px;
}

.page-arcade-games__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--phdream-btn-gradient);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: 700;
    border: 3px solid var(--phdream-border);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.5);
}

.page-arcade-games__step-card .page-arcade-games__card-title {
    margin-top: 15px;
    color: var(--phdream-primary);
}

/* Responsible Gaming Section */
.page-arcade-games__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--phdream-background);
}

.page-arcade-games__responsible-gaming-section p {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: rgba(255, 246, 214, 0.85);
}

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

.page-arcade-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-arcade-games__faq-item {
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--phdream-border);
    background-color: var(--phdream-card-bg);
}

.page-arcade-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1a1a1a;
    border-bottom: 1px solid var(--phdream-border);
}

.page-arcade-games__faq-question:hover {
    background-color: #222222;
}

.page-arcade-games__faq-title {
    font-size: 1.2em;
    color: var(--phdream-primary);
    margin: 0;
}

.page-arcade-games__faq-toggle {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--phdream-secondary);
    transition: transform 0.3s ease;
}

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

.page-arcade-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 246, 214, 0.75);
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px;
}

.page-arcade-games__faq-answer p {
    margin: 0;
}

/* Bottom CTA Section */
.page-arcade-games__cta-section-bottom {
    padding: 80px 0;
    text-align: center;
}

.page-arcade-games__cta-section-bottom .page-arcade-games__cta-buttons {
    margin-top: 50px;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .page-arcade-games__content-wrapper {
        flex-direction: column;
    }
    .page-arcade-games__image-block {
        margin-top: 30px;
    }
    .page-arcade-games__hero-content {
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    .page-arcade-games__hero-content {
        padding: 30px 15px;
        margin-top: -40px;
    }
    .page-arcade-games__main-title {
        font-size: clamp(2em, 8vw, 3em);
    }
    .page-arcade-games__hero-description,
    .page-arcade-games__section-description,
    .page-arcade-games__text-block p,
    .page-arcade-games__responsible-gaming-section p {
        font-size: 1em;
    }
    .page-arcade-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade-games__btn-primary,
    .page-arcade-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }
    .page-arcade-games__features-grid,
    .page-arcade-games__category-grid,
    .page-arcade-games__game-grid,
    .page-arcade-games__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-arcade-games__container,
    .page-arcade-games__card,
    .page-arcade-games__faq-item {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-arcade-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-arcade-games__hero-image-wrapper {
        max-height: 400px;
    }
    .page-arcade-games__game-card img {
        
    }
    .page-arcade-games__section-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-arcade-games__faq-question {
        padding: 15px 20px;
    }
    .page-arcade-games__faq-answer {
        padding: 0 20px;
    }
    .page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
        padding: 15px 20px 20px;
    }
    .page-arcade-games__feature-card img,
    .page-arcade-games__category-item img {
        
        
    }
    .page-arcade-games__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }
    .page-arcade-games__step-card {
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    .page-arcade-games__hero-content {
        margin-top: -30px;
    }
    .page-arcade-games__hero-description {
        font-size: 0.95em;
    }
    .page-arcade-games__main-title {
        font-size: clamp(1.8em, 9vw, 2.5em);
    }
    .page-arcade-games__section-title {
        font-size: clamp(1.6em, 8vw, 2.2em);
    }
    .page-arcade-games__btn-primary,
    .page-arcade-games__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}

/* Color Contrast Classes (for dynamic application if needed) */
.page-arcade-games__dark-bg {
    background-color: var(--phdream-background);
    color: var(--phdream-text-main);
}

.page-arcade-games__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    color: var(--phdream-text-main);
}

.page-arcade-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-arcade-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}