body {
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #c6192b 0%, #8b0000 50%, #2c1810 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #c6192b 0%, #8b0000 100%);
    color: white;
    padding: 20px 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
    object-fit: cover;
    margin-right: 6px;
    border: 1px solid rgba(255,255,255,0.2);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #c6192b;
    border-color: white;
    font-weight: bold;
}

.logo {
    width: 120px;
    height: 120px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.stats {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #ffeef0 0%, #f8f9fa 100%);
    padding: 20px;
    border-bottom: 2px solid #c6192b;
    box-shadow: inset 0 2px 4px rgba(198, 25, 43, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #c6192b;
    text-shadow: 0 2px 4px rgba(198, 25, 43, 0.2);
}

.stat-label {
    color: #8b0000;
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: 500;
}

#map {
    height: 500px;
    width: 100%;
}

.country-list {
    padding: 30px;
    background: white;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.country-item {
    background: linear-gradient(135deg, #c6192b, #8b0000);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.country-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(198, 25, 43, 0.3);
    background: linear-gradient(135deg, #d91e2a, #a01010);
}

.legend {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(198, 25, 43, 0.2);
    border: 2px solid #c6192b;
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    max-width: 200px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.legend h4 {
    margin: 0 0 10px 0;
    color: #c6192b;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #c6192b;
    padding-bottom: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.high-activity { 
    background-color: #c6192b; 
}

.medium-activity { 
    background-color: #ff6b6b; 
}

.low-activity { 
    background-color: #ffb3b3; 
}

/* Mobil öncelikli responsive tasarım */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    .header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .language-selector {
        align-self: flex-end;
        gap: 5px;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .stat-item {
        background: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(198, 25, 43, 0.1);
        border: 1px solid rgba(198, 25, 43, 0.2);
    }
    
    .stat-number {
        font-size: 1.8em;
    }
    
    #map {
        height: 350px;
        border-radius: 0 0 15px 15px;
    }
    
    .country-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .country-item {
        padding: 12px;
        font-size: 0.9em;
    }
    
    .country-list {
        padding: 20px 15px;
    }
    
    .legend {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        transform: none;
        max-width: none;
        padding: 12px;
        border-radius: 8px;
    }
    
    .legend h4 {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
    
    .legend-item {
        font-size: 0.8em;
        margin-bottom: 3px;
    }
    
    .legend-color {
        width: 15px;
        height: 15px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .header {
        padding: 10px;
        gap: 10px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .stats {
        gap: 10px;
        padding: 10px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 1.5em;
    }
    
    #map {
        height: 300px;
    }
    
    .country-list {
        padding: 15px 10px;
    }
    
    .legend {
        bottom: 10px;
        right: 5px;
        left: 5px;
        padding: 10px;
    }
}