/* =========================================
   1. GENEL AYARLAR (DARK MODE GLOBAL)
   ========================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0f0f; 
    color: #fff; 
    margin: 0;
    padding: 0;
}

/* Sayfa Başlıkları */
.page-header {
    text-align: center;
    padding: 50px 20px;
    background: #111;
    color: white;
    margin-bottom: 30px;
    border-bottom: 2px solid #e74c3c; 
}
.page-header h1 { margin: 0 0 10px 0; font-family: 'Orbitron', sans-serif; }

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* =========================================
   2. KART VE SEÇİM KUTUSU (CALCULATOR) STİLLERİ
   ========================================= */
.calculator-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}

.calculator-box {
    background: #161616;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #e74c3c; 
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
    cursor: pointer;
}

.form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================
   3. POPÜLER KART (SAĞDAKİ SONUÇ KARTI)
   ========================================= */
.card {
    background: #161616; 
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.card.popular {
    border: 2px solid #e74c3c;
    background: #1a1a1a;
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.15);
}

.card-header { 
    background: rgba(255,255,255,0.03); 
    padding: 30px 20px; 
    border-bottom: 1px solid #333; 
}

.card-body ul { list-style: none; padding: 20px; margin: 0; }
.card-body li { 
    padding: 15px 0; 
    border-bottom: 1px solid #222; 
    color: #fff; 
    font-size: 1.1rem;
}

.card-footer { 
    padding: 20px; 
    margin-top: auto; 
}

/* =========================================
   4. TEMA DEĞİŞTİRME BUTONU (TOGGLE)
   ========================================= */
.theme-switch {
    display: inline-block;
    position: relative;
    width: 46px;
    height: 24px;
}
.theme-switch input { display: none; }
.slider {
    background-color: #333;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
    border-radius: 24px;
    border: 1px solid #555;
}
.slider:before {
    background-color: #fff;
    bottom: 2px;
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    transition: 0.4s;
    width: 18px;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #e74c3c;
    border-color: #e74c3c;
}
input:checked + .slider:before {
    transform: translateX(20px);
}

/* =========================================
   5. LIGHT MODE (Yumuşak Aydınlık Mod)
   ========================================= */
body.light-mode {
    background-color: #f4f4f9; 
    color: #222;
}

body.light-mode .page-header { background: #fff; color: #222; }
body.light-mode .page-header p { color: #555; }

body.light-mode .calculator-box,
body.light-mode .card.popular {
    background-color: #ffffff;
    border-color: #ddd;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

body.light-mode .form-control { background: #fdfdfd; border: 1px solid #ccc; color: #222; }
body.light-mode .card-header { background: #f9f9f9; border-bottom: 1px solid #ddd; }
body.light-mode .card-body li { border-bottom: 1px solid #eee; color: #333; }