/* GDPR Banner - Theme Insensitive (Always Dark) */

/* Banner Container */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 20px 0;
    z-index: 999999;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gdpr-banner.show {
    transform: translateY(0);
}

.gdpr-banner-content {
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.gdpr-banner-message {
    flex: 1;
    min-width: 0;
}

.gdpr-text {
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 400;
    font-display: swap;
}

.gdpr-text .privacy-policy-link {
    color: var(--huminder-secondary-turquoise);
    text-decoration: underline;
    margin-left: 6px;
    transition: color 0.3s ease;
}

.gdpr-text .privacy-policy-link:hover {
    color: var(--huminder-turquoise-hover);
    text-decoration: none;
}

.gdpr-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Buttons - Enfold Style */
.gdpr-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    line-height: 1.2;
    font-display: swap;
}

.gdpr-btn-primary {
    background: var(--huminder-secondary-turquoise);
    color: #000000;
    border: 1px solid var(--huminder-secondary-turquoise);
}

.gdpr-btn-primary:hover {
    background: var(--huminder-turquoise-hover);
    border-color: var(--huminder-turquoise-hover);
    transform: translateY(-1px);
}

.gdpr-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gdpr-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.gdpr-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.gdpr-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Modal Styles */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gdpr-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.gdpr-modal-content {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gdpr-modal.show .gdpr-modal-content {
    transform: translateY(0);
}

.gdpr-modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gdpr-modal-header h3 {
    margin: 0;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    font-display: swap;
}

.gdpr-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gdpr-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.gdpr-modal-body {
    padding: 25px 30px;
}

.gdpr-cookie-group {
    margin-bottom: 25px;
}

.gdpr-cookie-group:last-child {
    margin-bottom: 0;
}

.gdpr-cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.gdpr-cookie-header h4 {
    margin: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-display: swap;
}

.gdpr-cookie-desc {
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    font-display: swap;
}

/* Toggle Switch */
.gdpr-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.gdpr-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gdpr-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.gdpr-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

.gdpr-toggle input:checked + .gdpr-slider {
    background: var(--huminder-secondary-turquoise);
}

.gdpr-toggle input:checked + .gdpr-slider:before {
    transform: translateX(24px);
}

.gdpr-toggle input:disabled + .gdpr-slider {
    background: var(--huminder-secondary-turquoise);
    opacity: 0.6;
    cursor: not-allowed;
}

.gdpr-modal-footer {
    padding: 20px 30px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gdpr-modal-privacy-link {
    text-align: center;
}

.gdpr-modal-privacy-link .privacy-policy-link {
    color: var(--huminder-secondary-turquoise);
    text-decoration: underline;
    font-family: inherit;
    font-size: 14px;
    transition: color 0.3s ease;
}

.gdpr-modal-privacy-link .privacy-policy-link:hover {
    color: var(--huminder-turquoise-hover);
    text-decoration: none;
}

.gdpr-modal-buttons {
    display: flex;
    justify-content: flex-end;
}

.gdpr-modal-footer .gdpr-btn {
    min-width: 140px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .gdpr-banner-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .gdpr-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .gdpr-btn {
        min-width: 100px;
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .gdpr-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .gdpr-modal-header,
    .gdpr-modal-body,
    .gdpr-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .gdpr-modal-buttons {
        flex-direction: column;
    }
    
    .gdpr-modal-footer .gdpr-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .gdpr-banner {
        padding: 15px 0;
    }
    
    .gdpr-banner-content {
        padding: 0 15px;
    }
    
    .gdpr-text {
        font-size: 13px;
    }
    
    .gdpr-btn {
        font-size: 11px;
        padding: 7px 12px;
        min-width: 80px;
    }
}

/* Animation for initial load */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.gdpr-banner.animate {
    animation: slideUp 0.3s ease-out;
}
