:root {
    --primary-color: #2563eb;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: #e2e8f0;
}

#map {
    width: 100vw;
    height: 100vh;
}

.floating-header {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0rem 2rem;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

h1 {
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 700;
    margin: 0;
}

p {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 2px;
}

footer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #64748b;
    pointer-events: none;
}

@media (max-width: 768px) {
    .floating-header {
        width: 90%;
        padding: 0.8rem 1rem;
    }

    h1 {
        font-size: 1.2rem;
    }
}

/* Audio Popup Styles */
.audio-popup {
    padding: 10px;
    text-align: center;
    min-width: 180px;
}

.audio-popup h3 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
}

#audio-btn {
    background: linear-gradient(145deg, #ffd700, #b8860b);
    color: #4a3b00;
    border: 1px solid #d4af37;
    padding: 12px 24px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Dışarı Kabartma Efekti (Normal Durum) */
    box-shadow: 
        0 5px 0 #996515,
        0 10px 20px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    width: 100%;
    position: relative;
    margin-bottom: 10px; /* Kaymayı önlemek için sabit boşluk */
    top: 0;
}

#audio-btn:hover {
    background: linear-gradient(145deg, #ffec8b, #daa520);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 0 #996515,
        0 12px 20px rgba(0, 0, 0, 0.25);
}

/* Çalıyor Durumu - Koyu Altın ve Sabit Yükseklik */
#audio-btn.playing {
    background: linear-gradient(145deg, #8b6d05, #5e4a03); /* Koyu Altın */
    color: #ffd700; /* Yazı daha açık altın rengi */
    box-shadow: 
        inset 0 4px 10px rgba(0, 0, 0, 0.5), /* Daha derin çöküklük */
        0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(5px); /* Kabartma kalınlığı kadar aşağı */
    border: 1px solid #3d3002;
    margin-bottom: 5px; /* translateY(5px) + margin-bottom(5px) = 10px (Sabit) */
}

#audio-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #996515;
}

/* Customizing Leaflet Popup */
.leaflet-popup {
    z-index: 2000 !important;
}

.leaflet-popup-pane {
    z-index: 2000 !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content {
    margin: 15px 20px;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
}

/* Custom Popup Close Button */
.leaflet-popup-close-button {
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    color: #64748b !important;
    font-size: 20px !important;
    background: white !important;
    border-radius: 50% !important;
    top: -12px !important;
    right: -12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    z-index: 1000;
}

.leaflet-popup-close-button:hover {
    color: #ef4444 !important;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.2) !important;
}

.audio-popup {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Popup Image Style */
.popup-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    margin: 10px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Region Badge Style */
.region-badge {
    display: inline-block;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}