/* GDPR Cookie Banner Styles */
:root {
    --gdpr-primary-color: #1e40af;
    --gdpr-accept-color: #16a34a;
    --gdpr-reject-color: #dc2626;
    --gdpr-text-color: #1f2937;
    --gdpr-bg-color: #ffffff;
}

.gdpr-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    background: var(--gdpr-bg-color);
    color: var(--gdpr-text-color);
    padding: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    animation: gdprSlideIn 0.4s ease-out;
}

.gdpr-cookie-banner.position-bottom {
    bottom: 0;
}

.gdpr-cookie-banner.position-top {
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gdpr-cookie-banner.hidden {
    display: none;
}

@keyframes gdprSlideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.position-top .gdpr-cookie-banner {
    animation-name: gdprSlideInTop;
}

@keyframes gdprSlideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gdpr-banner-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gdpr-banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.gdpr-banner-text {
    flex: 1;
    min-width: 300px;
}

.gdpr-banner-text p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.gdpr-privacy-link {
    color: var(--gdpr-primary-color);
    text-decoration: underline;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    transition: opacity 0.2s;
}

.gdpr-privacy-link:hover {
    opacity: 0.8;
}

.gdpr-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gdpr-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.gdpr-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #000000 !important;
    border-color: #000000 !important;
}

.gdpr-btn:active {
    transform: translateY(0);
}

.gdpr-btn-accept {
    background: var(--gdpr-accept-color);
    color: white;
}

.gdpr-btn-reject {
    background: var(--gdpr-reject-color);
    color: white;
}

.gdpr-btn-settings {
    background: transparent;
    color: var(--gdpr-primary-color);
    border: 2px solid var(--gdpr-primary-color);
}

/* Persistent Cookie Settings Button (GDPR Compliance) */
.gdpr-floating-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #2563eb !important;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.gdpr-floating-button:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.gdpr-floating-button:active {
    transform: translateY(0);
}

.gdpr-floating-button svg {
    width: 24px;
    height: 24px;
}

/* Settings Modal */
.gdpr-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    padding: 20px;
}

.gdpr-settings-modal.active {
    display: flex;
}

.gdpr-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: gdprModalIn 0.3s ease-out;
}

@keyframes gdprModalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gdpr-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gdpr-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--gdpr-text-color);
}

.gdpr-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.gdpr-modal-close:hover {
    background: #f3f4f6;
}

.gdpr-modal-body {
    padding: 24px;
}

.gdpr-cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.gdpr-cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.gdpr-category-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gdpr-text-color);
}

.gdpr-toggle {
    position: relative;
    width: 48px;
    height: 24px;
}

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

.gdpr-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

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

.gdpr-toggle input:checked + .gdpr-toggle-slider {
    background-color: #2563eb;
}

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

.gdpr-toggle input:disabled + .gdpr-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.gdpr-category-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.gdpr-modal-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .gdpr-cookie-banner {
        padding: 16px;
    }

    .gdpr-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .gdpr-banner-buttons {
        flex-direction: column;
    }

    .gdpr-btn {
        width: 100%;
    }

    .gdpr-modal-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
}
