:root {
    --primary: #228be6;
    --primary-hover: #1c7ed6;
    --danger: #fa5252;
    --success: #40c057;
    --warning: #f59f00;
    --bg-color: #f8f9fa;
    --surface: rgba(255, 255, 255, 0.92); 
    --border: #ced4da;
    --text: #212529;
    --text-muted: #495057;
    --fretboard-bg: linear-gradient(180deg, #3d2612 0%, #221408 50%, #3d2612 100%);
    --fret-color: #d4af37; 
    --metro-bg: #e7f5ff;
}

body.dark-mode {
    --primary: #339af0;
    --primary-hover: #4dabf7;
    --surface: rgba(33, 37, 41, 0.92);
    --border: #495057;
    --text: #f8f9fa;
    --text-muted: #adb5bd;
    --fretboard-bg: linear-gradient(180deg, #2b180a 0%, #170d05 50%, #2b180a 100%);
    --fret-color: #d4af37;
    --metro-bg: #18314f;
    --bg-color: #121212; 
}

/* AHŞAP TEMA GEÇİŞLERİ (Gündüz modu ile çakışmaması için CSS'e alındı) */
body.theme-maple {
    --fretboard-bg: linear-gradient(180deg, #e8c382 0%, #d4b06a 50%, #e8c382 100%);
}
body.theme-ebony {
    --fretboard-bg: linear-gradient(180deg, #2b2b2b 0%, #1a1a1a 50%, #2b2b2b 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0; color: var(--text); padding: 20px;
    min-height: 100vh; display: flex; justify-content: center; align-items: center;
    background-color: var(--bg-color); 
    background-image: url('./bg-click.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
    transition: background-image 0.6s ease-in-out, background-color 0.3s;
}

.app-container {
    background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 30px 40px; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    max-width: 900px; width: 100%; transition: all 0.3s ease, box-shadow 0.2s ease-out;
    position: relative;
}

.header-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.app-header-brand {
    font-size: 22px; font-weight: 800; color: var(--primary);
    display: flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: 1px; margin: 0;
}

.footer-brand {
    text-align: center; margin-top: 15px; padding-top: 15px;
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    opacity: 0.6; border-top: 1px solid var(--border);
    letter-spacing: 2px;
}

.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.chord-title-wrapper { display: flex; flex-direction: column; gap: 4px; }
.chord-title { font-size: 26px; font-weight: bold; margin: 0; color: var(--text); }
.chord-known-name { font-size: 14px; font-weight: 600; color: var(--primary); background: rgba(34, 139, 230, 0.12); padding: 2px 8px; border-radius: 4px; display: inline-block; width: fit-content;}
.variation-text { font-size: 13px; color: var(--text-muted); margin-top: 2px; display: block; font-weight: bold; }

.toggles { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.switch-container { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: bold; color: var(--text-muted); cursor: pointer; }
.switch { position: relative; width: 36px; height: 20px; background-color: var(--border); border-radius: 10px; transition: 0.3s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background-color: white; border-radius: 50%; transition: 0.3s; }
input[type="checkbox"] { display: none; }
input[type="checkbox"]:checked + .switch { background-color: var(--primary); }
input[type="checkbox"]:checked + .switch::after { transform: translateX(16px); }

#btn-install-app { font-size:12px; font-weight:bold; color:var(--success); background:rgba(64, 192, 87, 0.1); padding:6px 10px; border-radius:6px; border: 1px solid rgba(64, 192, 87, 0.3); cursor:pointer; transition:0.2s; display:none; }
#btn-install-app:hover { background:rgba(64, 192, 87, 0.2); }

.diagram-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; overflow-x: auto; padding-top:10px; scroll-margin-top: 20px;}
.fretboard { 
    position: relative; width: 380px; height: 190px; 
    border: 3px solid #1a0f05; border-left: 12px solid #e0c285; border-right: none; 
    background: var(--fretboard-bg); 
    box-shadow: inset 0 0 25px rgba(0,0,0,0.85), 0 6px 16px rgba(0,0,0,0.4);
    border-radius: 4px;
    transition: background 0.4s ease; 
    touch-action: pan-x; /* Mobil cihazlarda klavye kaydırma optimizasyonu */
}
.fretboard.barre-mode { border-left: 3px solid #d4af37; }
.fretboard.lefty { border-left: none; border-right: 12px solid #e0c285; }
.fretboard.lefty.barre-mode { border-right: 3px solid #d4af37; }
.fret-line { position: absolute; top: 0; bottom: 0; width: 3px; background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b); box-shadow: 1px 0 3px rgba(0,0,0,0.5); }
.string-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #e0e0e0, #ffffff, #aaaaaa); box-shadow: 0 1px 2px rgba(0,0,0,0.6); }

.fret-inlay { position: absolute; width: 12px; height: 12px; background: rgba(255, 255, 255, 0.35); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 0 5px rgba(255,255,255,0.6); }

.dot { position: absolute; width: 28px; height: 28px; background-color: var(--primary); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: bold; transform: translate(-50%, -50%); z-index: 10; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.dot.scale-root { background-color: #f59f00; z-index: 11; box-shadow: 0 0 10px rgba(245, 159, 0, 0.8);}

.dot.playing { transform: translate(-50%, -50%) scale(1.4); box-shadow: 0 0 15px 5px var(--warning); background-color: var(--warning); transition: all 0.1s ease-out; }
.string-status.playing { transform: translateY(-50%) scale(1.6); color: var(--warning); text-shadow: 0 0 15px var(--warning); transition: all 0.1s ease-out; }

@keyframes vibrateString {
    0% { transform: translateY(0); }
    25% { transform: translateY(-2px); }
    50% { transform: translateY(2px); }
    75% { transform: translateY(-1px); }
    100% { transform: translateY(0); }
}
.string-line.vibrating { animation: vibrateString 0.1s linear infinite; box-shadow: 0 0 6px var(--warning); background-color: var(--warning); z-index: 8; }

@keyframes bendAnimation {
    0% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -130%); background-color: #e03131; box-shadow: 0 0 15px #e03131; }
    100% { transform: translate(-50%, -50%); }
}
.anim-bend { animation: bendAnimation 0.8s ease-in-out; }

@keyframes vibratoAnimation {
    0% { transform: translate(-50%, -50%); }
    20% { transform: translate(-50%, -65%); }
    40% { transform: translate(-50%, -35%); }
    60% { transform: translate(-50%, -65%); }
    80% { transform: translate(-50%, -35%); }
    100% { transform: translate(-50%, -50%); }
}
.anim-vibrato { animation: vibratoAnimation 0.6s linear; background-color: #fcc419 !important; box-shadow: 0 0 15px #fcc419 !important;}

@keyframes pinchAnimation {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0px #fff; background-color: var(--primary); }
    50% { transform: translate(-50%, -50%) scale(1.8); box-shadow: 0 0 25px 8px #fff; background-color: #fff; color:#000; }
    100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0px #fff; background-color: var(--primary); }
}
.anim-pinch { animation: pinchAnimation 0.5s ease-out; }

.barre-line { position: absolute; width: 22px; background-color: var(--primary); opacity: 0.85; border-radius: 11px; transform: translateX(-50%); z-index: 5; }
.capo-line { position: absolute; width: 14px; background: linear-gradient(90deg, #adb5bd, #f8f9fa, #868e96); border-radius: 4px; transform: translateX(-50%); z-index: 6; border: 1px solid #495057; box-shadow: 2px 0 5px rgba(0,0,0,0.5); }

.string-tuning-label { position: absolute; left: -24px; font-size: 11px; font-weight: 800; color: #d4af37; transform: translateY(-50%); text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.fretboard.lefty .string-tuning-label { left: auto; right: -24px; }

.string-status { position: absolute; right: -32px; font-size: 16px; font-weight: bold; color: var(--fret-color); transform: translateY(-50%); }
.fretboard.lefty .string-status { right: auto; left: -32px; }
.fret-numbers { display: flex; width: 380px; margin-top: 10px; padding-left: 8px; box-sizing: border-box; margin-bottom:15px; }
.fret-numbers.lefty { flex-direction: row-reverse; padding-left: 0; padding-right: 8px; }
.fret-number { flex: 1; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-muted); }

.panel-wrapper { margin-bottom: 20px; border-radius: 8px; background: rgba(0,0,0,0.03); border: 1px solid var(--border); transition: opacity 0.2s, height 0.3s ease; position: relative; overflow: hidden; }
.panel-wrapper.dragging { opacity: 0.4; }
.drag-handle { background: rgba(34, 139, 230, 0.1); color: var(--primary); padding: 10px 15px; font-size: 11px; font-weight: bold; cursor: pointer; border-radius: 8px 8px 0 0; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: 1px; user-select: none; border-bottom: 1px solid var(--border); transition: background 0.2s;}
.drag-handle:hover { background: rgba(34, 139, 230, 0.15); }
.drag-handle .handle-title { display: flex; align-items: center; gap: 8px; flex: 1;}
.drag-handle .toggle-icon { font-size: 14px; transition: transform 0.3s ease; }

.panel-wrapper.collapsed .panel-inner { display: none; }
.panel-wrapper.collapsed .drag-handle { border-bottom: none; border-radius: 8px; }
.panel-wrapper.collapsed .drag-handle .toggle-icon { transform: rotate(-90deg); }

.panel-inner { padding: 15px 20px; }

.controls-panel, .scale-assistant, .progression-container, .tools-panel, .studio-panel { padding:0; background:transparent; border:none; margin-bottom:0; }

.row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.group-col { display: flex; flex-direction: column; gap: 5px; }
.group-col label { font-size: 11px; font-weight: bold; text-transform: uppercase; color: var(--text-muted); }

.scale-assistant-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 600; }
.scale-details { font-size: 13px; color: var(--text); font-weight: normal; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 8px; margin-top: 10px; line-height: 1.5; }
body.dark-mode .scale-details { border-top-color: rgba(255,255,255,0.1); }
.scale-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-size: 12px; border-radius: 6px; cursor: pointer; font-weight: bold; transition: 0.2s;}
.scale-btn:hover { background: var(--primary-hover); transform: scale(1.02); }

select, .btn, .text-input { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; outline: none; background: var(--surface); color: var(--text); transition: 0.2s;}
select option { background: var(--surface); color: var(--text); }
.text-input { cursor: text; }
.btn:hover { background: rgba(0,0,0,0.05); }
.btn-primary { background: var(--primary); color: white; border: none; }
.btn-primary:hover { background: var(--primary-hover); color: white; }
.btn-stop { background: var(--danger); color: white; border: none; }
.btn-stop:hover { background: #e03131; }
.btn-add { background: var(--success); color: white; border: none; }
.btn-add:hover { background: #37b24d; color: white;}
.btn-reset { background: rgba(250, 82, 82, 0.1); color: var(--danger); border-color: rgba(250, 82, 82, 0.3); }
.btn-reset:hover { background: rgba(250, 82, 82, 0.2); }
.transpose-box { display: flex; align-items: center; gap: 4px; background: var(--surface); padding: 5px; border-radius: 8px; border: 1px solid var(--border); }
.counter-badge { font-weight: bold; color: var(--primary); font-size: 14px; min-width: 25px; text-align: center; }

.kbd-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: inherit;
    margin-left: 5px;
    line-height: 1.1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-family: monospace;
    vertical-align: middle;
}
body:not(.dark-mode) .kbd-badge {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.flash-btn { animation: btnFlash 0.2s ease-out; }
@keyframes btnFlash {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(0.92); filter: brightness(1.6); box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); }
    100% { transform: scale(1); filter: brightness(1); }
}

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-content {
    background: var(--surface); padding: 25px; border-radius: 12px;
    min-width: 320px; max-width: 90%; color: var(--text);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); border: 1px solid var(--border);
    transform: translateY(-20px); transition: transform 0.3s;
}
.modal-overlay.show .modal-content { transform: translateY(0); }
.shortcut-list { list-style: none; padding: 0; margin: 15px 0 0 0; font-size: 14px; font-weight: 600;}
.shortcut-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.1); }
body.dark-mode .shortcut-list li { border-bottom-color: rgba(255,255,255,0.05); }
.shortcut-list li:last-child { border: none; padding-bottom: 0;}

.progression-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px;}
.progression-header h3 { margin: 0; font-size: 16px; color: var(--text); }
.prog-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prog-transpose-box { display: flex; align-items: center; gap: 4px; background: rgba(34, 139, 230, 0.1); padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(34, 139, 230, 0.3); }
.chord-timeline { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; min-height: 50px; }
.prog-card { background: var(--surface); color: var(--text); border: 2px solid var(--border); padding: 10px 20px; border-radius: 8px; font-weight: bold; font-size: 16px; min-width: 60px; text-align: center; position: relative; transition: 0.2s; cursor: pointer;}
.prog-card.active { border-color: var(--primary); background: var(--primary); color: white; transform: scale(1.05); }
.prog-card .del-btn { position: absolute; top: -8px; right: -8px; background: var(--danger); color: white; width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 12px; cursor: pointer; display: none; }
.prog-card:hover .del-btn { display: flex; }

.tools-container { display: flex; flex-wrap: wrap; gap: 15px; }
.tuner-panel, .metronome-panel { flex: 1; background: var(--metro-bg); border: 1px solid var(--border); padding: 15px; border-radius: 8px; min-width: 280px; }
.panel-title { margin: 0 0 10px 0; font-size: 13px; font-weight: bold; text-transform: uppercase; color: var(--text); }
.tuner-display { text-align: center; }
.tuner-note { font-size: 32px; font-weight: bold; color: var(--primary); margin-bottom: 2px; height: 38px;}

.tuner-meter { position: relative; height: 50px; background: var(--surface); border: 2px solid var(--border); border-bottom: none; border-radius: 90px 90px 0 0; margin: 10px auto; overflow: hidden; width: 100px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.1); }
body.dark-mode .tuner-meter { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.tuner-needle { position: absolute; bottom: -5px; width: 4px; height: 110%; background: var(--danger); left: 50%; transform-origin: bottom center; transform: translateX(-50%) rotate(0deg); transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 2px;}
.tuner-needle.in-tune { background: var(--success); box-shadow: 0 0 8px var(--success); }

.tuner-instruction { font-size: 13px; font-weight: bold; color: var(--text-muted); height: 18px; margin-bottom: 8px;}

.metro-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom:10px;}
.bpm-input { width: 55px; font-size: 15px; font-weight: bold; padding: 3px; text-align: center; border: 1px solid var(--border); border-radius: 6px; }
.btn-metro { background: var(--danger); border: none; color: white; font-weight: bold; padding: 7px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; width: 70px;}
.btn-metro.active { background: var(--success); }

.studio-panel-inner { background: rgba(132, 94, 247, 0.08); padding: 15px; border-radius: 8px; display: flex; flex-direction: column; gap: 15px; }
.studio-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.studio-header h4 { margin: 0; font-size: 16px; color: var(--text); display: flex; align-items: center; gap: 8px;}
.studio-controls { display: flex; gap: 10px; flex-wrap: wrap; background: rgba(0,0,0,0.05); padding: 10px; border-radius: 8px; align-items: center;}

.batch-actions { display: flex; gap: 8px; margin-top: 10px; padding: 10px; background: rgba(255,255,255,0.1); border-radius: 8px; border: 1px dashed var(--border); flex-wrap: wrap;}

.track-list { display: flex; flex-direction: column; gap: 8px; }
.track-item { background: var(--surface); border: 1px solid var(--border); padding: 10px; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;}
.track-info { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 14px;}
.track-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.track-slider { width: 70px; }
.meter-wrapper { position: relative; height: 8px; background: rgba(0,0,0,0.2); border-radius: 4px; overflow: hidden; margin-top: 8px; border: 1px solid rgba(255,255,255,0.1); box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
#rec-meter { height: 100%; width: 0%; background: linear-gradient(90deg, #40c057 0%, #40c057 60%, #fcc419 80%, #fa5252 100%); transition: width 0.05s ease-out; box-shadow: 0 0 10px rgba(64, 192, 87, 0.5); }

.pulse-red { animation: pulseRed 1s infinite; }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(250, 82, 82, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(250, 82, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(250, 82, 82, 0); } }

/* YENİ: DAW Stüdyosu Kayıt Animasyonları */
@keyframes studioRecGlow {
    0% { box-shadow: inset 0 0 0px transparent; border-color: transparent; }
    50% { box-shadow: inset 0 0 25px rgba(250, 82, 82, 0.15); border-color: rgba(250, 82, 82, 0.5); }
    100% { box-shadow: inset 0 0 0px transparent; border-color: transparent; }
}
.studio-recording-glow {
    animation: studioRecGlow 2s infinite ease-in-out;
    border: 1px solid var(--danger) !important;
    position: relative;
}
.studio-recording-glow::after {
    content: '🔴 KAYITTA';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--danger);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    animation: pulseRed 1s infinite;
    z-index: 10;
}

/* YENİ: Sürükle-Bırak (Drag & Drop) Animasyonları */
@keyframes studioDragGlow {
    0% { box-shadow: inset 0 0 0px transparent; border-color: transparent; }
    50% { box-shadow: inset 0 0 30px rgba(132, 94, 247, 0.3); border-color: #845ef7; }
    100% { box-shadow: inset 0 0 0px transparent; border-color: transparent; }
}
.studio-drag-glow {
    animation: studioDragGlow 1.5s infinite ease-in-out;
    border: 2px dashed #845ef7 !important;
    background: rgba(132, 94, 247, 0.08) !important;
    position: relative;
}
.studio-drag-glow::before {
    content: '📂 SES DOSYASINI BURAYA BIRAK';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #845ef7;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.studio-drag-glow > * {
    opacity: 0.3; /* Bırakma esnasında arkadaki butonları hafifçe soluklaştırır */
    pointer-events: none;
}

.feedback-section {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
    border: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
}
.feedback-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--text-muted);
}
.feedback-stats span {
    color: var(--primary);
    font-size: 15px;
}

.social-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
}
.btn-social {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text);
    font-weight: bold; font-size: 13px; cursor: pointer; transition: 0.2s;
}
.btn-social:hover { background: rgba(0,0,0,0.05); }
.btn-social.liked { background: rgba(64, 192, 87, 0.15); color: var(--success); border-color: var(--success); }
.btn-social.disliked { background: rgba(250, 82, 82, 0.15); color: var(--danger); border-color: var(--danger); }

.track-progress-container { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.track-progress-bar { flex: 1; cursor: pointer; accent-color: var(--primary); touch-action: none; /* Mobilde çubuğu kaydırırken sayfanın kaymasını/yakınlaşmasını engeller */ }
.track-time-label { font-size: 11px; font-weight: bold; color: var(--text-muted); min-width: 35px; }

@media (max-width: 450px) {
    .app-container { padding: 20px 15px; }
    .fretboard { min-width: 320px; }
    .fret-numbers { min-width: 320px; }
}

.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end; 
}

.top-controls {
    justify-content: flex-start;
}

.bottom-controls {
    justify-content: space-between;
}

.action-group {
    display: flex;
    align-items: center;
    height: 100%;
    margin-bottom: 2px; 
}

.transpose-tools-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.controls-row select {
    max-width: 100%;
}

details.seo-text-section summary::-webkit-details-marker { display: none; }
details.seo-text-section[open] summary .accordion-icon { transform: rotate(180deg); }
details.seo-text-section summary .accordion-icon { transition: transform 0.3s; display: inline-block;}

#btn-scroll-top {
    display: block;
    margin: 20px auto 10px auto; /* Sayfanın en altına, ortalayarak akışa dahil eder */
    padding: 8px 24px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 20px; /* Yumuşak kapsül (pill) görünümü */
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
#btn-scroll-top.visible { 
    opacity: 1; 
    pointer-events: auto; 
}
#btn-scroll-top:hover { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
    transform: translateY(-2px); 
}

