/* ===================================
   GAME PAGE COMMON STYLES
   =================================== */

.game-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-page main {
    flex: 1;
}

.game-header {
    background: white;
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.game-header h1 {
    font-size: 1.25rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.15rem;
}

.game-header p {
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ===================================
   GAME CONTAINER
   =================================== */

.game-container {
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
    margin: 0 auto 0.5rem;
    max-width: 900px;
}

.game-board {
    margin: 0.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===================================
   GAME CONTROLS
   =================================== */

.game-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 0.25rem 0;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.25rem 0;
    flex-wrap: wrap;
}

.info-item {
    background: var(--background);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    text-align: center;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
}

.info-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--accent-color);
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: #555;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===================================
   GAME CONTENT SECTIONS
   =================================== */

.game-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* ===================================
   RELATED GAMES
   =================================== */

.related-games {
    padding: 2rem 0;
}

.related-games h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.related-games .game-grid {
    max-width: 900px;
    margin: 0 auto;
}

/* ===================================
   MODAL / OVERLAY
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .game-container {
        padding: 1rem;
    }

    .game-header h1 {
        font-size: 1.5rem;
    }

    .game-controls {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .game-info {
        gap: 1rem;
    }

    .info-item {
        padding: 0.4rem 0.8rem;
    }

    .info-value {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===================================
   RELATED CONTENT SECTION
   =================================== */

.related-content {
    background: rgba(0,0,0,0.2);
    padding: 40px 20px;
    margin-top: 40px;
}

.related-content h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
}

.related-card h3 {
    color: #fff;
    margin-bottom: 10px;
}

.related-card p {
    color: #ddd;
    margin-bottom: 15px;
}

.related-card a {
    color: #4CAF50;
}

.btn-link {
    display: inline-block;
    padding: 8px 16px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: 600;
}

.btn-link:hover {
    background: #000000;
}
