/**
 * GDPR Law Consent - Styles
 */

/* CSS Variables */
:root {
    --gdpr-primary-color: #0073aa;
    --gdpr-secondary-color: #23282d;
    --gdpr-text-color: #ffffff;
    --gdpr-banner-bg-color: #23282d;
    --gdpr-border-radius: 8px;
    --gdpr-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    --gdpr-transition: all 0.3s ease;
}

/* Reset */
.gdpr-consent-banner *,
.gdpr-consent-banner *::before,
.gdpr-consent-banner *::after {
    box-sizing: border-box;
}

/* Banner Base */
.gdpr-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    background-color: var(--gdpr-banner-bg-color);
    color: var(--gdpr-text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
}

.gdpr-consent-banner:focus {
    outline: none;
}

/* Position Variants */
.gdpr-consent-banner.gdpr-banner--bottom {
    bottom: 0;
    box-shadow: var(--gdpr-shadow);
}

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

.gdpr-consent-banner.gdpr-banner--center {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: calc(100% - 40px);
    border-radius: var(--gdpr-border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Container */
.gdpr-consent-banner__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.gdpr-banner--center .gdpr-consent-banner__container {
    flex-direction: column;
    text-align: center;
}

/* Content */
.gdpr-consent-banner__content {
    flex: 1;
    min-width: 300px;
}

.gdpr-consent-banner__title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--gdpr-text-color);
}

.gdpr-consent-banner__message {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.gdpr-consent-banner__message a {
    color: var(--gdpr-primary-color);
    text-decoration: underline;
}

.gdpr-consent-banner__message a:hover {
    text-decoration: none;
}

/* Inline Checkboxes (shown on main popup) */
.gdpr-inline-checkboxes {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.gdpr-inline-checkbox {
    display: inline-flex;
    align-items: center;
}

.gdpr-inline-checkbox:not(:last-child) {
    margin-right: 16px;
}

.gdpr-inline-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.gdpr-inline-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gdpr-primary-color);
    cursor: pointer;
    margin: 0;
}

.gdpr-inline-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.gdpr-inline-badge {
    font-size: 10px;
    padding: 2px 6px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.8);
}

.gdpr-banner--center .gdpr-inline-checkboxes {
    justify-content: center;
}

/* Actions */
.gdpr-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.gdpr-banner--center .gdpr-consent-banner__actions {
    justify-content: center;
    width: 100%;
}

/* Buttons */
.gdpr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--gdpr-transition);
    white-space: nowrap;
}

.gdpr-btn--primary {
    background-color: var(--gdpr-primary-color);
    color: #ffffff;
}

.gdpr-btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

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

.gdpr-btn--link {
    background: transparent;
    color: var(--gdpr-text-color);
    padding: 10px;
    text-decoration: underline;
}

.gdpr-btn--link:hover {
    text-decoration: none;
}

/* Preferences Panel */
.gdpr-preferences-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.gdpr-banner--center .gdpr-preferences-panel {
    padding: 20px;
}

.gdpr-preferences-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

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

.gdpr-preferences-panel__close {
    background: transparent;
    border: none;
    color: var(--gdpr-text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}

.gdpr-preferences-panel__close:hover {
    opacity: 1;
}

.gdpr-preferences-panel__content {
    max-height: 300px;
    overflow-y: auto;
}

.gdpr-preferences-panel__actions {
    margin-top: 16px;
    text-align: right;
}

.gdpr-banner--center .gdpr-preferences-panel__actions {
    text-align: center;
}

/* Cookie Category */
.gdpr-cookie-category {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.gdpr-cookie-category__header {
    display: flex;
    align-items: center;
}

.gdpr-cookie-category__label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.gdpr-cookie-category__label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gdpr-primary-color);
    cursor: pointer;
}

.gdpr-cookie-category__label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.gdpr-cookie-category__badge {
    font-size: 11px;
    padding: 2px 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-weight: normal;
}

.gdpr-cookie-category__description {
    margin: 8px 0 0 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Overlay */
.gdpr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    backdrop-filter: blur(2px);
}

/* Animation */
.gdpr-consent-banner {
    animation: gdprSlideIn 0.4s ease-out;
}

.gdpr-banner--bottom {
    animation-name: gdprSlideInBottom;
}

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

.gdpr-banner--center {
    animation-name: gdprFadeIn;
}

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

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

@keyframes gdprFadeIn {
    from {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gdpr-consent-banner__container {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .gdpr-consent-banner__content {
        min-width: 100%;
    }

    .gdpr-consent-banner__actions {
        width: 100%;
        justify-content: center;
    }

    .gdpr-btn {
        flex: 1;
        min-width: 100px;
    }

    .gdpr-preferences-panel {
        padding: 16px;
    }

    .gdpr-preferences-panel__content {
        max-height: 200px;
    }

    .gdpr-cookie-category__description {
        margin-left: 0;
        margin-top: 8px;
    }

    .gdpr-inline-checkboxes {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .gdpr-inline-checkbox {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Print */
@media print {
    .gdpr-consent-banner,
    .gdpr-overlay {
        display: none !important;
    }
}
