/* Haliç Üniversitesi Çerez Yönetimi - Frontend stilleri */

.halic-cerez * {
    box-sizing: border-box;
}

.halic-cerez {
    --hcz-primary: #011ABB;
    --hcz-accent: #0052F7;
    --hcz-grad-start: #001DC2;
    --hcz-grad-end: #0052F7;
    --hcz-text: #1f2330;
    --hcz-bg: #ffffff;
    --hcz-btn-text: #ffffff;
    --hcz-radius: 16px;
    --hcz-muted: #6b7280;
    --hcz-border: #e7e9f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--hcz-text);
}

.halic-cerez.hcz-hidden,
.halic-cerez .hcz-hidden {
    display: none !important;
}

/* ---------- Kompakt banner ---------- */
.hcz-banner {
    position: fixed;
    z-index: 2147483600;
    max-width: 360px;
    width: calc(100% - 40px);
    background: var(--hcz-bg);
    border-radius: var(--hcz-radius);
    box-shadow: 0 18px 50px rgba(1, 26, 187, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--hcz-border);
    overflow: hidden;
    animation: hcz-pop .35s cubic-bezier(.21,1.02,.73,1);
}

.halic-cerez[data-position="bottom-left"] .hcz-banner { left: 20px; bottom: 20px; }
.halic-cerez[data-position="bottom-right"] .hcz-banner { right: 20px; bottom: 20px; }
.halic-cerez[data-position="bottom-center"] .hcz-banner { left: 50%; bottom: 20px; transform: translateX(-50%); }
.halic-cerez[data-position="center"] .hcz-banner { left: 50%; top: 50%; transform: translate(-50%, -50%); }

.halic-cerez[data-layout="bar"] .hcz-banner {
    max-width: none;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
}

.hcz-banner::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--hcz-grad-start), var(--hcz-grad-end));
}

.hcz-banner-inner {
    padding: 16px 18px 16px;
}

.halic-cerez[data-layout="bar"] .hcz-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hcz-logo { margin-bottom: 10px; }
.hcz-logo img { max-height: 28px; width: auto; }
.hcz-logo-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--hcz-primary);
    letter-spacing: -0.2px;
}
.hcz-logo-dot { color: var(--hcz-accent); }

.hcz-banner-title {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hcz-text);
}

.hcz-banner-message {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--hcz-muted);
}

.halic-cerez[data-layout="bar"] .hcz-banner-text { flex: 1 1 380px; }

.hcz-banner-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.halic-cerez[data-layout="bar"] .hcz-banner-actions { margin-top: 0; }

/* ---------- Butonlar ---------- */
.hcz-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 9px;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
    line-height: 1;
    flex: 1 1 auto;
    white-space: nowrap;
}

.hcz-btn:active { transform: translateY(1px); }

.hcz-btn-primary {
    background: linear-gradient(90deg, var(--hcz-grad-start), var(--hcz-grad-end));
    color: var(--hcz-btn-text);
    box-shadow: 0 6px 16px rgba(0, 82, 247, 0.35);
}
.hcz-btn-primary:hover { box-shadow: 0 8px 22px rgba(0, 82, 247, 0.45); }

.hcz-btn-ghost {
    background: #f3f5fb;
    color: var(--hcz-primary);
}
.hcz-btn-ghost:hover { background: #e9edfa; }

/* ---------- Modal ---------- */
.hcz-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483601;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hcz-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 40, 0.55);
    backdrop-filter: blur(2px);
}

.hcz-modal-box {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--hcz-bg);
    border-radius: var(--hcz-radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    padding: 26px 30px 22px;
    animation: hcz-pop .3s cubic-bezier(.21,1.02,.73,1);
}

.hcz-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.hcz-modal-head .hcz-logo { margin-bottom: 0; }

.hcz-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #9aa0ad;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
}
.hcz-close:hover { color: var(--hcz-text); background: #f3f5fb; }

/* Sekmeler */
.hcz-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--hcz-border);
    margin: 10px 0 18px;
}
.hcz-tab {
    background: none;
    border: none;
    padding: 10px 2px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hcz-muted);
    cursor: pointer;
    position: relative;
}
.hcz-tab.is-active { color: var(--hcz-primary); }
.hcz-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--hcz-primary);
}

/* Onay ID rozeti */
.hcz-consent-id {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--hcz-grad-start), #14b8e6);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.hcz-consent-id-icon { font-size: 15px; }
.hcz-consent-id-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .95; }

