/* ============================================================
   Blog The Tech — Cookie Consent Banner
   assets/cookie.css
   ============================================================ */

body.lejp-cookie-lock {
    overflow: hidden;
}

.lejp-cookie {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 40px));
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 760px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 8px rgba(15,23,42,.04), 0 16px 40px rgba(15,23,42,.12);
    opacity: 0;
    transition: transform .38s cubic-bezier(0.16, 1, 0.3, 1), opacity .38s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.lejp-cookie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #60a5fa 55%, transparent);
    border-radius: 0 0 2px 2px;
    opacity: .75;
}

.lejp-cookie.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.lejp-cookie__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    flex-wrap: wrap;
    position: relative;
}

.lejp-cookie__icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.lejp-cookie__text {
    flex: 1;
    min-width: 220px;
}

.lejp-cookie__title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: -.1px;
}

.lejp-cookie__desc {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.lejp-cookie__desc a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.lejp-cookie__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
    flex-wrap: wrap;
}

.lejp-cookie__btn {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lejp-cookie__btn--decline {
    background: transparent;
    color: #334155;
    border: 1.5px solid #dbe3ef;
}

.lejp-cookie__btn--decline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.lejp-cookie__btn--settings {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1.5px solid #dbeafe;
}

.lejp-cookie__btn--settings:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.lejp-cookie__btn--accept {
    background: #2563eb;
    color: #ffffff;
    border: 1.5px solid #2563eb;
    box-shadow: 0 8px 18px rgba(37,99,235,.18);
}

.lejp-cookie__btn--accept:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.lejp-cookie__close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    flex-shrink: 0;
}

.lejp-cookie__close:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.lejp-cookie__btn:focus-visible,
.lejp-cookie__close:focus-visible,
.lejp-cookie-modal__close:focus-visible,
.lejp-cookie-modal__btn:focus-visible,
.lejp-cookie-pref__toggle:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
}

/* Modal */
.lejp-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.lejp-cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.58);
    backdrop-filter: blur(4px);
}

.lejp-cookie-modal__panel {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    margin: 16px auto;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15,23,42,.22);
    padding: 22px;
}

.lejp-cookie-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.lejp-cookie-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #60a5fa;
    margin: 0 0 8px;
}

.lejp-cookie-modal__badge::before {
    content: '';
    width: 18px;
    height: 2px;
    background: #60a5fa;
    border-radius: 2px;
    display: block;
}

.lejp-cookie-modal__title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -.4px;
}

.lejp-cookie-modal__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #475569;
    max-width: 620px;
}

.lejp-cookie-modal__close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lejp-cookie-modal__close:hover {
    background: #f8fafc;
    color: #0f172a;
}

.lejp-cookie-modal__body {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.lejp-cookie-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.lejp-cookie-pref--locked {
    background: #eff6ff;
    border-color: #dbeafe;
}

.lejp-cookie-pref__meta {
    min-width: 0;
}

.lejp-cookie-pref__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
}

.lejp-cookie-pref__text {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #64748b;
}

.lejp-cookie-pref__state {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 800;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 6px 12px;
}

.lejp-cookie-pref__toggle {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #2563eb;
}

.lejp-cookie-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.lejp-cookie-modal__btn {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lejp-cookie-modal__btn--secondary {
    background: transparent;
    color: #334155;
    border: 1.5px solid #dbe3ef;
}

.lejp-cookie-modal__btn--secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.lejp-cookie-modal__btn--primary {
    background: #2563eb;
    color: #fff;
    border: 1.5px solid #2563eb;
    box-shadow: 0 8px 18px rgba(37,99,235,.18);
}

.lejp-cookie-modal__btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 640px) {
    .lejp-cookie {
        bottom: 12px;
        border-radius: 14px;
        width: calc(100% - 24px);
    }

    .lejp-cookie__inner {
        padding: 16px 16px 14px;
        gap: 10px;
    }

    .lejp-cookie__icon {
        display: none;
    }

    .lejp-cookie__actions {
        width: 100%;
    }

    .lejp-cookie__btn {
        flex: 1 1 100%;
        text-align: center;
    }

    .lejp-cookie__close {
        top: 8px;
        right: 8px;
    }

    .lejp-cookie-modal__panel {
        width: calc(100% - 24px);
        padding: 18px;
        border-radius: 18px;
    }

    .lejp-cookie-modal__head {
        flex-direction: column;
    }

    .lejp-cookie-pref {
        align-items: flex-start;
        flex-direction: column;
    }

    .lejp-cookie-pref__state {
        align-self: flex-start;
    }

    .lejp-cookie-modal__actions {
        justify-content: stretch;
    }

    .lejp-cookie-modal__btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lejp-cookie {
        transition: opacity .2s ease;
        transform: translateX(-50%) translateY(0);
    }

    .lejp-cookie.is-visible {
        opacity: 1;
    }

    .lejp-cookie-modal__btn,
    .lejp-cookie__btn,
    .lejp-cookie__close {
        transition: none;
    }
}