:root {
    --bg-color: #121c26; /* Koyu arka plan */
    --text-primary: #f8fafc; /* Açık renk yazılar */
    --text-secondary: #F6C94D; /* Golden Pollen */
    --accent-1: #E4568B; /* Sunset Petal (Koyu Pembe) */
    --accent-2: #F29BB9; /* Rosebud Blush */
    --accent-3: #A7C7E4; /* Evening Sky (Mavi) */
    --accent-4: #5D7B3D; /* Leaflit Green */
    --map-ocean: #A7C7E4; /* Denizler */
    --map-land: #E4568B; /* Kıtalar (Sunset Petal) */
    --glass-bg: rgba(18, 28, 38, 0.75); /* Modal arkaplanı */
    --glass-border: rgba(167, 199, 228, 0.2);
}

@font-face {
    font-family: 'Sebino';
    src: url('Sebino-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Sebino';
    src: url('sebino-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Sebino';
    src: url('sebino-regular-italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

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

body {
    font-family: 'Sebino', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden; /* Harita dışına çıkılmasını engelle */
    position: relative;
}

#confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    transition: opacity 1s ease-out;
}

#confetti.fade-out {
    opacity: 0;
}

/* ==========================================
   DÜNYA HARİTASI
   ========================================== */
.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--map-ocean); /* Denizler (Mavi) */
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--map-land); /* Kıtalar (Yeşil) */
    -webkit-mask-image: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg');
    -webkit-mask-size: 80%;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg');
    mask-size: 80%;
    mask-position: center;
    mask-repeat: no-repeat;
    opacity: 0.9;
}

.bottom-left-panel {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Başlık ve açıklama arası boşluk */
}

.map-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-secondary); /* Golden Pollen */
    background: rgba(18, 28, 38, 0.4); /* Glass arka plan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    text-align: center;
    width: 350px; /* Açıklama kutusuyla aynı genişlik */
    margin: 0;
}

#pins-container {
    position: relative;
    width: 80vw;
    height: 80vh;
    z-index: 2;
}

/* Harita Pinleri */
.pin {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-4);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-4), 0 0 20px var(--accent-4);
    transition: transform 0.2s;
}

.pin:hover {
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 10;
}

.pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite;
    z-index: -1;
}

.pin-label {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border: 1px solid var(--accent-1);
}

.pin:hover .pin-label {
    opacity: 1;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* ==========================================
   POPUP (MODAL) VE MÜZİK ÇALAR
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.player-container {
    position: relative;
    background: var(--accent-2); /* Rosebud Blush arka plan, glass iptal */
    border: none;
    border-radius: 45px;
    padding: 45px 60px;
    width: 95%;
    max-width: 675px; /* 1.5x büyüdü */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .player-container {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--accent-1);
}

.header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.header h1 {
    font-size: 36px; /* 1.5x büyüdü */
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-1); /* Sunset Petal */
}

.header p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Plak ve İğne Alanı */
.vinyl-wrapper {
    position: relative;
    width: 375px; /* 1.5x büyüdü */
    height: 375px;
    margin-bottom: 15px;
}

.vinyl-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 330px; /* 1.5x büyüdü */
    height: 330px;
}

.vinyl {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #111 30%, #000 70%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

.vinyl.playing {
    animation-play-state: running;
}

.vinyl::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

.vinyl::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
}

.vinyl-center {
    width: 105px; /* 1.5x büyüdü */
    height: 105px;
    background: var(--accent-4); /* Gradient yok, Leaflit Green */
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.vinyl-center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px; /* 1.5x büyüdü */
    height: 18px;
    background: var(--bg-color);
    border-radius: 50%;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Plak İğnesi (Tone Arm) */
.tone-arm {
    position: absolute;
    top: 15px;
    right: -15px;
    width: 60px; /* 1.5x büyüdü */
    height: 240px; /* 1.5x büyüdü */
    transform-origin: 30px 30px; /* Döndürme noktası (Pivot) */
    transform: rotate(0deg);
    cursor: grab;
    z-index: 10;
    transition: transform 0.1s linear; 
}

.tone-arm:active {
    cursor: grabbing;
}

.arm-pivot {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: #cbd5e1;
    border-radius: 50%;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.5), 0 5px 10px rgba(0,0,0,0.8);
    z-index: 2;
}

.arm-pivot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: #334155;
    border-radius: 50%;
}

.arm-rod {
    position: absolute;
    top: 30px;
    left: 25px;
    width: 9px;
    height: 210px;
    background: linear-gradient(to right, #94a3b8, #f1f5f9, #94a3b8);
    border-radius: 4px;
    box-shadow: 3px 3px 7px rgba(0,0,0,0.8);
    z-index: 1;
}

.arm-head {
    position: absolute;
    bottom: -22px;
    left: 9px;
    width: 37px;
    height: 60px;
    background: #1e293b;
    border-radius: 6px;
    box-shadow: 3px 3px 7px rgba(0,0,0,0.8);
    transform: rotate(20deg);
    z-index: 2;
}

.arm-head::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 15px;
    width: 6px;
    height: 15px;
    background: #f8fafc; /* İğne ucu */
    border-radius: 3px;
}

/* Talimat */
.instruction {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--accent-3);
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 10px;
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* İlerleme Çubuğu ve Kontroller */
.progress-container {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

.progress-bar {
    width: 100%;
    height: 8px; /* Daha kalın ve tıklanabilir */
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    position: relative;
}

/* Şarkının dolan kısmı */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: var(--text-secondary); /* Golden Pollen */
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* Scrub (ilerleme) noktacığı */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--progress, 0%);
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background-color: var(--text-secondary); /* Golden Pollen */
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: left 0.1s linear, transform 0.1s;
    z-index: 2;
}

.progress-container:hover .progress-bar::after {
    transform: translate(-50%, -50%) scale(1.3);
}

.time-container {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: var(--accent-1);
    background: rgba(255,255,255,0.05);
}

.action-btn svg {
    width: 24px;
    height: 24px;
}

.play-state {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-1);
    min-width: 100px;
    text-align: center;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.volume-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    margin-top: -4px;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

input[type=range]:focus {
    outline: none;
}

@media (max-width: 480px) {
    .player-container {
        padding: 30px 20px;
        width: 95%;
    }
    .map-title {
        font-size: 24px;
    }
}

/* Hoşgeldin Popup */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--text-secondary); /* Golden Pollen */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out, visibility 1s;
}

.welcome-popup.fade-out {
    opacity: 0;
    visibility: hidden;
}

.welcome-text {
    font-family: 'Sebino', sans-serif;
    font-weight: bold;
    font-size: 5rem;
    color: var(--accent-1); /* Sunset Petal */
    text-align: center;
    animation: zoomIn 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

@keyframes zoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.welcome-text {
    z-index: 1;
    position: relative;
}

.falling-heart {
    position: absolute;
    top: -50px;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

.dedication-box {
    width: 350px;
    background: rgba(18, 28, 38, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 25px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.dedication-box p {
    margin-bottom: 12px;
}

.dedication-box strong {
    color: var(--accent-1);
    font-weight: 700;
}

.dedication-box .birthday-text {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-secondary); /* Golden Pollen */
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.dedication-box .signature {
    text-align: right;
    font-family: 'Sebino', sans-serif;
    font-size: 16px;
    color: var(--accent-2); /* Rosebud Blush */
    margin-bottom: 0;
}
