@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap');

/* Tüm elementler için kutu modelini düzelt */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Mobilde tıklama mavisini kaldır */
}

/* style.css dosyasında body kısmını şöyle güncelle: */

body {
    /* ÖNCE bunu ekle: Gradient çalışmazsa bu renk devreye girer */
    background-color: #1b1d20; 
    
    /* Derin Odak Arkaplanı */
    background-image: radial-gradient(circle at center, #3a3f45 0%, #1b1d20 100%);
    
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    overflow: hidden; 
    height: 100vh;
    height: -webkit-fill-available; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- BUTONLAR --- */
.icon-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1); /* Hafif arka plan */
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    /* Mobilde kolay basılsın diye ortalama */
    display: flex;
    justify-content: center;
    align-items: center;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.2); }
.top-left { top: 20px; left: 20px; }
.top-right { top: 20px; right: 20px; }

/* --- AYARLAR PANELİ --- */
.settings-panel {
    position: absolute;
    top: 0;
    right: -400px; /* Tam gizle */
    width: 320px;
    height: 100%;
    background: #151515;
    padding: 30px;
    z-index: 50;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.settings-panel.open { right: 0; }

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.settings-header h2 { margin: 0; font-weight: 500; }
#close-settings {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.control-group { margin-bottom: 30px; }
.control-group label { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 300; font-size: 0.9rem; color: #ccc;}
.control-group input[type="range"] { width: 100%; cursor: pointer; accent-color: #55b7a4; }

/* Checkbox satırı için özel düzen */
.control-group.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 20px;
}
.control-group.row input { width: auto; transform: scale(1.5); }

/* --- ANA ALAN --- */
.container {
    position: absolute; /* Akıştan çıkar, ekrana sabitle */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Mobilde ekranın tamamını kaplamaya zorla */
    display: flex;
    flex-direction: column;
    align-items: center;     /* Yatayda ortala */
    justify-content: center; /* Dikeyde TAM ortala */
    z-index: 0; /* Ayarlar butonunun altında kalsın */
    pointer-events: none; /* Tıklamaları engelleme (arkadaki butonlar için) */
}

/* Daire ve yazı etkileşime açık kalsın */
.circle-container, #instruction-text {
    pointer-events: auto;
}

.circle-container {
    position: relative;
    /* AKILLI BOYUTLANDIRMA:
       Masaüstünde 300px, 
       Telefonda ekran genişliğinin %70'i */
    width: min(300px, 70vw);
    height: min(300px, 70vw); 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px; /* Yazı boşluğu */
}

.circle {
    background-color: #f1f1f1;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    position: absolute;
    transform: scale(0.3); /* Başlangıç küçük */
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

#instruction-text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin: 0;
    text-transform: uppercase;
}

/* --- OVERLAY (GİRİŞ EKRANI) --- */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #1b1d20;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.overlay-content h1 { font-weight: 300; margin-bottom: 10px; }
#start-btn {
    margin-top: 20px;
    padding: 15px 50px;
    font-size: 18px;
    background: #55b7a4;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(85, 183, 164, 0.3);
}

/* --- TELEFONLARA ÖZEL AYARLAR (Mobile Responsive) --- */
@media screen and (max-width: 600px) {
    
    /* Ayarlar paneli tüm ekranı kaplasın */
    .settings-panel {
        width: 100%;
        right: -100%; 
        padding: 20px;
    }
    
    /* Daire telefonda biraz daha büyük görünsün */
    .circle-container {
        width: 80vw;
        height: 80vw;
    }

    #instruction-text {
        font-size: 1.2rem;
    }

    /* Butonları kenarlardan biraz uzaklaştır */
    .top-left { top: 15px; left: 15px; }
    .top-right { top: 15px; right: 15px; }
}