/* geotopia/encyclopedia/strategic-locations/strategic.css */

:root {
    --primary: #1a237e;
    --accent: #ffd700;
    --danger: #c62828;
    --success: #2e7d32;
    --dark: #0d1117;
    --light: #f6f8fa;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

.premium-badge {
    background: var(--gradient);
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-right: 1rem;
}

.value {
    color: var(--accent);
    font-weight: bold;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, rgba(26,35,126,0.3), transparent);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 2px solid rgba(255,215,0,0.3);
    transition: transform 0.3s;
}

.stat:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.stat .number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent);
}

.stat .label {
    color: #aaa;
    margin-top: 0.5rem;
}

.map-section {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.interactive-map {
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}

.map-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

.locations-grid {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.locations-grid h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

#locations-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.location-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.location-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,215,0,0.3);
}

.location-header {
    padding: 2rem;
    background: var(--gradient);
    position: relative;
}

.importance-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    color: var(--accent);
}

.location-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.location-type {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-body {
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.countries {
    margin: 1.5rem 0;
}

.countries h4 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.country-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.critical-countries {
    margin-top: 1.5rem;
}

.critical-countries h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.country-importance {
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border-left: 3px solid;
}

.country-importance.critical {
    border-left-color: #c62828;
}

.country-importance.high {
    border-left-color: #f57c00;
}

.country-importance.moderate {
    border-left-color: #fbc02d;
}

.country-name-importance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.country-name-importance strong {
    font-size: 1.1rem;
}

.importance-score {
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
}

.reason {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.strategic-note {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    padding: 0.5rem;
    background: rgba(255,215,0,0.05);
    border-radius: 5px;
    margin-top: 0.5rem;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.context {
    padding: 4rem 2rem;
    background: rgba(255,255,255,0.02);
}

.context h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.context-card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.context-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.context-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    #locations-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