.hcz-modal-intro {
    font-size: 13.5px;
    color: var(--hcz-muted);
    margin: 0 0 14px;
}

/* Kategoriler */
.hcz-category {
    border-bottom: 1px solid var(--hcz-border);
    padding: 4px 0;
}
.hcz-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
}
.hcz-category-toggle-desc {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--hcz-text);
    text-align: left;
    padding: 0;
}
.hcz-chevron {
    display: inline-block;
    font-size: 20px;
    color: var(--hcz-muted);
    transition: transform .2s ease;
}
.hcz-category-toggle-desc[aria-expanded="true"] .hcz-chevron { transform: rotate(90deg); }
.hcz-category-desc {
    padding: 0 2px 14px 30px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--hcz-muted);
}
.hcz-always-on {
    font-size: 12.5px;
    font-weight: 600;
    color: #16a34a;
}

/* Switch */
.hcz-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.hcz-switch input { opacity: 0; width: 0; height: 0; }
.hcz-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background .25s ease;
}
.hcz-slider::before {
    content: "";
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.hcz-switch input:checked + .hcz-slider { background: linear-gradient(90deg, var(--hcz-grad-start), var(--hcz-grad-end)); }
.hcz-switch input:checked + .hcz-slider::before { transform: translateX(20px); }

/* Politika sekmesi */
.hcz-policy-title { font-size: 17px; margin: 6px 0 12px; color: var(--hcz-text); }
.hcz-policy-body { font-size: 14px; line-height: 1.7; color: #374151; }
.hcz-policy-body h1, .hcz-policy-body h2, .hcz-policy-body h3 { color: var(--hcz-text); }
.hcz-policy-body a { color: var(--hcz-accent); }

/* Modal alt */
.hcz-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hcz-border);
}
.hcz-brand-badge {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--hcz-primary);
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: default;
    animation: hcz-brand-ring 2.4s ease-out infinite;
}
.hcz-brand-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hcz-grad-start), var(--hcz-grad-end));
    background-size: 200% 200%;
    display: block;
    animation: hcz-brand-dot 2s ease-in-out infinite;
}

@keyframes hcz-brand-dot {
    0%, 100% {
        transform: scale(0.88);
        background-position: 0% 50%;
        box-shadow: 0 0 0 0 rgba(0, 82, 247, 0.45);
    }
    50% {
        transform: scale(1.12);
        background-position: 100% 50%;
        box-shadow: 0 0 10px 3px rgba(0, 82, 247, 0.28);
    }
}

@keyframes hcz-brand-ring {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(1, 26, 187, 0.22);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(1, 26, 187, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hcz-brand-badge,
    .hcz-brand-dot {
        animation: none;
    }
}
.hcz-modal-foot-actions { display: flex; gap: 10px; }
.hcz-modal-foot-actions .hcz-btn { flex: 0 0 auto; }

/* Yeniden açma bağlantısı */
.halic-cerez-revisit { cursor: pointer; }

/* Her zaman görünür küçük buton (FAB) */
.hcz-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2147483599;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg, var(--hcz-grad-start), var(--hcz-grad-end));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(1, 26, 187, 0.35);
    transition: transform .15s ease, box-shadow .2s ease;
}
.hcz-fab:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 10px 24px rgba(1, 26, 187, 0.45); }
.hcz-fab svg { width: 26px; height: 26px; display: block; }
.hcz-fab[data-position="bottom-right"] { left: auto; right: 20px; }
.hcz-fab[data-position="bottom-center"] { left: 20px; }

@media (max-width: 600px) {
    .hcz-fab { bottom: 14px; left: 14px; width: 42px; height: 42px; }
    .hcz-fab[data-position="bottom-right"] { right: 14px; left: auto; }
}

@keyframes hcz-pop {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.halic-cerez[data-position="bottom-center"] .hcz-banner { animation: none; }

/* Mobil */
@media (max-width: 600px) {
    .hcz-banner {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        width: auto;
        transform: none !important;
    }
    .hcz-banner-actions .hcz-btn { flex: 1 1 100%; }
    .hcz-modal-box { padding: 20px 18px; }
    .hcz-modal-foot { flex-direction: column-reverse; align-items: stretch; }
    .hcz-modal-foot-actions { flex-direction: column; }
    .hcz-modal-foot-actions .hcz-btn { width: 100%; }
}
