/* ==========================================================================
   Dr. Ali Öktem - Çerez Bildirimi & Yasal Metinler Modalı Stilleri (legal_cookie.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Çerez Onay Bildirimi (Cookie Consent Banner)
   -------------------------------------------------------------------------- */
.cookie-consent-bar {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 1140px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(217, 119, 6, 0.35);
    border-radius: 18px;
    padding: 20px 26px;
    color: #f8fafc;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(217, 119, 6, 0.15);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.cookie-consent-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.cookie-consent-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.cookie-consent-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
}

.cookie-consent-text p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-text a {
    color: #fbbf24;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cookie-consent-text a:hover {
    color: #fef08a;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
}

.btn-cookie-essential {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-cookie-essential:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .cookie-consent-bar {
        flex-direction: column;
        align-items: stretch;
        bottom: 16px;
        left: 16px;
        right: 16px;
        padding: 18px 20px;
        gap: 16px;
    }
    
    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .btn-cookie-accept, .btn-cookie-essential {
        width: 100%;
        text-align: center;
        padding: 11px 12px;
    }
}

/* --------------------------------------------------------------------------
   2. Yasal & Gizlilik Modalı (Legal Modal System)
   -------------------------------------------------------------------------- */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.legal-modal-overlay.is-active .legal-modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Üst Başlık */
.legal-modal-header {
    background: #0f172a;
    padding: 20px 26px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.legal-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.legal-modal-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.legal-modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legal-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
}

/* Modal Sekme Barı */
.legal-modal-tabs {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 4px;
    padding: 10px 20px 0 20px;
    overflow-x: auto;
}

.legal-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.legal-tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.legal-tab-btn.is-active {
    color: #d97706;
    border-bottom: 2px solid #d97706;
    background: #ffffff;
    font-weight: 700;
}

/* Modal Gövdesi (Scroll Edilebilir Metin) */
.legal-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    color: #334155;
    font-size: 14px;
    line-height: 1.7;
}

.legal-tab-content {
    display: none;
}

.legal-tab-content.is-active {
    display: block;
    animation: fadeInTab 0.25s ease;
}

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

.legal-tab-content h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.legal-tab-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 20px 0 8px 0;
}

.legal-tab-content p {
    margin-bottom: 12px;
}

.legal-tab-content ul, .legal-tab-content ol {
    margin: 0 0 16px 0;
    padding-left: 22px;
}

.legal-tab-content li {
    margin-bottom: 6px;
}

.legal-badge-notice {
    background: rgba(2, 132, 199, 0.08);
    border-left: 4px solid #0284c7;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 13.5px;
    color: #0369a1;
}

/* Modal Alt Butonlar */
.legal-modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 14px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-modal-footer-note {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-legal-close {
    background: #0f172a;
    color: #ffffff !important;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-legal-close:hover {
    background: #1e293b;
}

/* --------------------------------------------------------------------------
   3. Form KVKK Onay Kutusu Tasarımı
   -------------------------------------------------------------------------- */
.kvkk-consent-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 16px 0;
    transition: border-color 0.2s ease;
}

.kvkk-consent-box:hover {
    border-color: #cbd5e1;
}

.kvkk-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: #475569;
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
    font-weight: normal;
}

.kvkk-consent-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #d97706;
    flex-shrink: 0;
}

.kvkk-consent-label a {
    color: #0284c7;
    text-decoration: underline;
    font-weight: 600;
}

.kvkk-consent-label a:hover {
    color: #0369a1;
}

/* --------------------------------------------------------------------------
   4. Eski Yukarı Çık Butonunu Gizle (Remove old Back2Top)
   -------------------------------------------------------------------------- */
.back2top {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   5. Minimalist Yüzen WhatsApp Butonu (Floating WhatsApp Widget)
   -------------------------------------------------------------------------- */
.floating-wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-wa-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
    background: #20ba5a;
    color: #ffffff !important;
}

.floating-wa-btn i {
    font-size: 28px;
    line-height: 1;
}

.floating-wa-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: waPulse 2.2s infinite cubic-bezier(0.24, 0, 0.38, 1);
    pointer-events: none;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* --------------------------------------------------------------------------
   6. Mobil Ekran Altı Yapışkan Hızlı Aksiyon Barı (Mobile Sticky Action Bar)
   -------------------------------------------------------------------------- */
.mobile-sticky-action-bar {
    display: none;
}

@media (max-width: 767px) {
    .mobile-sticky-action-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(217, 119, 6, 0.35);
        padding: 8px 12px;
        z-index: 9990;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    .mobile-sticky-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none !important;
        transition: all 0.2s ease;
        text-align: center;
    }

    .mobile-sticky-btn--wa {
        background: #25d366;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    }

    .mobile-sticky-btn--wa:hover {
        background: #20ba5a;
    }

    .mobile-sticky-btn--app {
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
    }

    .mobile-sticky-btn--app:hover {
        background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    }

    /* Mobilde WhatsApp Yüzen Butonunu Barın Üstüne Kaydır */
    .floating-wa-btn {
        bottom: 68px;
        right: 16px;
        width: 44px;
        height: 44px;
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    }

    .floating-wa-btn i {
        font-size: 24px;
    }

    /* Mobilde sayfa altının bara yapışmasını engelle */
    body {
        padding-bottom: 56px;
    }
}

/* --------------------------------------------------------------------------
   7. Randevu Başarı Ekranı Takvim Butonları (Google & Apple Calendar)
   -------------------------------------------------------------------------- */
.calendar-actions-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 10px 0;
}

.btn-cal-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.btn-cal-google {
    background: #ffffff;
    color: #1e293b !important;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.btn-cal-google:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.btn-cal-ics {
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #e2e8f0;
}

.btn-cal-ics:hover {
    background: #e2e8f0;
    color: #0f172a !important;
    transform: translateY(-1px);
}