#toast-container {
    position: fixed; top: 25px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; gap: 10px; z-index: 9999;
    pointer-events: none; /* Konteyner tıklamaları engellemesin */
}
.toast {
    background: var(--surface); color: var(--text);
    padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: bold;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5); border: 2px solid var(--primary);
    animation: toastFadeIn 0.3s ease, toastFadeOut 0.3s ease 2.7s forwards;
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    pointer-events: auto; /* PWA güncelleme tıklaması için zorunlu (Bug Fix) */
}
/* Bildirimler artık aşağıdan değil, yukarıdan (negatif Y) süzülerek gelsin */
@keyframes toastFadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastFadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-20px); } }

@keyframes flashMeasure { 0% { box-shadow: inset 0 0 80px rgba(64,192,87,0.7); } 100% { box-shadow: inset 0 0 0px transparent; } }
@keyframes flashBeat { 0% { box-shadow: inset 0 0 50px rgba(34,139,230,0.6); } 100% { box-shadow: inset 0 0 0px transparent; } }
.flash-measure { animation: flashMeasure 0.3s ease-out; }
.flash-beat { animation: flashBeat 0.3s ease-out; }

/* UX VE ERİŞİLEBİLİRLİK İYİLEŞTİRMELERİ */
.btn, .prog-card, .fretboard, .switch-container {
    user-select: none; /* Hızlı tıklamalarda metin seçilmesini engeller */
    -webkit-user-select: none;
}

