/* wordle game page: carried over from template-wordle.php's inline <style> (2026-11-09, block pages). Loaded in the head on a page with this game's block. */
.single-game-page {
    padding: 2rem 0 4rem;
}

.game-breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.game-breadcrumb a {
    color: var(--theme-primary-color);
    text-decoration: none;
}

.game-breadcrumb a:hover {
    text-decoration: underline;
}

.game-breadcrumb .separator {
    margin: 0 0.5rem;
    color: #999;
}

.game-breadcrumb .current {
    color: var(--text-color);
}

.single-game-page .wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.game-page-content {
    display: flex;
    justify-content: center;
}

.game-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .game-info-card {
    background: #1e1e1e;
}

.game-info-card h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-info-card ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #666;
}

[data-theme="dark"] .game-info-card ul {
    color: #999;
}

.game-info-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.game-info-card li:last-child {
    margin-bottom: 0;
}

/* Wordle Sidebar Toggle Button */
.wordle-sidebar-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--theme-primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background 0.2s;
}

.wordle-sidebar-toggle:hover {
    transform: scale(1.1);
    background: var(--theme-primary-hover-color);
}

/* Wordle Collapsible Sidebar */
.wordle-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    height: 100vh;
    background: #fff;
    z-index: 200;
    padding: 60px 20px 20px;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .wordle-sidebar {
    background: #121213;
}

.wordle-sidebar.collapsed {
    transform: translateX(100%);
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #666;
    transition: background 0.2s;
}

[data-theme="dark"] .sidebar-close {
    background: #2a2a2a;
    color: #ccc;
}

.sidebar-close:hover {
    background: #e0e0e0;
}

[data-theme="dark"] .sidebar-close:hover {
    background: #3a3a3a;
}

/* Color hints in instructions */
.color-hint {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}

.color-hint.correct {
    background: #6aaa64;
}

.color-hint.present {
    background: #c9b458;
}

.color-hint.absent {
    background: #787c7e;
}

[data-theme="dark"] .color-hint.absent {
    background: #3a3a3c;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .single-game-page .wrapper {
        grid-template-columns: 1fr;
    }

    .game-sidebar:not(.wordle-sidebar) {
        order: 1;
    }

    .game-page-content {
        order: 0;
    }

    .wordle-sidebar {
        width: 100%;
        max-width: 340px;
    }
}
