/* ==========================================
   ODAKLANMA KARARGAHI - FİNAL SÜRÜM (SCROLL FİX)
   ========================================== */

:root {
    --bg: #0f172a;
    --card: #1e293b;
    --primary: #818cf8;
    --accent: #fbbf24; /* Hedeft Altın Sarısı */
    --text: #f8fafc;
    --danger: #ef4444;
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
}

.focus-wrapper {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    padding: 40px 20px; 
    width: 100%; 
    box-sizing: border-box;
}

/* KRONOMETRE */
.timer-container {
    background: var(--card); 
    width: 300px; 
    height: 300px;
    border-radius: 50%; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    border: 8px solid rgba(129, 140, 248, 0.1);
    box-shadow: 0 0 50px rgba(0,0,0,0.5); 
    margin-bottom: 30px;
}

.time-display { 
    font-family: 'Poppins', sans-serif; 
    font-size: 56px; 
    font-weight: 800; 
}

/* SES BUTONLARI */
.sound-panel {
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px;
    width: 100%; 
    max-width: 420px; 
    margin-bottom: 25px;
}

.sound-btn {
    background: var(--card); 
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text); 
    padding: 12px 5px; 
    border-radius: 12px;
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 5px;
}

.sound-btn.active { 
    border-color: var(--accent); 
    color: var(--accent); 
    background: rgba(251, 191, 36, 0.1); 
}

/* KONTROL ALANI: SABİT YERLEŞİM (SES BUTONLARININ ALTI) */
.timer-controls-main {
    width: 100%; 
    max-width: 420px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px;
}

.timer-controls { 
    display: flex; 
    gap: 10px; 
    width: 100%; 
}

.control-btn {
    flex: 1; 
    padding: 15px; 
    border-radius: 12px; 
    border: none;
    font-weight: 800; 
    cursor: pointer; 
    display: flex; 
    align-items: center;
    justify-content: center; 
    gap: 8px; 
    font-family: 'Inter', sans-serif;
}

.btn-start { 
    background: var(--accent); 
    color: #000; 
} /* Başlat Altın Sarısı */

.btn-lap { 
    background: var(--primary); 
    color: #fff; 
}

.btn-reset { 
    background: var(--danger); 
    color: #fff; 
}

/* TUR LİSTESİ: KAYDIRILABİLİR (SCROLLABLE) */
.lap-container {
    margin-top: 10px; 
    max-height: 200px; /* Belli bir süre sonra hapsolur */
    overflow-y: auto;
    padding-right: 5px;
    display: flex; 
    flex-direction: column; 
    gap: 8px;
}

/* Scrollbar Tasarımı (Altın Sarısı Detaylı) */
.lap-container::-webkit-scrollbar { width: 4px; }
.lap-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
.lap-container::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }

.lap-item {
    display: flex; 
    justify-content: space-between;
    padding: 12px 15px; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 10px;
}

.lap-count { 
    color: var(--accent); 
    font-weight: 800; 
}

.lap-time { 
    font-family: 'Poppins', sans-serif; 
    font-weight: 600; 
}

@media (max-width: 480px) {
    .control-btn span { display: none; }
    .control-btn i { font-size: 1.5rem; }
    .sound-panel { grid-template-columns: repeat(2, 1fr); }
}