/**
 * Games Hub Page Styles
 *
 * Modern styling for the games hub matching FFoA homepage design
 *
 * @package FFOA_Custom
 * @since 1.1.0
 */

/* ============================================================
   GAMES PAGE BACKGROUND
   ============================================================ */

.games-hub-page {
    background-color: #1a2340 !important;
    background-image: url('../images/Gemini_Generated_Image_m9ub24m9ub24m9ub.png') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

/* ============================================================
   GAMES HERO SECTION
   ============================================================ */

.games-hero-section {
    padding: 4rem 0 3rem;
    text-align: center;
    background: rgba(34, 46, 81, 0.75);
    color: #ffffff;
}

.games-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.games-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

.games-hero-subtitle {
    font-size: 1.5rem;
    color: #C2B97F;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.games-hero-description {
    font-size: 1.125rem;
    color: #f0f0f0;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .games-hero-title {
        font-size: 2.25rem;
    }

    .games-hero-subtitle {
        font-size: 1.25rem;
    }

    .games-hero-description {
        font-size: 1rem;
    }

    .games-hero-section {
        padding: 3rem 0 2rem;
    }
}

/* ============================================================
   GAMES SECTIONS
   ============================================================ */

.games-section {
    padding: 4rem 0;
}

.games-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.games-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    position: relative;
    padding-bottom: 1rem;
}

.games-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #C2B97F;
    border-radius: 2px;
}

/* ============================================================
   GAMES GRID
   ============================================================ */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .games-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ============================================================
   GAME CARDS
   ============================================================ */

.game-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(232, 232, 232, 0.6);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(34, 46, 81, 0.25);
    border-color: #C2B97F;
    background: rgba(255, 255, 255, 0.7);
}

/* Game Card Image */
.game-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.game-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

/* Game Card Content */
.game-card-content {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222E51;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.game-card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Game Metadata */
.game-card-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.game-difficulty,
.game-time {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.game-difficulty.beginner {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.game-difficulty.intermediate {
    background: rgba(255, 152, 0, 0.15);
    color: #e65100;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.game-difficulty.advanced {
    background: rgba(244, 67, 54, 0.15);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.game-difficulty.all-levels {
    background: rgba(33, 150, 243, 0.15);
    color: #1565c0;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.game-time {
    background: rgba(158, 158, 158, 0.15);
    color: #424242;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

/* Game Skills */
.game-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    font-size: 0.8rem;
    background: rgba(194, 185, 127, 0.2);
    color: #5a5341;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Game Button */
.game-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #C2B97F;
    color: #ffffff;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(194, 185, 127, 0.3);
    margin-top: auto;
}

.game-card-button:hover {
    background: #a99b65;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(194, 185, 127, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.game-card-button .button-arrow {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.game-card-button:hover .button-arrow {
    transform: translateX(4px);
}

/* ============================================================
   COMING SOON SECTION
   ============================================================ */

.games-coming-soon {
    background: rgba(34, 46, 81, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.coming-soon-message {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.coming-soon-message p {
    font-size: 1.125rem;
    color: #222E51;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.upcoming-games-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upcoming-games-list li {
    font-size: 1rem;
    color: #666;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(232, 232, 232, 0.6);
    font-weight: 500;
}

.upcoming-games-list li:last-child {
    border-bottom: none;
}

.upcoming-games-list li::before {
    content: '🎮';
    margin-right: 0.75rem;
}

/* ============================================================
   MOBILE OPTIMIZATIONS
   ============================================================ */

@media (max-width: 767px) {
    .games-section {
        padding: 3rem 0;
    }

    .games-section-title {
        font-size: 1.875rem;
        margin-bottom: 2rem;
    }

    .game-card-image {
        height: 180px;
        padding: 1rem;
    }

    .game-card-content {
        padding: 1.5rem 1.25rem;
    }

    .game-card-title {
        font-size: 1.25rem;
    }

    .game-card-description {
        font-size: 0.9rem;
    }

    .coming-soon-message {
        padding: 2rem 1.5rem;
    }

    .coming-soon-message p {
        font-size: 1rem;
    }

    .upcoming-games-list li {
        font-size: 0.95rem;
    }
}
