/* --- GENEL SIFIRLAMA --- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    min-height: 100dvh; 
    height: auto;
    margin: 0;
    padding: 20px 10px;
    overflow-x: hidden;
    overflow-y: auto; 
}

.tuner-container {
    background-color: #1e293b;
    padding: 15px; 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-top: auto; 
    margin-bottom: auto; 
}

/* --- LOGO VE MARKA --- */
.app-logo {
    width: 65px; height: 65px; object-fit: cover; border-radius: 14px;
    margin-bottom: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.4); border: 2px solid #38bdf8;
}
h1 { margin: 0 0 5px 0; font-size: 26px; color: #38bdf8; letter-spacing: 2px; font-weight: 800; text-transform: uppercase; }
.brand-subtitle { font-size: 11px; color: #94a3b8; margin-bottom: 15px; letter-spacing: 1px; text-transform: uppercase; }

/* --- KONTROLLER --- */
.controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; }
.full-width { grid-column: span 2; }
select {
    padding: 8px; background-color: #0f172a; color: white; border: 1px solid #475569;
    border-radius: 8px; font-size: 13px; outline: none; cursor: pointer; appearance: none;
    text-align: center; font-weight: 600;
}
select:focus { border-color: #38bdf8; }
.highlight-select { border-color: #22c55e; color: #22c55e; } 

/* --- DETAYLI ANALOG GÖSTERGE VE CETVEL --- */
.meter-container {
    position: relative; width: 100%; max-width: 280px; height: 135px; 
    margin: 0 auto 15px auto; background-color: #0f172a;
    border-top-left-radius: 140px; border-top-right-radius: 140px;
    border: 3px solid #334155; border-bottom: none; overflow: hidden;
}

.meter-bg {
    position: absolute; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 100%, transparent 50%, #1e293b 51%, #1e293b 90%, transparent 91%);
}

.dial-container { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }

/* Yeni: Cetvel Çizgileri (Tick Marks) */
.dial-line {
    position: absolute; bottom: 0; left: 50%;
    width: 2px; height: 120px; margin-left: -1px;
    transform-origin: bottom center; z-index: 1;
}

.dial-line::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; background-color: #475569; border-radius: 2px;
}

/* Çizgi Boyutları */
.dial-line.minor::before { height: 6px; background-color: #334155; } /* Her 10 Cent */
.dial-line.medium::before { height: 12px; background-color: #64748b; } /* Her 50 Cent (Yarım Ses) */
.dial-line.major::before { height: 18px; background-color: #38bdf8; width: 3px; margin-left: -0.5px; } /* Tam Notalar */
.dial-line.center-major::before { background-color: #22c55e; } /* Hedef Nota Rengi */

/* Harflerin Tasarımı */
.dial-label {
    position: absolute; top: 22px; left: 50%; width: 30px; margin-left: -15px;
    text-align: center; font-size: 11px; font-weight: 700; color: #64748b;
}

.dial-label.active-target {
    color: #22c55e; font-size: 16px; top: 20px;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.meter-center {
    position: absolute; bottom: 0; left: 50%; width: 3px; height: 25px;
    background-color: #22c55e; transform: translateX(-50%); z-index: 1;
}

.needle {
    position: absolute; bottom: -5px; left: 50%; width: 4px; height: 120px; 
    background-color: #ef4444; border-radius: 2px;
    transform-origin: bottom center; transform: rotate(0deg); z-index: 2;
}

/* --- BİLGİ EKRANLARI --- */
.note-display { font-size: 42px; font-weight: 800; margin: 0; color: #ffffff; text-shadow: 0 0 10px rgba(255,255,255,0.2); }
.frequency-display { font-size: 13px; color: #94a3b8; margin-bottom: 10px; background-color: #0f172a; display: inline-block; padding: 4px 10px; border-radius: 12px; }
.status-display { font-size: 14px; font-weight: 600; margin-bottom: 15px; padding: 8px; border-radius: 8px; background-color: #334155; transition: all 0.3s; }
button { background-color: #38bdf8; color: #0f172a; border: none; padding: 12px 20px; font-size: 16px; border-radius: 10px; cursor: pointer; width: 100%; font-weight: bold; transition: background 0.3s, transform 0.1s; }
button:hover { background-color: #0ea5e9; }
button:active { transform: scale(0.97); }

/* --- FOOTER --- */
#footer-placeholder { width: 100%; margin-top: auto; }
.footer { position: relative; text-align: center; font-size: 12px; color: #94a3b8; width: 100%; padding-top: 15px; }
.footer a { color: #38bdf8; text-decoration: none; font-weight: bold; }