/* Klavyeyle gezinirken (Tab tuşu) seçili öğeyi belli et */
*:focus-visible {
    outline: 2px solid var(--warning);
    outline-offset: 2px;
}
/* ODAK MODU STİLLERİ */
body.focus-mode .header-top-row,
body.focus-mode .seo-text-section,
body.focus-mode .feedback-section,
body.focus-mode .footer-brand,
body.focus-mode .chord-title-wrapper {
    display: none !important;
}

body.focus-mode .panel-wrapper.collapsed {
    display: none !important;
}

body.focus-mode .toggles > *:not(#btn-focus-mode) {
    display: none !important;
}

body.focus-mode .panel-wrapper:not(.collapsed) {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border-color: var(--primary);
    transform: scale(1.01);
}
/* ONLINE/OFFLINE BELİRTEÇ STİLLERİ */
.status-indicator {
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.status-online {
    background: rgba(64, 192, 87, 0.15);
    color: var(--success);
    border-color: rgba(64, 192, 87, 0.3);
}
.status-offline {
    background: rgba(250, 82, 82, 0.15);
    color: var(--danger);
    border-color: rgba(250, 82, 82, 0.3);
}

/* Odak modunda bu belirteci de gizleyelim ki dikkat dağıtmasın */
body.focus-mode #network-status {
    display: none !important;
}
/* ==================================================== */
/* UI & UX SADELEŞTİRME VE MOBİL OPTİMİZASYON KODLARI   */
/* ==================================================== */

