/* ==========================================
   NEON GAME - GAME STYLESHEET
   Styles specific to game interface
   ========================================== */

/* ==========================================
   GAME BODY
   ========================================== */
.game-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

.game-main {
    min-height: calc(100vh - 80px);
}

/* ==========================================
   GAME SCREENS
   ========================================== */
.game-screen {
    display: none;
    min-height: calc(100vh - 80px);
    padding: var(--space-2xl) 0;
}

.game-screen.active {
    display: block;
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.game-title {
    text-align: center;
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-subtitle {
    text-align: center;
    font-size: var(--text-xl);
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
}

.screen-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
    text-align: center;
}

.screen-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
}

/* ==========================================
   GAME DISCLAIMER
   ========================================== */
.game-disclaimer {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    border-radius: var(--radius-lg);
}

.game-disclaimer p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ==========================================
   COUNTRY SELECTION
   ========================================== */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    max-height: 60vh;
    overflow-y: auto;
    padding: var(--space-md);
}

.country-card {
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.country-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.country-card:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.country-name {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.country-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.country-stat {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
}

.country-stat-label {
    color: var(--text-muted);
}

.country-stat-value {
    font-weight: 600;
}

/* ==========================================
   GAME LAYOUT
   ========================================== */
.game-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
    min-height: calc(100vh - 120px);
}

.game-sidebar {
    background-color: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-section h3,
.sidebar-section h4 {
    margin-bottom: var(--space-md);
    font-size: var(--text-lg);
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
}

.info-label {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.info-value {
    font-weight: 600;
    font-size: var(--text-base);
}

/* ==========================================
   STATS
   ========================================== */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}

.stat-name {
    font-weight: 500;
}

.stat-value {
    font-weight: 600;
    font-size: var(--text-base);
}

.stat-bar {
    height: 8px;
    background-color: var(--bg-lighter);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width var(--transition-slow);
}

.stat-fill.low {
    background: linear-gradient(90deg, var(--danger-color), #f87171);
}

.stat-fill.medium {
    background: linear-gradient(90deg, var(--warning-color), #fbbf24);
}

.stat-fill.high {
    background: linear-gradient(90deg, var(--success-color), #34d399);
}

/* ==========================================
   GAME CONTENT
   ========================================== */
.game-content {
    background-color: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
}

.content-header {
    margin-bottom: var(--space-2xl);
}

.content-subtitle {
    color: var(--text-muted);
    font-size: var(--text-base);
}

/* ==========================================
   ACTIONS
   ========================================== */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.action-card {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.action-card:hover:not(.disabled) {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-card:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.action-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.action-category {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-light);
    letter-spacing: 0.05em;
}

.action-cost {
    font-size: var(--text-sm);
    color: var(--warning-color);
    font-weight: 600;
}

.action-name {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.action-description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    flex-grow: 1;
}

.action-effects {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: var(--text-xs);
}

.effect-badge {
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--bg-lighter);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.effect-badge.positive {
    color: var(--success-color);
}

.effect-badge.negative {
    color: var(--danger-color);
}

/* ==========================================
   MODAL
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-light);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: var(--text-2xl);
    margin: 0;
}

.modal-body {
    padding: var(--space-xl);
}

.event-text {
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.event-choices {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.event-choice {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
}

.event-choice:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-lighter);
}

.event-choice:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.choice-text {
    font-size: var(--text-base);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.choice-hint {
    font-size: var(--text-sm);
    color: var(--text-dim);
}

/* ==========================================
   RESULTS
   ========================================== */
.results-content {
    background-color: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.result-stat {
    text-align: center;
    padding: var(--space-lg);
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.result-stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.result-stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-message {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--success-color);
}

.achievement-icon {
    font-size: var(--text-2xl);
}

.achievement-text {
    flex-grow: 1;
}

.achievement-name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.achievement-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container {
    position: fixed;
    top: 100px;
    right: var(--space-lg);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 400px;
}

.toast {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-color: var(--success-color);
}

.toast.warning {
    border-color: var(--warning-color);
}

.toast.error {
    border-color: var(--danger-color);
}

.toast.info {
    border-color: var(--info-color);
}

.toast-message {
    font-size: var(--text-sm);
    color: var(--text-color);
}

/* ==========================================
   RESPONSIVE - GAME
   ========================================== */
@media (max-width: 1024px) {
    .game-layout {
        grid-template-columns: 1fr;
    }

    .game-sidebar {
        position: static;
        order: -1;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .game-layout {
        padding: var(--space-lg);
    }

    .country-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-height: 90vh;
    }

    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
    }

    .results-stats {
        grid-template-columns: 1fr;
    }
}

