/* ============================================
   GDPR Cookie Banner & Modal — Premium Design
   ============================================ */

/* === Cookie Banner (floating card, bottom-left) === */
.gdpr-banner {
    position: fixed !important;
    bottom: 24px;
    left: 24px;
    z-index: 99998;
    animation: gdprSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gdpr-banner.gdpr-banner-hidden {
    display: none !important;
}

@keyframes gdprSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gdpr-banner-card {
    width: 420px;
    max-width: calc(100vw - 48px);
    background: #111828;
    border: 1px solid rgba(200, 160, 74, 0.18);
    border-radius: 20px;
    padding: 28px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 60px rgba(200, 160, 74, 0.06);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gdpr-banner-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.gdpr-banner-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #A8832E, #C8A04A, #E8C96A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #0A0F1C;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(200, 160, 74, 0.3);
}

.gdpr-banner-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
}

.gdpr-banner-sub {
    font-size: 0.78rem;
    color: #6B7490;
    margin: 0;
    line-height: 1.3;
}

.gdpr-banner-body p {
    font-size: 0.85rem;
    color: #9CA3B8;
    line-height: 1.65;
    margin: 0 0 20px 0;
}

.gdpr-banner-body a {
    color: #C8A04A;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.gdpr-banner-body a:hover {
    color: #E8C96A;
}

/* Banner action buttons */
.gdpr-banner-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-gdpr {
    cursor: pointer;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-gdpr-accept {
    flex: 1;
    background: linear-gradient(135deg, #A8832E, #C8A04A, #E8C96A);
    color: #0A0F1C;
    box-shadow: 0 4px 16px rgba(200, 160, 74, 0.3);
}

.btn-gdpr-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(200, 160, 74, 0.3);
}

.btn-gdpr-accept:active {
    transform: translateY(0);
}

.btn-gdpr-decline {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: #C8CEDC;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-gdpr-decline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}

.gdpr-banner-settings-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6B7490;
    padding: 6px 0 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gdpr-banner-settings-link:hover {
    color: #C8A04A;
}

.gdpr-banner-settings-link i {
    font-size: 0.75rem;
}

/* === GDPR Modal === */
.gdpr-modal {
    position: fixed !important;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gdpr-modal-box {
    position: relative;
    background: #111828;
    border: 1px solid rgba(200, 160, 74, 0.15);
    border-radius: 20px;
    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    animation: gdprModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes gdprModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scrollbar inside modal */
.gdpr-modal-box::-webkit-scrollbar { width: 6px; }
.gdpr-modal-box::-webkit-scrollbar-track { background: transparent; }
.gdpr-modal-box::-webkit-scrollbar-thumb { background: #232D42; border-radius: 3px; }

/* Modal header */
.gdpr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gdpr-modal-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gdpr-modal-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #A8832E, #C8A04A, #E8C96A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #0A0F1C;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(200, 160, 74, 0.3);
}

.gdpr-modal-title-group h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
}

.gdpr-modal-title-group p {
    font-size: 0.78rem;
    color: #6B7490;
    margin: 2px 0 0;
    line-height: 1.3;
}

.gdpr-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9CA3B8;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.gdpr-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

/* Modal body */
.gdpr-modal-body {
    padding: 8px 32px;
}

/* Category row */
.gdpr-cat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gdpr-cat:last-child {
    border-bottom: none;
}

.gdpr-cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(200, 160, 74, 0.1);
    border: 1px solid rgba(200, 160, 74, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #C8A04A;
    flex-shrink: 0;
    margin-top: 2px;
}

.gdpr-cat-info {
    flex: 1;
    min-width: 0;
}

.gdpr-cat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.gdpr-cat-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.gdpr-cat-info p {
    font-size: 0.8rem;
    color: #6B7490;
    line-height: 1.55;
    margin: 0;
}

/* Status badges */
.gdpr-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 2px 8px;
    border-radius: 20px;
    line-height: 1.6;
}

.gdpr-badge-always {
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.gdpr-badge-optional {
    background: rgba(200, 160, 74, 0.1);
    color: #C8A04A;
    border: 1px solid rgba(200, 160, 74, 0.2);
}

/* Toggle switch */
.gdpr-toggle {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
    margin-top: 2px;
}

.gdpr-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gdpr-toggle-track {
    width: 46px;
    height: 26px;
    background: #232D42;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gdpr-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #6B7490;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gdpr-toggle input:checked + .gdpr-toggle-track {
    background: #A8832E;
    border-color: #C8A04A;
}

.gdpr-toggle input:checked + .gdpr-toggle-track .gdpr-toggle-thumb {
    left: 23px;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Locked toggle (necessary) */
.gdpr-toggle-locked {
    cursor: default;
    opacity: 0.6;
}

.gdpr-toggle-locked .gdpr-toggle-track {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.4);
}

.gdpr-toggle-locked .gdpr-toggle-thumb {
    left: 23px;
    background: #34D399;
}

/* Modal footer */
.gdpr-modal-footer {
    padding: 22px 32px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gdpr-modal-footer .btn-gdpr {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.9rem;
}

.gdpr-modal-footer-note {
    text-align: center;
    font-size: 0.72rem;
    color: #4A5268;
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.gdpr-modal-footer-note i {
    font-size: 0.65rem;
    color: #4A5268;
}

/* === Footer legal links + cookie settings btn === */
.footer-legal-links {
    margin-top: 8px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #6B7490;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-legal-links a:hover {
    color: #C8A04A;
}

.footer-legal-links span {
    color: #232D42;
}

.footer-cookie-settings-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7490;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-cookie-settings-btn:hover {
    color: #C8A04A;
}

/* === Responsive GDPR === */
@media (max-width: 768px) {
    .gdpr-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }

    .gdpr-banner-card {
        width: auto;
        max-width: none;
        padding: 22px;
    }

    .gdpr-banner-header h3 {
        font-size: 0.95rem;
    }

    .gdpr-banner-body p {
        font-size: 0.82rem;
    }

    .gdpr-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .gdpr-modal-box {
        max-height: 88vh;
        border-radius: 20px 20px 12px 12px;
    }

    .gdpr-modal-header,
    .gdpr-modal-body,
    .gdpr-modal-footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .gdpr-cat {
        gap: 10px;
    }

    .gdpr-cat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gdpr-banner-actions {
        flex-direction: column;
    }

    .gdpr-modal-title-group {
        gap: 10px;
    }

    .gdpr-modal-icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}
