/* =============================================
   BAŞ AĞRISI TANIYICI — bat-style.css
   Palette: #0B1F3A navy · #0E7C6B teal · #C9A84C gold · #F7F4EF cream
   Fonts: Playfair Display (display) · DM Sans (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

.bat-wrap {
    --bat-navy:  #0B1F3A;
    --bat-teal:  #0E7C6B;
    --bat-gold:  #C9A84C;
    --bat-cream: #F7F4EF;
    --bat-red:   #C0392B;
    --bat-green: #1a7a4a;
    --bat-shadow: 0 8px 40px rgba(11,31,58,.13);
    --bat-radius: 20px;

    font-family: 'DM Sans', sans-serif;
    max-width: 680px;
    margin: 2rem auto;
    background: #fff;
    border-radius: var(--bat-radius);
    box-shadow: var(--bat-shadow);
    overflow: hidden;
    border: 1px solid rgba(14,124,107,.12);
}

/* --- SCREENS --- */
.bat-screen {
    display: none;
    animation: batFadeIn .4s ease;
}
.bat-screen.active {
    display: block;
}
@keyframes batFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- INTRO --- */
#bat-intro {
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
    background: linear-gradient(160deg, var(--bat-cream) 0%, #fff 60%);
}

.bat-intro-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
}
.bat-intro-icon svg { width: 100%; height: 100%; }

.bat-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--bat-navy);
    margin: 0 0 .3rem;
}
.bat-subtitle {
    font-size: .82rem;
    color: var(--bat-teal);
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 1.4rem;
}
.bat-intro-text {
    font-size: .97rem;
    color: #444;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto 1.4rem;
}
.bat-disclaimer {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(201,168,76,.08);
    border: 1px solid rgba(201,168,76,.3);
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .82rem;
    color: #5a4500;
    max-width: 460px;
    margin: 0 auto 2rem;
    text-align: left;
}

/* --- BUTTONS --- */
.bat-btn-primary {
    background: var(--bat-teal);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .85rem 2.4rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(14,124,107,.28);
}
.bat-btn-primary:hover {
    background: #0a6558;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14,124,107,.32);
}

/* --- QUIZ AREA --- */
#bat-quiz {
    padding: 0;
}

.bat-progress-bar {
    height: 5px;
    background: rgba(14,124,107,.12);
    width: 100%;
}
.bat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bat-teal), var(--bat-gold));
    width: 0%;
    transition: width .5s cubic-bezier(.4,0,.2,1);
}

.bat-step-label {
    text-align: right;
    font-size: .78rem;
    font-weight: 600;
    color: var(--bat-teal);
    padding: .8rem 1.8rem .2rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bat-question-area {
    padding: 1.4rem 2rem 1rem;
    min-height: 340px;
}

.bat-q-tag {
    display: inline-block;
    background: rgba(14,124,107,.1);
    color: var(--bat-teal);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .2rem .7rem;
    border-radius: 20px;
    margin-bottom: .8rem;
}

.bat-q-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.05rem, 2.5vw, 1.22rem);
    color: var(--bat-navy);
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

/* Red flag question special styling */
.bat-q-text.red-flag {
    background: rgba(192,57,43,.06);
    border-left: 3px solid var(--bat-red);
    border-radius: 0 8px 8px 0;
    padding: .7rem 1rem;
}

.bat-options {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.bat-option {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: #fff;
    border: 2px solid rgba(11,31,58,.1);
    border-radius: 12px;
    padding: .9rem 1.1rem;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    color: #333;
    line-height: 1.45;
    width: 100%;
}
.bat-option:hover {
    border-color: var(--bat-teal);
    background: rgba(14,124,107,.04);
    transform: translateX(3px);
}
.bat-option.selected {
    border-color: var(--bat-teal);
    background: rgba(14,124,107,.08);
    color: var(--bat-navy);
    font-weight: 500;
}
.bat-option.selected .bat-opt-dot {
    background: var(--bat-teal);
    border-color: var(--bat-teal);
}
.bat-option.selected .bat-opt-dot::after {
    opacity: 1;
}
.bat-option.rf-option.selected {
    border-color: var(--bat-red);
    background: rgba(192,57,43,.06);
}
.bat-option.rf-option.selected .bat-opt-dot {
    background: var(--bat-red);
    border-color: var(--bat-red);
}

.bat-opt-dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(11,31,58,.2);
    background: #fff;
    position: relative;
    transition: all .2s;
}
.bat-opt-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity .2s;
}

/* --- NAV BUTTONS --- */
.bat-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem 1.8rem;
    gap: 1rem;
}

.bat-btn-back {
    background: transparent;
    border: 2px solid rgba(11,31,58,.15);
    border-radius: 50px;
    padding: .7rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    color: #666;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.bat-btn-back:hover {
    border-color: var(--bat-navy);
    color: var(--bat-navy);
}

.bat-btn-next {
    background: var(--bat-navy);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .75rem 2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, opacity .2s, transform .15s;
    margin-left: auto;
}
.bat-btn-next:disabled {
    opacity: .38;
    cursor: not-allowed;
    transform: none !important;
}
.bat-btn-next:not(:disabled):hover {
    background: #17304f;
    transform: translateY(-2px);
}

