:root {
    --zift-black: #0A0A0C; /* Deep Charcoal - Derin Antrasit */
    --operator-grey: #161618; /* Hafif aydınlık kart arka planı */
    --border-grey: #2A2A2E; /* Yumuşak ayırıcı çizgiler */
    --text-primary: #F5F5F0; /* Alabaster - Göz yormayan kaymaktaşı */
    --text-secondary: #8E8E93; /* Apple standardı ikincil gri */
}


* {
    box-sizing: border-box;
    /* Mobildeki o ucuz mavi tıklama efektini yok eder */
    -webkit-tap-highlight-color: transparent; 
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--zift-black);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    
    /* iOS Safari'de ekranın lastik gibi esnemesini (bouncing) kilitler */
    overscroll-behavior: none; 
    user-select: none; /* Metin seçimini kilitler */
    overflow: hidden; 
}

.app-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Eskiden center'dı. Uzun listelerde üst kısmın kesilmesini önler */
    height: 100%;
    padding: 60px 24px 80px 24px; /* Üstten ve alttan ekran çentiklerine karşı lüks bir boşluk */
    
    /* KAYDIRMA (SCROLL) KİLİDİNİ AÇAN SİHİR BURASI */
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; /* Mobilde (özellikle iOS) kaydırmanın yağ gibi ivmeli akmasını sağlar */
    
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(0);
}


/* JavaScript'in tetikleyeceği Liquid Transition sınıfları */
.fade-out {
    opacity: 0;
    transform: translateX(-15px);
}
.fade-in {
    opacity: 0;
    transform: translateX(15px);
}

/* Tipografi Hiyerarşisi */
h1, .question-text {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 40px;
    color: #F2F2F2;
}

.options-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-btn {
    background-color: var(--operator-grey);
    color: #E0E0E0;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    padding: 18px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    
transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.2s ease;
}

/* Tıklandığı andaki küçülme efekti */
.option-btn:active {
    transform: scale(0.97); 
    background-color: var(--border-grey);
}

.option-btn:active {
    background-color: #1a1a1a;
    border-color: #444;
}

/* Sonuç (Outcome) Ekranı */
.outcome-wrapper {
    text-align: center;
    padding-top: 20px;
}

.outcome-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.remedy-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 42px;
    margin-bottom: 24px;
}

.instruction-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.reset-btn {
    background: transparent;
    color: var(--text-primary);
    border: none;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}


/* --- ARAMA ÇUBUĞU (LIVE SEARCH) --- */
.search-input {
    width: 100%;
    background-color: var(--operator-grey);
    color: var(--text-primary);
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    margin-bottom: 24px;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none; /* iOS'un varsayılan input stilini ezer */
}

.search-input:focus {
    border-color: #555555; /* Odaklanıldığında çok zarif bir aydınlanma */
}

.search-input::placeholder {
    color: var(--text-secondary);
}


/* --- IŞINLANMA (TELEPORT) BUTONU --- */
.teleport-btn {
    background-color: #FFFFFF; /* Zift siyahına karşı premium bir beyaz */
    color: #000000;
    font-weight: 600;
    text-align: center;
    border: none;
    margin-bottom: 24px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.teleport-btn:active {
    background-color: #E0E0E0;
    transform: scale(0.98); /* Dokunulduğunda hafif, tok bir çökme hissi */
}

.advice-wrapper {
    margin-top: 30px;
    margin-bottom: 40px;
    padding-top: 24px;
    border-top: 1px solid #1A1A1A;
    text-align: left;
}

.advice-item {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #888888;
    /* Ana ilacın (beyaz) dikkatini dağıtmayan zarif bir gri */
    line-height: 1.6;
    margin-bottom: 14px;
    display: flex;
}

.advice-bullet {
    width: 4px;
    height: 4px;
    background-color: #444;
    border-radius: 50%;
    margin-top: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Remedy Modal Konteyner */
.remedy-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000;
    z-index: 1000;
    display: none; /* Başlangıçta gizli */
    overflow-y: auto;
    padding: 40px 24px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(100%);
}

.remedy-modal.active {
    display: block;
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px; right: 24px;
    color: #888;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
}

.modal-full-name {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #FFF;
    margin-bottom: 24px;
}

.modal-desc {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #BBB;
    margin-bottom: 30px;
}

.modal-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 15px;
    border-bottom: 1px solid #1A1A1A;
    padding-bottom: 8px;
}

.symptom-tag {
    display: inline-block;
    border: 1px solid #222;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #999;
    margin: 0 8px 8px 0;
}