/* Ayarlar Menüsü Açılır/Kapanır (Details/Summary) Temizliği */
details.settings-menu { position: relative; }
details.settings-menu > summary::-webkit-details-marker { display: none; }
details.advanced-controls-wrapper > summary::-webkit-details-marker { display: none; }

/* Mobilde Klavye Genişliğini Ekrana Duyarlı (Responsive) Yap */
.fretboard {
    max-width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
}
.fret-numbers {
    max-width: 100%;
}

@media (max-width: 768px) {
    /* Mobilde kontrollerin tam genişlik alması */
    .group-col, .basic-controls, .advanced-controls, select {
        width: 100%;
    }
    
    .action-group, .action-group button {
        width: 100%;
        justify-content: center;
    }
    
    .transpose-tools-group {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Mobilde panellerde Sürükle-Bırak eylemini kapat (yanlışlıkla kaymayı engeller) */
    .drag-handle {
        touch-action: pan-y; /* Yukarı aşağı kaydırmaya izin ver, sağa sola kaydırmayı kapa */
    }
}
/* Toplu Klavye ve Perde Numaraları Stili */
.mini-chord-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 8px;
    min-width: 140px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    vertical-align: top;
    flex-shrink: 0;
}
.mini-chord-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
}
.mini-fretboard {
    position: relative;
    width: 120px;
    height: 90px;
    border: 2px solid #1a0f05;
    border-left: 6px solid #e0c285;
    background: var(--fretboard-bg);
    border-radius: 3px;
}
.mini-fret-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    background: #d4af37;
}
.mini-string-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: #ffffff;
    opacity: 0.7;
}
.mini-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8px;
    font-weight: bold;
    transform: translate(-50%, -50%);
    z-index: 5;
}
.mini-string-status {
    position: absolute;
    right: -14px;
    font-size: 10px;
    font-weight: bold;
    color: var(--fret-color);
    transform: translateY(-50%);
}
.mini-fret-numbers {
    display: flex;
    width: 120px;
    margin-top: 4px;
    padding-left: 2px;
}
.mini-fret-num {
    flex: 1;
    text-align: center;
    font-size: 9px;
    font-weight: bold;
    color: var(--text-muted);
}
/* ÇAPRAZ REFERANS ÇÖZÜMÜ: Mini Klavyeler için Solak (Ayna) Modu Sınıfları */
.mini-fretboard.lefty {
    border-left: 2px solid #1a0f05;
    border-right: 6px solid #e0c285;
}
.mini-fret-numbers.lefty {
    flex-direction: row-reverse;
    padding-left: 0;
    padding-right: 2px;
}
.mini-string-status.lefty {
    right: auto;
    left: -14px;
}
/* ELMAS IŞILTISI VE KEŞFEDİLEBİLİR LİNKLER */
.magic-link {
    cursor: pointer;
    color: var(--primary);
    position: relative;
    display: inline-block;
    transition: transform 0.2s, color 0.2s;
    overflow: hidden;
    padding: 0 4px;
    border-radius: 4px;
}

