/* ==========================================================================
   KC YAZILIM - ÇEREZ YÖNETİMİ & YASAL METİNLER TASARIM SİSTEMİ
   Lüks Dijital Mimari: Gold, Antrasit & Cam (Glassmorphism) Uyumlu
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Çerez Bildirimi Banner'ı (Cookie Notification Banner)
   -------------------------------------------------------------------------- */
#kc-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 480px;
    width: calc(100% - 48px);
    background: rgba(14, 17, 24, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.12);
    padding: 24px 26px;
    z-index: 99998;
    color: #ffffff;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s ease;
    overflow: hidden;
}

#kc-cookie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, #ecc75f, transparent);
}

#kc-cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.kc-cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.kc-cookie-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.kc-cookie-title {
    font-family: var(--font-noble, 'Outfit', sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    margin: 0;
}

.kc-cookie-title span {
    color: #d4af37;
}

.kc-cookie-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 18px 0;
}

.kc-cookie-text a {
    color: #d4af37;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.kc-cookie-text a:hover {
    color: #f7e7b4;
}

.kc-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kc-cookie-btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    text-decoration: none;
}

.kc-cookie-btn-accept {
    background: linear-gradient(135deg, #fdf2cf 0%, #e2be5a 40%, #d4af37 100%);
    color: #0b0c10;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    flex: 1 1 auto;
}

.kc-cookie-btn-accept:hover {
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.45);
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.kc-cookie-btn-reject {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex: 1 1 auto;
}

.kc-cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.kc-cookie-btn-settings {
    background: transparent;
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.4);
    width: 100%;
}

.kc-cookie-btn-settings:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    color: #f7e7b4;
}

/* --------------------------------------------------------------------------
   2. Çerez Tercihleri Modalı (Cookie Preferences Modal)
   -------------------------------------------------------------------------- */
#kc-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#kc-cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.kc-modal-container {
    background: rgba(13, 16, 23, 0.96);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.15);
    overflow: hidden;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#kc-cookie-modal.show .kc-modal-container {
    transform: scale(1) translateY(0);
}

.kc-modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #ecc75f, #996b1b);
}

.kc-modal-header {
    padding: 22px 28px 18px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    gap: 16px;
}

.kc-modal-header-text h3 {
    font-family: var(--font-noble, 'Outfit', sans-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kc-modal-header-text h3 span {
    color: #d4af37;
}

.kc-modal-header-text p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.kc-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.kc-modal-close:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    color: #ffffff;
}

.kc-modal-body {
    padding: 22px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Çerez Kategori Kartları */
.kc-cookie-category {
    background: rgba(18, 22, 32, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 14px;
    padding: 16px 20px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.kc-cookie-category:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(18, 22, 32, 0.85);
}

.kc-category-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kc-category-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kc-category-title {
    font-family: var(--font-noble, 'Outfit', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.kc-badge-required {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(212, 175, 55, 0.15);
    color: #ecc75f;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 3px 8px;
    border-radius: 6px;
}

.kc-badge-optional {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
}

.kc-category-desc {
    font-size: 0.83rem;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0;
}

/* Lüks Özel Toggle Switch */
.kc-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.kc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.kc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 34px;
}

.kc-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #cbd5e1;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.kc-switch input:checked + .kc-slider {
    background: linear-gradient(135deg, #e2be5a 0%, #d4af37 100%);
    border-color: #ecc75f;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.kc-switch input:checked + .kc-slider::before {
    transform: translateX(22px);
    background-color: #0b0c10;
}

.kc-switch input:disabled + .kc-slider {
    opacity: 0.85;
    cursor: not-allowed;
}

.kc-modal-footer {
    padding: 18px 28px 22px 28px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(10, 12, 18, 0.6);
}

/* --------------------------------------------------------------------------
   3. Çerez Ayarları Yeniden Açma Rozeti (Floating Cookie Trigger)
   -------------------------------------------------------------------------- */
#kc-cookie-reopen-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 17, 24, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.15);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99990;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#kc-cookie-reopen-btn:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
    color: #ffffff;
}

#kc-cookie-reopen-btn svg {
    width: 20px;
    height: 20px;
}

#kc-cookie-banner.show ~ #kc-cookie-reopen-btn,
#kc-cookie-modal.show ~ #kc-cookie-reopen-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.8);
}

/* --------------------------------------------------------------------------
   4. Lüks Toast Bildirimi (Notification Toast)
   -------------------------------------------------------------------------- */
#kc-cookie-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(14, 17, 24, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 14px 22px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#kc-cookie-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#kc-cookie-toast .toast-icon {
    color: #d4af37;
    font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   5. Footer Kurumsal Yasal Bağlantılar Çubuğu
   -------------------------------------------------------------------------- */
.footer-legal-bar {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.84rem;
    color: #94a3b8;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal-links a,
.footer-legal-links button {
    color: #94a3b8;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: color 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
    color: #d4af37;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.82rem;
    margin: 0;
}

.footer-copyright span {
    color: #d4af37;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   6. Yasal Metin Sayfaları Genel Düzeni (Legal Pages Layout)
   -------------------------------------------------------------------------- */
.legal-page-wrapper {
    min-height: 100vh;
    padding: 140px 0 80px 0;
    position: relative;
    z-index: 10;
}

.legal-header-box {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.legal-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #94a3b8;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 22px;
}

.legal-breadcrumb a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-breadcrumb a:hover {
    color: #f7e7b4;
}

.legal-main-title {
    font-family: var(--font-noble, 'Outfit', sans-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 16px;
}

.legal-main-title span {
    background: linear-gradient(135deg, #fdf2cf 0%, #ecc75f 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 auto;
}

.legal-meta-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
}

.legal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legal-meta-item i {
    color: #d4af37;
}

.legal-content-card {
    background: rgba(16, 20, 28, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    padding: 48px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.legal-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.legal-section-block {
    margin-bottom: 40px;
}

.legal-section-block:last-child {
    margin-bottom: 0;
}

.legal-section-block h2 {
    font-family: var(--font-noble, 'Outfit', sans-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section-block h2::before {
    content: '✦';
    color: #d4af37;
    font-size: 1.1rem;
}

.legal-section-block h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 22px 0 10px 0;
}

.legal-section-block p {
    font-size: 0.96rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.legal-section-block ul,
.legal-section-block ol {
    margin: 0 0 20px 24px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-section-block li {
    margin-bottom: 8px;
}

.legal-section-block li strong {
    color: #f1f5f9;
}

/* Tablolar */
.legal-table-responsive {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.legal-table th {
    background: rgba(212, 175, 55, 0.12);
    color: #ecc75f;
    padding: 14px 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    white-space: nowrap;
}

.legal-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    line-height: 1.5;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Vurgulu Uyarı / Bilgilendirme Kutusu */
.legal-callout-box {
    background: rgba(212, 175, 55, 0.06);
    border-left: 4px solid #d4af37;
    border-radius: 0 12px 12px 0;
    padding: 18px 24px;
    margin: 24px 0;
}

.legal-callout-box p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.legal-callout-box strong {
    color: #ecc75f;
}

/* Sayfa İçi Eylem Butonları */
.legal-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-back-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    color: #ecc75f;
    transform: translateX(-3px);
}

/* --------------------------------------------------------------------------
   7. Mobil Ekranlar İçin Hassas Düzenlemeler (Responsive Tuning)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    #kc-cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        max-width: 100%;
        padding: 18px 18px;
        border-radius: 14px;
    }

    .kc-cookie-title {
        font-size: 1.05rem;
    }

    .kc-cookie-text {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }

    .kc-cookie-actions {
        flex-direction: column;
        gap: 8px;
    }

    .kc-cookie-btn {
        width: 100%;
        padding: 11px 16px;
    }

    #kc-cookie-modal {
        padding: 12px;
    }

    .kc-modal-container {
        border-radius: 16px;
        max-height: 94vh;
    }

    .kc-modal-header {
        padding: 16px 18px;
    }

    .kc-modal-body {
        padding: 16px 18px;
        gap: 12px;
    }

    .kc-cookie-category {
        padding: 14px 16px;
    }

    .kc-modal-footer {
        padding: 14px 18px;
        flex-direction: column;
    }

    .kc-modal-footer .kc-cookie-btn {
        width: 100%;
    }

    #kc-cookie-reopen-btn {
        bottom: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
    }

    .legal-content-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .legal-page-wrapper {
        padding: 110px 0 60px 0;
    }

    .footer-legal-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-legal-links {
        justify-content: center;
        gap: 14px;
    }
}
