/* ==========================================
   Dyt. & Antrenör Ayça - Özel CSS Tasarım Stilleri
   ========================================== */

:root {
    /* Varsayılan Tema: Pudra & Gül Kurusu (Feminen, Şık & Wellness) */
    --sage-50: #fff1f2;
    --sage-100: #ffe4e6;
    --sage-200: #fecdd3;
    --sage-500: #f43f5e;
    --sage-600: #e11d48;
    --sage-700: #be123c;
    --sage-800: #9f1239;
    --sage-900: #881337;

    --sand-50: #faf7f8;
    --sand-100: #f4ecee;
    --sand-200: #ebdbe0;

    --color-sage-primary: #be123c;
    --color-sage-dark: #881337;
    --color-sand-bg: #faf7f8;
    --color-emerald-accent: #10b981;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
    background-color: var(--color-sand-bg);
    color: var(--color-sage-dark);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Tipografi Vurguları */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Gölgeler */
.card-shadow {
    box-shadow: 0 10px 30px -5px rgba(31, 43, 31, 0.05), 0 4px 12px -2px rgba(31, 43, 31, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -6px rgba(31, 43, 31, 0.09), 0 8px 18px -4px rgba(31, 43, 31, 0.05);
}

.popular-shadow {
    box-shadow: 0 20px 45px -10px rgba(56, 79, 56, 0.22), 0 8px 20px -4px rgba(56, 79, 56, 0.12);
}

/* ==========================================
   GELİŞMİŞ TAB ANİMASYONLARI VE ETKİLEŞİMLERİ
   ========================================== */

/* Sekme İçerik Animasyonu */
@keyframes tabSlideUpFade {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabSlideUpFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Masaüstü Nav Butonları Mikro Etkileşimler */
.nav-tab-btn {
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-tab-btn:active {
    transform: scale(0.96);
}

.nav-tab-btn.active {
    background-color: #2c3e2c;
    color: #ffffff;
    box-shadow: 0 4px 14px -2px rgba(44, 62, 44, 0.25);
}

.nav-tab-btn.inactive {
    color: #384f38;
}

.nav-tab-btn.inactive:hover {
    color: #1f2b1f;
    background-color: #f4f7f4;
}

/* Mobil Alt Sabit Navigasyon Barı (App-Like Bottom Bar) */
.mobile-bottom-bar {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 45;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 216, 200, 0.6);
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(31, 43, 31, 0.15), 0 4px 12px -2px rgba(31, 43, 31, 0.08);
}

.mobile-tab-item {
    transition: all 0.2s ease;
}

.mobile-tab-item:active {
    transform: scale(0.92);
}

.mobile-tab-item.active {
    color: #2c3e2c;
}

.mobile-tab-item.active .tab-icon-wrap {
    background-color: #e3ebe3;
    color: #2c3e2c;
}

.mobile-tab-item.inactive {
    color: #7fa47f;
}

/* Floating WhatsApp Butonu Konumu */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 84px; /* Mobilde alt tab barın üstünde durur */
    z-index: 44;
    animation: floatPulse 3s infinite ease-in-out;
}

@media (min-width: 768px) {
    .whatsapp-float {
        bottom: 24px;
        right: 24px;
    }
}

@keyframes floatPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 16px 30px -3px rgba(16, 185, 129, 0.55);
    }
}

/* Line Clamp */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Yumuşak Buton Geçişleri */
button {
    cursor: pointer;
    user-select: none;
}

/* Scrollbar Özelleştirme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf8f5;
}

::-webkit-scrollbar-thumb {
    background: #c8d8c8;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5c7c5c;
}

/* Aktif Kategori ve Porsiyon Butonları */
.blog-cat-btn.active, .rec-cat-btn.active, .serv-btn.active {
    background-color: #2c3e2c !important;
    color: #ffffff !important;
    border-color: #2c3e2c !important;
}

/* Paket Vurgu Efekti */
@keyframes highlightGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 25px 6px rgba(16, 185, 129, 0.6);
    }
}

.pkg-highlight {
    animation: highlightGlow 1.2s ease-in-out infinite;
}

/* ==========================================
   ULTRA-PREMİUM CRO & GÖRSEL EFEKTLER
   ========================================== */

/* Glassmorphism Paneller */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(227, 235, 227, 0.8);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 216, 200, 0.5);
}

/* Canlı WhatsApp Hap Butonu (Yukarı-Aşağı Sürüklenebilir Floating Pill) */
.whatsapp-floating-pill {
    position: fixed;
    bottom: 84px;
    right: 18px;
    z-index: 44;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
    .whatsapp-floating-pill {
        bottom: 24px;
        right: 24px;
    }
}

.whatsapp-floating-pill:hover {
    transform: translateY(-2px) scale(1.02);
}

.whatsapp-floating-pill.is-dragging {
    cursor: grabbing;
    transition: none !important;
    transform: scale(1.04);
    box-shadow: 0 20px 35px -5px rgba(5, 150, 105, 0.45);
}

/* Quiz Adım Animasyonu */
.quiz-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-step.hidden-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.quiz-step.active-step {
    display: block;
    animation: quizSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes quizSlideIn {
    0% {
        opacity: 0;
        transform: translateX(18px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Canlı Yanıp Sönen Yeşil Durum Noktası */
.live-status-pulse {
    position: relative;
}

.live-status-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background-color: #10b981;
    animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.8);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* ==========================================
   CANLI TEMA VE RENK PALETİ SEÇİCİ STİLLERİ (SOL AŞAĞI)
   ========================================== */
.theme-picker-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 48;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .theme-picker-btn {
        bottom: 84px;
        left: 16px;
    }
}

.theme-picker-btn:hover {
    transform: scale(1.05);
}

.theme-dropdown {
    position: fixed;
    bottom: 80px;
    left: 24px;
    z-index: 49;
    max-width: 320px;
    width: calc(100vw - 32px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .theme-dropdown {
        bottom: 140px;
        left: 16px;
    }
}

/* ==========================================
   BEFORE / AFTER DEĞİŞİM KARTI STİLLERİ
   ========================================== */
.transformation-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transformation-card:hover {
    transform: translateY(-4px);
}

.ba-image-container {
    position: relative;
    overflow: hidden;
    background-color: var(--sage-100);
}

.ba-toggle-btn.active {
    background-color: var(--sage-800);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ba-toggle-btn.inactive {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--sage-800);
}

/* Aktif Nav Linki (Smooth Scrollspy) */
.nav-anchor-link.active-section {
    background-color: var(--sage-800);
    color: #ffffff;
    box-shadow: 0 2px 10px -2px rgba(44, 62, 44, 0.3);
}

/* Yasal Metin Modalı Tipografi */
.legal-prose h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--sage-900);
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.legal-prose p {
    margin-bottom: 0.65rem;
    line-height: 1.65;
}

.legal-prose ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.legal-prose code {
    background-color: var(--sand-100);
    color: var(--sage-900);
    padding: 0.1rem 0.35rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
}