.magic-link:hover {
    transform: scale(1.03);
    color: var(--primary-hover);
    background: rgba(34, 139, 230, 0.1);
}

.magic-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: diamondShine 20s infinite;
    pointer-events: none;
}

body.dark-mode .magic-link::after {
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
}

@keyframes diamondShine {
    0% { left: -150%; opacity: 0; }
    2% { opacity: 1; }
    15% { left: 150%; opacity: 0; }
    100% { left: 150%; opacity: 0; }
}

/* HEDEF ELEMENT PARLAMA (HIGHLIGHT) EFEKTİ */
@keyframes tourHighlightAnim {
    0% { box-shadow: 0 0 0px transparent; transform: scale(1); }
    50% { box-shadow: 0 0 30px var(--primary); transform: scale(1.02); z-index: 100; border-color: var(--primary); }
    100% { box-shadow: 0 0 0px transparent; transform: scale(1); }
}
.tour-highlight {
    animation: tourHighlightAnim 2s ease-in-out;
    border-radius: 8px;
    transition: all 0.3s ease;
}
/* Zıplayan Pena Bildirim Stilleri */
#cute-cookie-banner {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-radius: 16px;
    padding: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cute-banner-hidden {
    display: none !important;
}

.cute-banner-icon {
    position: absolute;
    top: -25px;
    left: 20px;
    font-size: 40px;
    animation: bounceIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.cute-banner-content p {
    margin: 10px 0 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}

.cute-banner-content a {
    color: var(--primary);
    font-weight: bold;
    text-decoration: underline;
}

.cute-banner-content button {
    width: 100%;
    margin-top: 15px;
    font-size: 14px;
    padding: 10px;
}

@keyframes bounceIn {
    0% { transform: translateY(50px) scale(0); opacity: 0; }
    50% { transform: translateY(-10px) scale(1.1); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes shrinkAndSpinOut {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.animate-out {
    animation: shrinkAndSpinOut 0.5s ease-in forwards !important;
}
@keyframes metroPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 10px var(--warning); }
    100% { transform: scale(1); opacity: 0.8; }
}
#active-metro-indicator {
    animation: metroPulse 1.2s infinite ease-in-out;
}

/* ==================================================== */
/* CROSS-BROWSER (TÜM TARAYICILARDA AYNI GÖRÜNÜM) CSS'İ */
/* ==================================================== */

/* 1. MOBİL TIKLAMA PARLAMALARINI (BLUE FLASH) SİLME */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 2. EVRENSEL KAYDIRMA ÇUBUKLARI (SCROLLBARS) EŞİTLEMESİ */
/* Firefox İçin */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
/* Chrome, Edge, Safari İçin */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
body.dark-mode ::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 3. TÜM TARAYICILARDA KUSURSUZ RANGE SLIDER (SÜRGÜ) GÖRÜNÜMÜ */
/* Eski Native (Yerel) Görüntüyü Sıfırla */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}
input[type="range"]:focus {
    outline: none;
}

