/**
 * Game Hub Component Styles - v2026.01.03.2
 * =========================
 * Compact hub displaying TIME, ROUND, Mode Badge, and Controls
 *
 * Layout:
 * ┌─────────────────────┐
 * │  TIME    4m 12s     │
 * ├─────────────────────┤
 * │  ROUND   14/18      │
 * │  ████████████░░░    │
 * ├─────────────────────┤
 * │      [ LIVE ]       │
 * ├─────────────────────┤
 * │   ▶  ⏸  🔀         │
 * └─────────────────────┘
 */

/* ─────────────────────────────────────────────────────────────────────────────
 * Main Container
 * ───────────────────────────────────────────────────────────────────────────── */

.game-hub {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-width: 180px;
    max-width: 220px;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Section Base Styles
 * ───────────────────────────────────────────────────────────────────────────── */

.game-hub__section {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.game-hub__section--time,
.game-hub__section--paintings {
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border-light);
}

.game-hub__section--mode {
    display: flex;
    justify-content: center;
    padding: var(--space-1) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.game-hub__section--controls {
    display: flex;
    justify-content: center;
    padding-top: var(--space-1);
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Time Section
 * ───────────────────────────────────────────────────────────────────────────── */

.game-hub__section--time {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Paintings Section
 * ───────────────────────────────────────────────────────────────────────────── */

.game-hub__paintings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Labels and Values
 * ───────────────────────────────────────────────────────────────────────────── */

.game-hub__label {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-hub__value {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Progress Bar
 * ───────────────────────────────────────────────────────────────────────────── */

.game-hub__progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.game-hub__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
    min-width: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Mode Badge
 * ───────────────────────────────────────────────────────────────────────────── */

.game-hub__mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

/* PLANNING mode - neutral gray */
.game-hub__mode-badge--planning {
    background-color: #e8e8e8;
    color: var(--gray-700);
}

/* PRACTICE mode - blue */
.game-hub__mode-badge--practice {
    background-color: #2196F3;
    color: white;
}

/* LIVE mode - red with pulse animation */
.game-hub__mode-badge--live {
    background-color: #e74c3c;
    color: white;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Controls Group
 * ───────────────────────────────────────────────────────────────────────────── */

.game-hub__controls-group {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}

/* Control buttons use .icon-btn from draft.css */
/* Semantic variants: .icon-btn--play, .icon-btn--pause, .icon-btn--reset, .icon-btn--shuffle */

/* ─────────────────────────────────────────────────────────────────────────────
 * Responsive Adjustments
 * ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .game-hub {
        min-width: 160px;
        max-width: 200px;
        padding: var(--space-2);
        gap: var(--space-1);
    }

    .game-hub__label {
        font-size: 10px;
    }

    .game-hub__value {
        font-size: var(--text-xs);
    }

    .game-hub__mode-badge {
        padding: 2px var(--space-2);
        font-size: 10px;
    }

    .game-hub__progress-container {
        height: 4px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Dark Mode Support (if needed in future)
 * ───────────────────────────────────────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
    .game-hub {
        /* Dark mode colors would go here */
    }
}
