:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.2);
    --border-color: #334155;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent);
}

.icon-wrapper {
    background: var(--accent-glow);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent);
}

h1 {
    margin: 0 0 16px;
    font-size: 2rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

strong {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 32px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.stats-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.stats-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Map Section */
.map-section {
    margin-bottom: 30px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding-bottom: 10px;
}

.map-section h3 {
    margin: 0;
    padding: 15px 20px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    text-align: left;
}

#map {
    height: 250px;
    width: 100%;
    background-color: #242424; /* Fallback */
}

.map-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Styles for Source Breakdown */
.breakdown-section {
    text-align: left;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.breakdown-section h3 {
    margin: 0;
    padding: 15px 20px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.sources-list-container {
    padding: 0;
}

.source-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(0,0,0,0.2);
}

.source-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.source-row:last-child {
    border-bottom: none;
}

.source-row.highlight {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    font-weight: 500;
}

.source-name {
    text-transform: capitalize;
}

.source-count {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.advice-section {
    text-align: left;
    background: #0f172a;
    padding: 20px;
    border-radius: 8px;
}

.advice-section h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1rem;
}

.advice-section ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.advice-section li {
    margin-bottom: 8px;
}