/* Bebek Persentil Hesaplayıcı - Ana Stiller */

.bebek-persentil-konteyner {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.persentil-baslik {
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.persentil-baslik::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.persentil-baslik h2 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.persentil-baslik p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.persentil-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-grup {
    margin-bottom: 30px;
}

.ana-etiket {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

/* Cinsiyet Seçimi */
.cinsiyet-secim {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-kart {
    position: relative;
    cursor: pointer;
}

.radio-kart input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-icerik {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-kart:hover .radio-icerik {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.radio-kart input[type="radio"]:checked + .radio-icerik {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.radio-icerik .ikon {
    font-size: 2.2em;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.radio-kart input[type="radio"]:checked + .radio-icerik .ikon {
    animation: bounceActive 0.6s ease;
}

@keyframes bounceActive {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.radio-icerik .metin {
    font-size: 1.2em;
    font-weight: 600;
}

/* Yaş Konteyner */
.yas-konteyner {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.giris-grup {
    position: relative;
    flex: 1;
}

.giris-grup input {
    width: 100%;
    padding: 16px 50px 16px 16px;
    font-size: 1.1em;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
}

.giris-grup input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.giris-grup input:hover {
    border-color: #b8c5f2;
}

.giris-ikonu {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    pointer-events: none;
}

.birim-secim {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    border: 2px solid #e9ecef;
}

.birim-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6c757d;
    white-space: nowrap;
}

.birim-btn:hover {
    color: #495057;
}

.birim-btn.aktif {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: scale(1.02);
}

.yardim-metni {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
}

/* Hesapla Butonu */
.hesapla-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.hesapla-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hesapla-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hesapla-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 87, 108, 0.5);
}

.hesapla-btn:active {
    transform: translateY(-1px);
}

.btn-ikon {
    font-size: 1.3em;
    position: relative;
    z-index: 1;
}

.hesapla-btn span {
    position: relative;
    z-index: 1;
}

/* Sonuç Alanı */
.sonuc-alani {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.sonuc-iki-kolon {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 25px;
}

.sol-kolon, .sag-kolon {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.sonuc-baslik {
    font-size: 1.6em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #f8f9fa;
}

/* Persentil Kartları */
.persentil-kart {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.persentil-kart:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.kart-baslik {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.kart-ikon {
    font-size: 1.6em;
}

.persentil-deger {
    font-size: 2.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.persentil-aciklama {
    margin: 0;
    color: #6c757d;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Grafik Tabları */
.grafik-tablar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 14px 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6c757d;
    font-size: 0.95em;
}

.tab-btn:hover {
    border-color: #b8c5f2;
    transform: translateY(-2px);
}

.tab-btn.aktif {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.grafik-icerik {
    position: relative;
}

.grafik-panel {
    display: none;
}

.grafik-panel.aktif {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mevcut-deger {
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.mevcut-deger span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Yükleniyor */
.yukleniyor {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.yukleniyor-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    border: 6px solid #f8f9fa;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.yukleniyor p {
    font-size: 1.2em;
    color: #6c757d;
    font-weight: 600;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .sonuc-iki-kolon {
        grid-template-columns: 1fr;
    }
    
    .sag-kolon {
        order: -1;
    }
}

@media (max-width: 768px) {
    .bebek-persentil-konteyner {
        padding: 15px;
        margin: 20px auto;
    }
    
    .persentil-baslik {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .persentil-baslik h2 {
        font-size: 1.8em;
    }
    
    .persentil-baslik p {
        font-size: 1em;
    }
    
    .persentil-form {
        padding: 25px 20px;
    }
    
    .cinsiyet-secim {
        grid-template-columns: 1fr;
    }
    
    .yas-konteyner {
        flex-direction: column;
    }
    
    .birim-secim {
        width: 100%;
    }
    
    .sol-kolon, .sag-kolon {
        padding: 25px 20px;
    }
    
    .grafik-tablar {
        flex-direction: column;
    }
    
    .persentil-deger {
        font-size: 2.2em;
    }
    
    .sonuc-baslik {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .persentil-baslik h2 {
        font-size: 1.5em;
    }
    
    .radio-icerik {
        padding: 15px;
    }
    
    .radio-icerik .ikon {
        font-size: 1.8em;
    }
    
    .radio-icerik .metin {
        font-size: 1.1em;
    }
    
    .hesapla-btn {
        font-size: 1.1em;
        padding: 16px;
    }
    
    .persentil-kart {
        padding: 20px;
    }
}