/* Chrome, Safari, Edge İçin Sürgü İzi (Track) */
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    transition: 0.2s;
}
/* Chrome, Safari, Edge İçin Sürgü Topu (Thumb) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: -5px; /* (Track Yüksekliği / 2) - (Thumb Yüksekliği / 2) */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.1s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Firefox İçin Sürgü İzi (Track) */
input[type="range"]::-moz-range-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    transition: 0.2s;
    border: none;
}
/* Firefox İçin Sürgü Topu (Thumb) */
input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.1s ease;
}
input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* 4. AÇILIR MENÜ (DETAILS) OKLARINI GİZLEME (Firefox & Safari Uyumu) */
details summary {
    list-style: none; /* Firefox için oku gizler */
}
details summary::-webkit-details-marker {
    display: none; /* Chrome/Safari için oku gizler */
}

/* --- ŞARKI ÖĞRENME MODÜLÜ STİLLERİ --- */
.estetik-secici {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--primary);
    font-weight: bold;
    outline: none;
    box-shadow: 0 0 10px rgba(34, 139, 230, 0.2);
    cursor: pointer;
}

/* Cam Efektli (Glassmorphism) Hüzünlü Pencere */
#estetikPencere {
    background: rgba(20, 20, 25, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.0);
    border-radius: 12px;
    color: #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(15px);
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
}