/* Güvenlik Katmanı - Editoryal Uyarı */
.safety-warning {
    margin-top: 30px;
    padding: 14px 18px;
    background-color: rgba(139, 58, 58, 0.04); /* Çok hafif, zarif bir şarap tortusu rengi */
    border-left: 2px solid #6b3030; /* Sessiz lüks bir bordo */
    color: #b08c8c;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 0 4px 4px 0;
}

.safety-warning strong {
    color: #d1a5a5;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}

/* Ana Ekrandaki Alt Bağlantı */
.protocol-trigger {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #444; /* Çok fısıldayan bir gri */
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 100;
    padding-bottom: 2px;
}

.protocol-trigger:hover {
    color: #A3A3A3;
    border-bottom: 1px solid rgba(163, 163, 163, 0.3);
}

/* Protokol Listesi Lüks Tipografisi */
.protocol-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #BBB;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

.protocol-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
}

.protocol-list li::before {
    content: "—"; /* Klasik liste noktası yerine editoryal çizgi */
    position: absolute;
    left: 0;
    color: #555;
}

/* Referans Bloğu Konteynırı (Nefes Alan Lüks) */
.remedy-actions-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px; /* UX ÇÖZÜMÜ: İki link arasını iyice açtık, yanlış tıklama imkansız */
    margin-top: 24px;
    margin-bottom: 32px;
}

/* Eski İhtişamına Kavuşan Birincil Link (Profile) */
.clinical-profile-link {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #A3A3A3;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(163, 163, 163, 0.3); /* O asil alt çizgi geri döndü */
    padding-bottom: 4px;
}

.clinical-profile-link:hover, 
.clinical-profile-link:active {
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.clinical-profile-link .arrow {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clinical-profile-link:hover .arrow,
.clinical-profile-link:active .arrow {
    transform: translateX(5px);
}

/* İkincil Link (Usage) - Görünmez ama Tıklaması Kolay */
.dosage-guide-link {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555; 
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px 16px; /* UX ÇÖZÜMÜ: Kendi küçük ama tıklama alanı (hitbox) genişletildi */
}

.dosage-guide-link:hover,
.dosage-guide-link:active {
    color: #999;
}


.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 20px;
    z-index: 1000;
    
    /* İŞTE CAM EFEKTİ BURASI */
    background-color: rgba(10, 10, 12, 0.75); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); /* iOS cihazlar için şart */
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Çok ince, zarif bir ışık sızıntısı */
}


/* Tab Öğeleri */
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #555; /* Pasif renk */
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.tab-item.active {
    color: #FFFFFF; /* Aktif renk */
}

.tab-icon {
    width: 24px;
    height: 24px;
    fill: currentColor; /* İkon rengini yazı rengine bağlar */
}

.tab-item span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Sayfa İçeriğinin Menü Altında Kalmaması İçin */
.app-container {
    padding-bottom: 100px;
}

/* Evrensel Arama Bölüm Başlıkları */
.search-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    width: 100%;
}

/* Read More - Net ve Şık Görünüm */
.modal-desc.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}
.modal-desc.line-clamp.expanded {
    -webkit-line-clamp: initial;
}
.read-more-btn {
    background: rgba(150, 150, 150, 0.15); /* Arka plana uyumlu zarif kutu */
    color: inherit; /* Uygulamanın kendi yazı rengini alır */
    font-size: 11px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 16px;
    margin-top: 12px;
    margin-bottom: 24px;
    cursor: pointer;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- ONBOARDING / YASAL KABUL EKRANI --- */
#onboarding-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d0d0d; /* Karanlık lüks arka plan */
    color: #fff;
    z-index: 9999; /* Her şeyin üstünde durmasını sağlar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 32px;
    box-sizing: border-box;
    transition: opacity 0.5s ease;
}

.onboarding-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.onboarding-text {
    font-size: 14px;
    line-height: 1.6;
    color: #888; /* Göz yormayan gri */
    margin-bottom: 24px;
}

.onboarding-text strong {
    color: #fff; /* Vurgulanan yerler beyaz */
}

.agree-btn {
    margin-top: 40px;
    background-color: #fff;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    padding: 16px 0;
    border-radius: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s ease;
}

.agree-btn:active {
    opacity: 0.7;
}


.question-text, .remedy-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}


.app-container {
    /* Mevcut kodlarına sadece şu satırı ekle */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Modal açıldığında app-container'a eklenecek sınıf */
.app-container.background-scaled {
    transform: scale(0.93) translateY(-10px);
    opacity: 0.5;
    border-radius: 20px; /* Kenarların yumuşaması donanım hissi verir */
}
