/* ==========================================================================
   GAME THEME CSS - Specific styles for the NewClim Serious Game
   ========================================================================== */

/* Layout & Containers */
.game-container { min-height: 100vh; }
.game-start-screen { min-height: 85vh; }
.game-main-dashboard { min-height: 80vh; }
.game-relative-z2 { position: relative; z-index: 2; }
.game-overflow-hidden { overflow: hidden; }

/* Cards & Dialogs Base */
.game-intro-card { border-radius: 12px; width: 100%; max-width: 800px; background: white; }
.game-config-card { border-radius: 12px; width: 100%; max-width: 1200px; background: white; }
.game-debrief-card { border-radius: 12px; width: 100%; max-width: 900px; background: white; }
.game-location-details-card { min-height: 250px; }
.game-empty-state-card { min-height: 350px; border: 2px dashed #cbd5e1; border-radius: 12px; }
.game-plot-card { border-radius: 12px; height: 100%; display: flex; flex-direction: column; }
.game-observation-card { border-left: 4px solid #607D8B; }

.game-dialog-small-center { min-width: 350px; border-radius: 12px; text-align: center; }
.game-dialog-standard { min-width: 400px; border-radius: 12px; }
.game-dialog-wide { min-width: 450px; border-radius: 12px; }
.game-dialog-large { min-width: 600px; max-width: 800px; border-radius: 12px; }
.game-dialog-warning { min-width: 450px; border-radius: 12px; border-top: 4px solid var(--q-warning); }
.game-dialog-overlay-opaque { opacity: 0.98; }

/* Borders & Dividers */
.game-border-radius-8 { border-radius: 8px; }
.game-border-standard { border: 1px solid #e0e0e0; }
.game-border-light { border: 1px solid #f5f5f5; }
.game-border-slate { border-color: #cbd5e1; }
.game-border-teal { border: 1px solid var(--q-teal); border-radius: 12px; }
.game-border-teal-light { border: 1px solid #80cbc4; }
.game-border-top-light-pt { border-top: 1px solid rgba(0,0,0,0.1); padding-top: 15px; }
.game-border-top-light { border-top: 1px solid rgba(0,0,0,0.1); }
.game-card-actions-bordered { border-top: 1px solid #e0e0e0; }

/* Top Border Colored Cards */
.game-card-top-primary { border-radius: 12px; border-top: 4px solid var(--q-primary); }
.game-card-top-blue { border-radius: 12px; border-top: 4px solid #3B82F6; }
.game-card-top-orange { border-radius: 12px; border-top: 4px solid #F59E0B; }
.game-card-top-green { border-radius: 12px; border-top: 4px solid #10B981; }

/* Dynamic Risk Banners */
.game-risk-banner { border-radius: 8px; border-left: 5px solid transparent; }
.game-risk-banner-red { border-left-color: var(--q-negative); }
.game-risk-banner-orange { border-left-color: var(--q-warning); }
.game-risk-banner-indigo { border-left-color: #3f51b5; }
.game-risk-banner-grey { border-left-color: #9e9e9e; }
.game-risk-banner-none { border-left-color: var(--q-positive); }

/* Custom Static Banners */
.game-banner-objective { border-left: 5px solid #2e7d32; }
.game-banner-rcp0 { border: 1px solid #b2dfdb; }
.game-banner-rcp2 { border: 1px solid #dcedc8; }
.game-banner-rcp4 { border: 1px solid #ffe0b2; }
.game-banner-rcp8 { border: 1px solid #ffcdd2; }
.game-banner-red-border { border: 1px solid #fca5a5; }
.game-banner-red-border-light { border: 1px solid #ffcdd2; }
.game-banner-subtle-border { border: 1px solid rgba(0,0,0,0.05); }

/* Typography */
.game-text-body { line-height: 1.6; }
.game-text-caption { line-height: 1.3; }
.game-line-height-1-2 { line-height: 1.2; }
.game-line-height-1-3 { line-height: 1.3; }
.game-line-height-1-4 { line-height: 1.4; }
.game-letter-spacing-2 { letter-spacing: 2px; }
.game-text-1-1em { font-size: 1.1em; }
.game-text-11px { font-size: 11px; }
.game-text-10px { font-size: 10px; }
.game-text-0-75rem { font-size: 0.75rem; }

/* Map & Plotly Containers */
.game-map-container { min-height: 450px; border-radius: 8px; border: 1px solid #e0e0e0; overflow: hidden; background: #f8f9fa; }
.game-map-plotly { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.game-market-chart-container { min-height: 260px; width: 100%; }
.game-market-chart-wrapper { width: 100%; max-width: 750px; }

/* Marketplace Elements */
.game-market-card-selected { border: 2px solid var(--q-primary); }
.game-market-card-default { border: 1px solid #e0e0e0; }
.game-market-card-locked { border: 1px dashed #cbd5e1; opacity: 0.7; }
.game-risk-pill-container { flex: 0 0 calc(50% - 4px); width: calc(50% - 4px); }
.game-risk-pill { font-size: 10px; font-weight: 700; padding: 2px 6px; }

/* Components & Icons */
.game-icon-circle-40 { width: 40px; height: 40px; border-radius: 50%; min-width: 40px; }
.game-icon-circle-40-white { width: 40px; height: 40px; border-radius: 50%; color: white !important; }
.game-icon-blue { background-color: #E0F2FE; color: #0369A1; }
.game-icon-purple { background-color: #EDE9FE; color: #5B21B6; }
.game-text-deep-blue { color: #0369A1; }
.game-text-deep-purple { color: #5B21B6; }
.game-chip-profit { background-color: #E8F5E9 !important; color: #1B5E20 !important; }
.game-chip-loss { background-color: #FFEBEE !important; color: #B71C1C !important; }
.game-risk-card-red { border-color: #fca5a5; height: 100%; }
.game-risk-card-blue { border-color: #93c5fd; height: 100%; }
.game-risk-card-cyan { border-color: #67e8f9; height: 100%; }
.game-risk-card-green { border-color: #86efac; height: 100%; }

/* Inputs & Sizing Utilities */
.game-input-120 { max-width: 120px; }
.game-input-250 { min-width: 250px; }
.game-btn-40 { height: 40px; }
.game-max-w-400 { max-width: 400px; }
.game-min-w-30 { min-width: 30px; }

/* Progress & Loading Animations */
.game-loading-container { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; width: 450px; max-width: 90vw; }
.game-loading-year { font-size: 5rem; font-variant-numeric: tabular-nums; line-height: 1; }
.game-loading-text { min-height: 32px; width: 100%; font-size: 1.15rem; letter-spacing: 0.5px; }
.game-progress-bar-bg { height: 8px; width: 100%; border-radius: 4px; overflow: hidden; }
.game-progress-bar-fill { height: 100%; transition: width 0.1s linear; }

/* ==========================================================================
   TV NEWS BROADCAST DIALOG STYLES
   ========================================================================== */
.game-news-backdrop { background-color: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.game-news-grid-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: linear-gradient(rgba(56, 189, 248, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, 0.15) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; z-index: 1; }
.game-news-glow-blue { position: absolute; width: 50vw; height: 50vw; border-radius: 50%; filter: blur(100px); z-index: 0; pointer-events: none; top: -20%; left: -10%; background: rgba(56, 189, 248, 0.3); }
.game-news-glow-green { position: absolute; width: 50vw; height: 50vw; border-radius: 50%; filter: blur(100px); z-index: 0; pointer-events: none; bottom: -20%; right: -10%; background: rgba(16, 185, 129, 0.25); }
.game-news-tab-panels { width: 100%; height: 100%; z-index: 10; }

.game-news-card-intro { width: 550px; max-width: 90vw; background: radial-gradient(circle, #ffffff 0%, #e2e8f0 100%); position: relative; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.3); text-align: center; border: 1px solid #cbd5e1; }
.game-news-sidebar-left { position: absolute; top: 0; left: 0; bottom: 0; width: 8%; background-image: radial-gradient(#94a3b8 2px, transparent 2px); background-size: 16px 16px; opacity: 0.2; pointer-events: none; }
.game-news-sidebar-right { position: absolute; top: 0; right: 0; bottom: 0; width: 8%; background-image: radial-gradient(#94a3b8 2px, transparent 2px); background-size: 16px 16px; opacity: 0.2; pointer-events: none; }
.game-pulse-animation { animation: pulse 2s infinite; }
.game-bg-primary-light { background: rgba(25, 118, 210, 0.05); }

.game-news-card-main { width: 900px; max-width: 95vw; height: 650px; background: radial-gradient(circle, #ffffff 0%, #e2e8f0 100%); position: relative; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.game-news-sidebar-left-wide { position: absolute; top: 0; left: 0; bottom: 0; width: 25%; background-image: radial-gradient(#94a3b8 2px, transparent 2px); background-size: 16px 16px; opacity: 0.3; }
.game-news-sidebar-right-wide { position: absolute; top: 0; right: 0; bottom: 0; width: 25%; background-image: radial-gradient(#94a3b8 2px, transparent 2px); background-size: 16px 16px; opacity: 0.3; }

.game-news-tag-live-container { position: absolute; top: 25px; left: 25px; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.15); z-index: 10; }
.game-news-tag-live-top { background: linear-gradient(to bottom, #1e3a8a, #1d4ed8); color: white; font-weight: 900; padding: 6px 20px; font-size: 22px; text-align: center; letter-spacing: 1px; }
.game-news-tag-live-bottom { background: white; color: #1e3a8a; font-weight: bold; padding: 3px 20px; font-size: 12px; text-align: center; letter-spacing: 2px; }

.game-news-tag-breaking-container { position: absolute; top: 25px; right: 25px; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.15); z-index: 10; }
.game-news-tag-breaking-top { background: linear-gradient(to bottom, #1e3a8a, #1d4ed8); color: white; font-weight: 900; font-style: italic; padding: 6px 20px; font-size: 16px; text-align: center; letter-spacing: 1px; }
.game-news-tag-breaking-bottom { background: white; color: #1e3a8a; font-weight: bold; padding: 3px 20px; font-size: 12px; text-align: center; letter-spacing: 1px; }

.game-news-screen-container { position: absolute; top: 75px; left: 8%; right: 8%; bottom: 210px; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.3); display: flex; flex-direction: column; background: #0f172a; border: 2px solid white; }
.game-news-screen-topbar { background: linear-gradient(to right, #1e3a8a, #3b82f6); color: white; text-align: center; font-weight: 900; padding: 10px; font-size: 14px; letter-spacing: 1.5px; }
.game-news-screen-main { flex-grow: 1; background: radial-gradient(circle at center, #334155 0%, #0f172a 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.game-news-icon-glow { filter: drop-shadow(0 0 20px currentColor); }
.game-news-badge { font-size: 16px; padding: 6px 15px; }

.game-news-ticker-container { position: absolute; bottom: 35px; left: 4%; right: 4%; display: flex; flex-direction: column; z-index: 10; }
.game-news-ticker-header { align-self: flex-end; background: white; padding: 3px 12px; font-size: 11px; font-weight: 900; border-radius: 6px 6px 0 0; color: #1e3a8a; letter-spacing: 1px; box-shadow: 0 -2px 5px rgba(0,0,0,0.1); }
.game-news-ticker-body { display: flex; height: 75px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); border-top-left-radius: 8px; }
.game-news-ticker-logo { width: 100px; background: linear-gradient(to bottom, #475569, #1e293b); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; border-top-left-radius: 8px; }
.game-news-ticker-title { flex-grow: 1; background: linear-gradient(to right, #1e3a8a, #3b82f6); display: flex; align-items: center; padding-left: 25px; }
.game-news-ticker-title-text { color: white; font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: 1px; text-transform: uppercase; text-shadow: 2px 2px 4px rgba(0,0,0,0.4); }
.game-news-ticker-desc-container { background: white; min-height: 45px; display: flex; align-items: center; padding: 8px 20px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.game-news-ticker-desc { flex-grow: 1; color: #334155; font-weight: bold; font-size: 16px; line-height: 1.3; }

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-primary {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.btn-pulse {
    animation: pulse-primary 2s infinite;
}