/* siralama.css - Midnight Gold Edition */

:root {
    --bg-main: #0B1120;
    --bg-card: #172133;
    --text-pure: #FFFFFF;
    --text-muted: #94A3B8;
    --primary: #818CF8;
    --accent: #FBBF24;
    --border-soft: rgba(251, 191, 36, 0.15);
}

body {
    background-color: var(--bg-main);
    color: var(--text-pure);
    font-family: 'Inter', sans-serif;
}

.container { max-width: 1150px; margin: 30px auto; padding: 0 20px; }

/* KART TASARIMLARI */
.card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 35px;
    border: 1px solid var(--border-soft);
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.card h3 {
    font-family: 'Poppins';
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* STEPPER VE INPUTLAR */
.subjects-row { display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; }
.subject-item { display: flex; flex-direction: column; align-items: center; gap: 15px; min-width: 170px; }
.subject-item label { font-weight: 700; color: var(--text-muted); font-size: 0.85rem; }

.stepper-group { display: flex; gap: 12px; }
.stepper { display: flex; align-items: center; border-radius: 15px; padding: 5px 10px; position: relative; border: 1px solid var(--border-soft); background: var(--bg-main); }

.stepper.correct { border-color: #22c55e44; background: rgba(34, 197, 94, 0.05); }
.stepper.wrong { border-color: #ef444444; background: rgba(239, 68, 68, 0.05); }

.step-label { font-size: 0.65rem; font-weight: 900; color: var(--text-muted); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); }

.step-btn { 
    width: 28px; height: 28px; border: none; background: var(--bg-card); 
    border-radius: 8px; font-weight: 800; cursor: pointer; color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.step-btn:hover { background: var(--accent); color: var(--bg-main); }

.stepper input { width: 35px; border: none; text-align: center; font-weight: 800; font-size: 1rem; background: transparent; color: #fff; }

.input-modern {
    background: var(--bg-main); border: 1px solid var(--border-soft); color: #fff;
    padding: 12px; border-radius: 15px; text-align: center; font-weight: 800; width: 100px;
}

.bottom-combo { display: flex; gap: 20px; flex-wrap: wrap; }
.mini-card { flex: 1; min-width: 300px; }

/* SONUÇ KUTUSU */
#sonuc-kutusu { 
    display: none; margin-top: 50px; padding: 40px; 
    background: var(--bg-card); border-radius: 35px; 
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.1);
}
.result-grid { display: flex; justify-content: space-around; gap: 15px; flex-wrap: wrap; }
.result-card { flex: 1; min-width: 150px; padding: 20px; background: var(--bg-main); border-radius: 20px; border: 1px solid var(--border-soft); }
.result-card h4 { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 800; }
.score { font-size: 1.3rem; font-weight: 900; color: var(--accent); }
.rank { font-size: 1rem; font-weight: 800; color: #fff; margin-top: 5px; }

/* GENEL VURGU */
.vurgu { color: var(--accent); }

/* =========================================
   SIRALAMAYI BAŞLAT BUTONU (Ateşleme Düğmesi)
   ========================================= */
.buton-baslat {
    background: var(--accent); /* Altın Sarısı Zemin */
    color: var(--bg-main);    /* Koyu Lacivert Yazı */
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;        /* Yazıyı büyüttük */
    font-weight: 900;         /* Extra Bold (Çok Kalın) */
    padding: 20px 60px;       /* Butonu iyice genişlettik */
    border-radius: 60px;      /* Tam yuvarlak (pill) şekil */
    border: none;
    cursor: pointer;
    
    /* Esnek kutu ile ikon ve metni ortala */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;                /* İkon ile metin arasındaki boşluk */
    
    letter-spacing: 1px;      /* Harf aralarını açtık */
    text-transform: uppercase; /* Tüm harfler büyük */
    
    /* Ateşli Gölge Efekti */
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
    
    /* Yumuşak Animasyon Geçişi */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    position: relative;
    overflow: hidden; /* Taşmaları gizle */
}

/* İkonun Boyutu */
.buton-baslat i {
    font-size: 1.6rem;
    transition: transform 0.4s ease;
}

/* HOVER (Üzerine Gelince) EFEKTİ */
.buton-baslat:hover {
    transform: translateY(-6px) scale(1.02); /* Yukarı kalk ve hafif büyü */
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.6); /* Gölgeyi devleştir */
    background: #ffd147; /* Rengi biraz daha aç (parlama efekti) */
}

/* Hover'da ikonun hareketi */
.buton-baslat:hover i {
    transform: rotate(-45deg) translateX(5px); /* Roket hafif dönsün ve ileri gitsin */
}

/* TIKLAMA EFEKTİ */
.buton-baslat:active {
    transform: translateY(-2px) scale(0.98); /* Tıklama hissi için küçül */
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

/* =========================================
   OBP YAN TUŞLAR OPERASYONU
   ========================================= */

/* Kapsayıcıyı hizalayalım */
.obp-karargah {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--bg-main);
    border-radius: 15px;
    border: 2px solid var(--border-soft);
    transition: all 0.3s ease;
}

/* Giriş kutusunu sadeleştirelim */
#obp {
    background: transparent !important;
    border: none !important;
    padding: 12px 40px 12px 20px !important; /* Sağdan tuşlar için yer açtık */
    width: 130px !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #fff !important;
}

/* Yandaki Tuş Paneli */
.obp-tuslar {
    position: absolute;
    right: 5px;
    display: flex;
    flex-direction: column; /* Üst üste diz */
    gap: 2px;
}

/* Küçük Ok Butonları */
.obp-ok {
    background: rgba(251, 191, 36, 0.1);
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    width: 24px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.obp-ok:hover {
    background: var(--accent);
    color: var(--bg-main);
}

/* Hover'da Tüm Kapsayıcının Parlaması */
.obp-karargah:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

/* Tarayıcı oklarını kesin olarak gizle */
#obp::-webkit-inner-spin-button, 
#obp::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }