﻿/* ── Datenschutz Modal Overlay ──────────────────────────── */
#dseModalOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: flex-end;
    justify-content: center;
}

    #dseModalOverlay.dse-open {
        display: flex;
    }

/* ── Modal Sheet ────────────────────────────────────────── */
.dse-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 640px;
    max-height: calc(100dvh - env(safe-area-inset-top, 44px) - 20px);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
    animation: dseSheetUp 0.28s cubic-bezier(.4, 0, .2, 1);
}

@keyframes dseSheetUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Handle çizgisi */
.dse-sheet::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

/* ── Header ─────────────────────────────────────────────── */
.dse-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.dse-sheet-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: Arial, sans-serif;
    flex: 1; /* başlık tüm boş alanı alır */
}

.dse-close-btn {
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 13px;
    color: #555;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* küçülmesin */
    margin-left: auto; /* her zaman sağa it */
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}

    .dse-close-btn:hover {
        background: #e0e0e0;
    }

/* ── Scrollable Body ─────────────────────────────────────── */
.dse-sheet-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 20px;
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* Güncelleme badge */
.dse-modal-badge {
    display: inline-block;
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 16px;
    font-family: Arial, sans-serif;
}

/* Bölümler */
.dse-modal-section {
    border-left: 3px solid #222222;
    padding: 8px 12px;
    margin-bottom: 14px;
    background: #f9f9f9;
    border-radius: 0 6px 6px 0;
}

.dse-modal-num {
    font-size: 12px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 5px 0;
    font-family: Arial, sans-serif;
}

.dse-modal-section p {
    font-size: 12px;
    color: #374151;
    line-height: 1.7;
    margin: 0 0 5px 0;
    font-family: Arial, sans-serif;
}

.dse-modal-section ul {
    padding-left: 16px;
    margin: 4px 0;
}

.dse-modal-section li {
    font-size: 12px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 3px;
    font-family: Arial, sans-serif;
}

.dse-modal-sub-title {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin: 8px 0 3px 0 !important;
    font-family: Arial, sans-serif;
}

.dse-modal-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 3px solid #167FE1;
    border-radius: 5px;
    padding: 8px 10px;
    margin-top: 8px;
    font-size: 11px;
    color: #1e40af;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.dse-modal-contact {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 8px;
}

    .dse-modal-contact p {
        background: none !important;
    }

/* Links in modal */
.dse-sheet-body a {
    color: #167FE1 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

    .dse-sheet-body a:hover {
        color: #1268c0 !important;
    }

/* Loading & error */
.dse-loading {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 13px;
    font-family: Arial, sans-serif;
}

.dse-error {
    text-align: center;
    padding: 20px;
    color: #dc2626;
    font-size: 13px;
    font-family: Arial, sans-serif;
}

/* ── Footer ─────────────────────────────────────────────── */
.dse-sheet-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.dse-close-footer-btn {
    width: 100%;
    background: #222222;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: background 0.2s;
    font-family: Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

    .dse-close-footer-btn:hover {
        background: #333;
    }
