/* ==========================================================================
   CALCULATOR MASTER STYLESHEET (MOBILE OPTIMIZED)
   ========================================================================== */

/* --- TEMEL YAPILAR --- */
.calc-page-container {
    padding: 140px 10% 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.calc-header { 
    text-align: center; 
    margin-bottom: 50px; 
    max-width: 700px; 
    z-index: 2;
}

.calc-header h1 { 
    font-size: 3.5rem; 
    margin: 20px 0; 
    line-height: 1.1; 
    font-weight: 800;
}

.calc-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- HESAP MAKİNESİ KUTUSU --- */
.calc-box {
    background: #0a0a0a; /* Daha koyu, modern zemin */
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 50px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(20px);
}

.calc-step { 
    margin-bottom: 50px; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 30px;
}

.calc-step:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.calc-step h4 { 
    margin-bottom: 20px; 
    color: white; 
    font-weight: 700; 
    font-size: 1.2rem;
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.calc-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* --- SEÇENEK BUTONLARI --- */
.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.opt-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 25px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.95rem;
    text-align: center;
    height: 100%;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.opt-btn i { 
    font-size: 2rem; 
    color: white; 
    transition: 0.3s;
    opacity: 0.7;
}

/* Hover Efekti */
.opt-btn:hover { 
    background: rgba(255,255,255,0.08); 
    transform: translateY(-5px); 
    border-color: rgba(255,255,255,0.3); 
}

.opt-btn:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Seçili Durum */
.opt-btn.selected {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--accent);
    color: white;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.15) inset;
}

.opt-btn.selected i { 
    color: var(--accent); 
    opacity: 1;
    text-shadow: 0 0 10px var(--accent);
}

/* --- FOOTER & TOPLAM ALANI --- */
.calc-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.total-area {
    width: 100%;
}

.total-area span { 
    display: block; 
    font-size: 1rem; 
    color: var(--text-muted); 
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-area h2 { 
    font-size: 4rem; 
    color: white; 
    margin: 0; 
    font-weight: 900; 
    letter-spacing: -2px;
    transition: 0.3s;
}

.disclaimer {
    font-size: 0.85rem;
    color: #888;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--accent); 
    text-align: left;
    width: 100%;
    line-height: 1.5;
}

/* ==========================================================================
   MOBILE & TABLET OPTIMIZATION (APP FEEL)
   ========================================================================== */

@media (max-width: 900px) {
    /* Konteyner Düzeni */
    .calc-page-container { 
        padding: 120px 20px 40px; 
    }
    
    .calc-header h1 { 
        font-size: 2.5rem; 
    }

    /* Kutu Düzeni */
    .calc-box { 
        padding: 25px 20px; 
        border-radius: 24px;
    }

    .calc-step {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .calc-step h4 {
        font-size: 1.1rem;
    }

    /* Grid Yapısı - Mobilde 2 Sütun (App Gibi) */
    .options { 
        grid-template-columns: 1fr 1fr; /* Daima yan yana 2 tane */
        gap: 10px; 
    }
    
    /* Butonlar */
    .opt-btn { 
        padding: 15px 10px; 
        font-size: 0.8rem; 
        min-height: 110px; /* Daha kompakt */
        justify-content: flex-start;
        padding-top: 25px;
        border-radius: 12px;
    }
    
    .opt-btn i { 
        font-size: 1.6rem; 
        margin-bottom: 5px;
    }
    
    /* Özel Durum: Timeline butonları tek satıra sığmayabilir */
    .opt-btn.single-select {
        min-height: 120px;
    }

    /* Toplam Alanı */
    .calc-footer { 
        padding: 25px; 
        gap: 20px;
    }

    .total-area h2 { 
        font-size: 2.8rem; 
    }
    
    .btn { 
        width: 100%; 
        justify-content: center; 
    }
    
    /* Mobilde imleç ayarı */
    .opt-btn, .btn { cursor: auto !important; }
}

@media (max-width: 400px) {
    /* Çok küçük ekranlar için */
    .options { gap: 8px; }
    .opt-btn { min-height: 100px; font-size: 0.75rem; }
    .calc-header h1 { font-size: 2rem; }
}