#estetikPencere.pencere-acik {
    opacity: 1;
    transform: translateY(0);
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

/* Şarkı Sözlerindeki Akorlar İçin Işıltı Animasyonu (Hizalamayı Bozmaz) */
.akor-isilti {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
    transition: color 0.2s ease, text-shadow 0.2s ease;
    cursor: pointer;
    /* DİKKAT: bold, padding, inline-block veya transform EKLENMEMELİDİR! */
}

.akor-isilti:hover {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 0 25px rgba(255, 215, 0, 0.6);
    color: #fff;
}

.sarki-sozleri-akisi {
    white-space: pre; /* Orijinal boşlukları birebir kilitler */
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
}
/* --- SİHİRLİ TEORİ DÖNÜŞÜM EFEKTLERİ --- */
.magic-transform-text {
    display: inline-block;
    transition: all 0.5s ease;
}
.magic-transform-text.glow-effect {
    animation: magicGlow 1.5s ease-out forwards;
}
@keyframes magicGlow {
    0% { transform: scale(1.1); color: #ffd700; text-shadow: 0 0 15px rgba(255, 215, 0, 1); }
    100% { transform: scale(1); color: var(--text); text-shadow: none; }
}
.theory-badge {
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: help;
}
/* --- AKOR ANATOMİSİ (KALICI FORMÜL MODU) --- */
.anatomy-label {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 900;
    color: #fcc419;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.9);
    background: rgba(0,0,0,0.6);
    padding: 2px 5px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}
/* --- YAZDIRMA (PRINT) STİLLERİ --- */
@media print {
    @page { margin: 1cm; }
    
    body.print-mode {
        display: block !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: auto !important; 
    }
    
    body.print-mode > *:not(#estetikPencere) {
        display: none !important;
    }
    
    #estetikPencere {
        display: block !important;
        position: static !important;
        width: 100% !important;
        box-sizing: border-box !important;
        max-height: none !important;
        overflow: visible !important;
        background: white !important; 
        color: black !important;
        box-shadow: none !important;
        border: none !important;
        /* YENİ: Ekrandaki 20px padding'i koruyoruz ki sola çekilen akorlar kağıttan taşmasın */
        padding: 20px !important; 
        margin: 0 !important;
    }
    
    #pencere-govde {
        display: flex !important;
        gap: 20px !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
    }
    
    #pencere-akor-alani {
        display: flex !important;
        flex-direction: column !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .mini-chord-card {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        background: transparent !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .mini-fretboard {
        background: transparent !important; 
        border: 2px solid #333 !important;
        border-left: 6px solid #666 !important; 
    }
    
    .mini-string-line {
        background: transparent !important; 
        border-top: 1.5px solid #444 !important;
        height: 0 !important;
        opacity: 1 !important;
    }
    
    .mini-fret-line {
        background: transparent !important; 
        border-left: 1.5px solid #aaa !important;
        width: 0 !important;
        opacity: 1 !important;
    }
    
    .mini-dot {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background-color: #228be6 !important; 
        color: white !important;
    }
    
    .sarki-sozleri-akisi {
        /* YENİ: Ekrandaki font boyutu, satır aralığı ve font tipini BİREBİR kilitliyoruz. 
           Böylece piksel bazlı kaydırmalar kağıtta şaşmaz. */
        font-size: 15px !important; 
        line-height: 1.8 !important; 
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        white-space: pre !important;
        overflow: visible !important;
        overflow-x: visible !important; 
    }
    
    #pencereSarkiIsmi {
        font-size: 24px !important;
        margin-bottom: 15px !important;
        color: black !important;
    }
    
    #btn-reset-chords, #btn-print-song {
        display: none !important;
    }
    
    .akor-isilti {
        color: black !important;
        text-shadow: none !important;
        font-weight: bold !important;
    }
    
    #estetikPencere::after {
        content: "Bu çıktı www.akorstudyo.com tarafından oluşturulmuştur.";
        display: block !important;
        text-align: center !important;
        margin-top: 30px !important;
        padding-top: 15px !important;
        border-top: 1px dashed #ccc !important;
        font-size: 11px !important;
        color: #555 !important;
    }
}
/* --- RETRO MİNİ OYNATICI STİLLERİ (GÜNCELLENMİŞ) --- */
#retro-player-wrap {
    width: 100%;
    background: linear-gradient(180deg, #2a2a2e 0%, #111 100%);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    display: none; /* İlk başta gizli başlar */
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
    margin-top: 15px;
    animation: slideDownFade 0.3s ease-out forwards;
    position: relative;
}
@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}
.retro-screen {
    background: #000;
    border: 2px inset #555;
    border-radius: 3px;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 35px;
}
#retro-vis { width: 100px; height: 100%; background: #000; }
.retro-text { color: #0f0; font-size: 11px; font-weight: bold; text-shadow: 0 0 5px rgba(0,255,0,0.5); flex: 1; white-space: nowrap; overflow: hidden; }
.retro-controls { display: flex; justify-content: space-between; align-items: center; }
.retro-btn { background: linear-gradient(180deg, #555 0%, #222 100%); border: 1px solid #111; border-top: 1px solid #777; color: #ddd; font-weight: bold; font-size: 11px; padding: 4px 15px; border-radius: 3px; cursor: pointer; text-transform: uppercase; }
.retro-btn:active { background: #111; border-top: 1px solid #111; }
.retro-slider { width: 90px; accent-color: #0f0; margin: 0; }
.retro-close {
    position: absolute; top: -10px; right: -10px; background: #fa5252; color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: bold; cursor: pointer; border: 2px solid #222; box-shadow: 0 2px 5px rgba(0,0,0,0.5); transition: 0.2s;
}
.retro-close:hover { transform: scale(1.1); background: #ff6b6b; }
@media print { #retro-player-wrap { display: none !important; } }

/* --- KLAVYE TROLLEME EFEKTİ --- */
@keyframes telTitresim {
    0% { transform: translateY(0); }
    25% { transform: translateY(-2px) rotate(1deg); }
    50% { transform: translateY(2px) rotate(-1deg); }
    75% { transform: translateY(-1px) rotate(0.5deg); }
    100% { transform: translateY(0); }
}
.titre-efekti {
    animation: telTitresim 0.15s ease-in-out;
}
/* GARAGON KARŞILAMA MESAJI STİLLERİ */
#welcome-toast {
    position: fixed; bottom: 230px; right: 25px; width: 300px; max-width: 90vw;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    padding: 20px; z-index: 10001;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
    transform: translateX(120%); opacity: 0; pointer-events: none;
}
#welcome-toast.toast-show { transform: translateX(0); opacity: 1; pointer-events: auto; }
.welcome-toast-progress { position: absolute; bottom: 0; left: 0; height: 4px; background-color: var(--primary); width: 100%; transform-origin: left; border-radius: 0 0 16px 16px; }
.toast-show .welcome-toast-progress { animation: progressShrink 15s linear forwards; }
@keyframes progressShrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* EFSANEVİ MESAJ (TOAST) BİLEŞENİ */
#legend-toast {
    visibility: hidden;
    min-width: 280px;
    max-width: 400px;
    background-color: #1a1a1a;
    color: #f1f1f1;
    text-align: left;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.6);
    border-left: 4px solid #ff9800; /* Rock & Roll Turuncusu vurgu */
    opacity: 0;
    transition: opacity 0.4s ease-in-out, bottom 0.4s ease-in-out;
}

#legend-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 40px;
}

#legend-toast h4 {
    margin: 0 0 8px 0;
    color: #ff9800;
    font-family: inherit;
    font-size: 16px;
}