/* --- RESULT SCREEN --- */
#bat-result {
    padding: 0;
}

.bat-result-header {
    padding: 2.2rem 2rem 1.6rem;
    text-align: center;
    position: relative;
}
.bat-result-header.migren {
    background: linear-gradient(135deg, #f0f7f6, #e0f0ed);
    border-bottom: 3px solid var(--bat-teal);
}
.bat-result-header.gerilim {
    background: linear-gradient(135deg, #f4f2e8, #ece7d6);
    border-bottom: 3px solid var(--bat-gold);
}
.bat-result-header.kume {
    background: linear-gradient(135deg, #f2f4f8, #e4e9f4);
    border-bottom: 3px solid #4A6FA5;
}
.bat-result-header.kirmizi {
    background: linear-gradient(135deg, #fdf0ee, #f9e0dc);
    border-bottom: 3px solid var(--bat-red);
}

.bat-result-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 30px;
    padding: .35rem 1rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.migren .bat-result-badge   { background: rgba(14,124,107,.12); color: var(--bat-teal); }
.gerilim .bat-result-badge  { background: rgba(201,168,76,.15); color: #7a5c00; }
.kume .bat-result-badge     { background: rgba(74,111,165,.12); color: #2d4f8a; }
.kirmizi .bat-result-badge  { background: rgba(192,57,43,.12);  color: var(--bat-red); }

.bat-result-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    color: var(--bat-navy);
    margin: 0 0 .4rem;
}
.bat-result-sub {
    font-size: .88rem;
    color: #555;
    margin: 0;
}

.bat-confidence {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-top: .8rem;
    font-size: .8rem;
    color: #666;
}
.bat-conf-bar {
    width: 120px;
    height: 6px;
    background: rgba(0,0,0,.1);
    border-radius: 3px;
    overflow: hidden;
}
.bat-conf-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease .3s;
}
.migren  .bat-conf-fill { background: var(--bat-teal); }
.gerilim .bat-conf-fill { background: var(--bat-gold); }
.kume    .bat-conf-fill { background: #4A6FA5; }
.kirmizi .bat-conf-fill { background: var(--bat-red); }

.bat-result-body {
    padding: 1.8rem 2rem;
}

.bat-result-card {
    background: var(--bat-cream);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.2rem;
}
.bat-result-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--bat-navy);
    margin: 0 0 .7rem;
}
.bat-result-card p {
    font-size: .9rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

.bat-symptoms-list {
    list-style: none;
    padding: 0;
    margin: .6rem 0 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.bat-symptoms-list li {
    font-size: .88rem;
    color: #444;
    padding-left: 1.4rem;
    position: relative;
}
.bat-symptoms-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bat-teal);
    font-weight: 700;
}

.bat-urgency-box {
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    gap: .8rem;
    align-items: flex-start;
}
.bat-urgency-box.warn {
    background: rgba(192,57,43,.07);
    border: 1px solid rgba(192,57,43,.25);
}
.bat-urgency-box.info {
    background: rgba(14,124,107,.06);
    border: 1px solid rgba(14,124,107,.2);
}
.bat-urgency-icon { flex-shrink: 0; margin-top: 2px; }
.bat-urgency-box p {
    font-size: .87rem;
    margin: 0;
    line-height: 1.6;
    color: #333;
}
.bat-urgency-box strong { display: block; margin-bottom: .2rem; }

.bat-cta-box {
    background: var(--bat-navy);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.bat-cta-box p {
    color: rgba(255,255,255,.85);
    font-size: .88rem;
    margin: 0;
    line-height: 1.5;
}
.bat-cta-box strong { color: #fff; display: block; margin-bottom: .2rem; }
.bat-cta-btn {
    background: var(--bat-gold);
    color: var(--bat-navy);
    border: none;
    border-radius: 50px;
    padding: .7rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s;
    text-decoration: none;
    display: inline-block;
}
.bat-cta-btn:hover {
    background: #d4a930;
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--bat-navy);
}

.bat-restart-btn {
    display: block;
    text-align: center;
    margin: .5rem 0 1rem;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: .83rem;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
}
.bat-restart-btn:hover { color: var(--bat-teal); }

.bat-score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-top: .8rem;
}
.bat-score-item {
    background: #fff;
    border-radius: 10px;
    padding: .7rem .5rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,.07);
}
.bat-score-item .bat-si-label {
    font-size: .68rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .3rem;
}
.bat-score-item .bat-si-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bat-navy);
}
.bat-score-item.top .bat-si-val { color: var(--bat-teal); }

/* --- RESPONSIVE --- */
@media (max-width: 540px) {
    #bat-intro, .bat-question-area { padding-left: 1.3rem; padding-right: 1.3rem; }
    .bat-nav { padding-left: 1.3rem; padding-right: 1.3rem; }
    .bat-result-body { padding: 1.4rem 1.3rem; }
    .bat-result-header { padding: 1.8rem 1.3rem 1.4rem; }
    .bat-cta-box { flex-direction: column; text-align: center; }
    .bat-cta-btn { width: 100%; text-align: center; }
    .bat-score-grid { grid-template-columns: repeat(2, 1fr); }
}
