/* ═══════════════════════════════════════════
   JITS GDPR Cookie Consent – Styles
   Matches Jesus is the Saviour site design
   ═══════════════════════════════════════════ */

/* ─── Overlay ─── */
.jits-gdpr-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jits-gdpr-overlay.is-visible {
    opacity: 1;
}

/* ─── Banner ─── */
.jits-gdpr-banner {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: linear-gradient(165deg, rgba(26, 26, 46, 0.97), rgba(15, 15, 26, 0.98));
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 20px;
    padding: 32px;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(102, 126, 234, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: translateY(40px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.jits-gdpr-overlay.is-visible .jits-gdpr-banner {
    transform: translateY(0);
}

/* ─── Glow effect ─── */
.jits-gdpr-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: jitsGdprGlow 6s ease-in-out infinite alternate;
}

@keyframes jitsGdprGlow {
    0%   { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, -15px) rotate(3deg); }
}

/* ─── Header ─── */
.jits-gdpr-header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.jits-gdpr-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    animation: jitsGdprIconPulse 3s ease-in-out infinite;
}

@keyframes jitsGdprIconPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3); }
    50%      { box-shadow: 0 8px 32px rgba(102, 126, 234, 0.5), 0 0 20px rgba(255, 215, 0, 0.15); }
}

.jits-gdpr-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Text ─── */
.jits-gdpr-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0 0 20px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Categories ─── */
.jits-gdpr-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.jits-gdpr-cat label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jits-gdpr-cat label:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

/* ─── Toggle switch ─── */
.jits-gdpr-cat input[type="checkbox"] {
    display: none;
}

.jits-gdpr-toggle {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    transition: background 0.3s ease;
}

.jits-gdpr-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.jits-gdpr-cat input:checked + .jits-gdpr-toggle {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.jits-gdpr-cat input:checked + .jits-gdpr-toggle::after {
    transform: translateX(18px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.jits-gdpr-cat input:disabled + .jits-gdpr-toggle {
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0.7;
}

.jits-gdpr-cat input:disabled + .jits-gdpr-toggle::after {
    transform: translateX(18px);
}

/* ─── Category info ─── */
.jits-gdpr-cat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.jits-gdpr-cat-info strong {
    font-size: 0.88rem;
    color: #fff;
    font-weight: 600;
}

.jits-gdpr-cat-info small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

/* ─── Buttons ─── */
.jits-gdpr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.jits-gdpr-btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.jits-gdpr-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Accept All – primary */
.jits-gdpr-btn--accept {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.jits-gdpr-btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.45);
}

.jits-gdpr-btn--accept::before {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,215,0,0));
}

.jits-gdpr-btn--accept:hover::before {
    opacity: 1;
}

/* Accept Selected – outline */
.jits-gdpr-btn--selected {
    background: transparent;
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.45);
}

.jits-gdpr-btn--selected:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Necessary Only – ghost */
.jits-gdpr-btn--reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.jits-gdpr-btn--reject:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* ─── Footer links ─── */
.jits-gdpr-footer-links {
    text-align: center;
    font-size: 0.78rem;
}

.jits-gdpr-footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.25s ease;
}

.jits-gdpr-footer-links a:hover {
    color: #ffd700;
}

.jits-gdpr-footer-links span {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 8px;
}

/* ─── Reopen button (small floating icon) ─── */
.jits-gdpr-reopen {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
}

.jits-gdpr-reopen.is-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.jits-gdpr-reopen:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

/* ─── Close animation ─── */
.jits-gdpr-overlay.is-closing {
    opacity: 0;
}

.jits-gdpr-overlay.is-closing .jits-gdpr-banner {
    transform: translateY(40px);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .jits-gdpr-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .jits-gdpr-banner {
        padding: 24px 18px;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        overflow-y: auto;
    }

    .jits-gdpr-categories {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .jits-gdpr-actions {
        flex-direction: column;
    }

    .jits-gdpr-btn {
        width: 100%;
        text-align: center;
    }

    .jits-gdpr-header h3 {
        font-size: 1.15rem;
    }

    .jits-gdpr-text {
        font-size: 0.85rem;
    }
}
