/**
 * GDPR Cookie Consent Styles - Memphis Design
 * Matches Lamperia24 brand colors and design language
 */

/* Cookie Consent Banner */
.gdpr-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffd100 0%, #ff3ea5 50%, #3a86ff 100%);
    border-top: 4px solid #0b0b0b;
    box-shadow: 0 -8px 32px rgba(11, 11, 11, 0.2);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

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

.gdpr-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.gdpr-banner-text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 300px;
}

.gdpr-banner-icon {
    font-size: 2rem;
    background: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #0b0b0b;
    transform: rotate(-5deg);
    flex-shrink: 0;
}

.gdpr-banner-title {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b0b0b;
    margin: 0 0 8px 0;
    transform: rotate(1deg);
}

.gdpr-banner-description {
    color: #0b0b0b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.gdpr-link {
    color: #0b0b0b;
    text-decoration: underline;
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.gdpr-link:hover {
    text-decoration-color: #ff3ea5;
}

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

/* Buttons */
.gdpr-btn {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 25px;
    border: 2px solid #0b0b0b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.gdpr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 0 #0b0b0b;
}

.gdpr-btn-accept {
    background: #00f5d4;
    color: #0b0b0b;
}

.gdpr-btn-accept:hover {
    background: #00e6c3;
}

.gdpr-btn-reject {
    background: #ffffff;
    color: #0b0b0b;
}

.gdpr-btn-reject:hover {
    background: #f1f5f9;
}

.gdpr-btn-settings {
    background: #b388ff;
    color: #ffffff;
}

.gdpr-btn-settings:hover {
    background: #9c64ff;
}

.gdpr-btn-primary {
    background: #3a86ff;
    color: #ffffff;
}

.gdpr-btn-primary:hover {
    background: #2563eb;
}

.gdpr-btn-secondary {
    background: #ffffff;
    color: #0b0b0b;
}

.gdpr-btn-secondary:hover {
    background: #f8fafc;
}

/* Settings Modal */
.gdpr-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gdpr-settings-modal.gdpr-modal-visible {
    opacity: 1;
    visibility: visible;
}

.gdpr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 11, 11, 0.7);
    backdrop-filter: blur(4px);
}

.gdpr-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fffaf2;
    border-radius: 24px;
    border: 4px solid #0b0b0b;
    box-shadow: 12px 12px 0 0 #0b0b0b;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gdpr-modal-header {
    background: linear-gradient(135deg, #ffd100 0%, #ff3ea5 100%);
    padding: 24px;
    border-bottom: 2px solid #0b0b0b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gdpr-modal-title {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0b0b0b;
    margin: 0;
    transform: rotate(-1deg);
}

.gdpr-modal-close {
    background: #ffffff;
    border: 2px solid #0b0b0b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0b0b0b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gdpr-modal-close:hover {
    background: #f1f5f9;
    transform: rotate(90deg);
}

.gdpr-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.gdpr-modal-description {
    color: #0b0b0b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 24px 0;
    opacity: 0.8;
}

.gdpr-cookie-category {
    background: #ffffff;
    border: 2px solid #0b0b0b;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transform: rotate(0.5deg);
}

.gdpr-cookie-category:nth-child(even) {
    transform: rotate(-0.5deg);
}

.gdpr-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.gdpr-category-info h3 {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0b0b0b;
    margin: 0 0 8px 0;
}

.gdpr-category-info p {
    color: #0b0b0b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.7;
}

.gdpr-toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.gdpr-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background: #e2e8f0;
    border: 2px solid #0b0b0b;
    border-radius: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gdpr-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #0b0b0b;
    border-radius: 50%;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked + .gdpr-toggle {
    background: #00f5d4;
}

input[type="checkbox"]:checked + .gdpr-toggle .gdpr-toggle-slider {
    transform: translateX(24px);
    background: #0b0b0b;
}

input[type="checkbox"] {
    display: none;
}

.gdpr-toggle-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #00f5d4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gdpr-modal-footer {
    background: #f8fafc;
    border-top: 2px solid #0b0b0b;
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Floating Settings Button */
.gdpr-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #b388ff;
    border: 3px solid #0b0b0b;
    box-shadow: 4px 4px 0 0 #0b0b0b;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gdpr-settings-btn:hover {
    transform: translateY(-2px) rotate(10deg);
    box-shadow: 6px 6px 0 0 #0b0b0b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gdpr-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .gdpr-banner-text {
        flex-direction: column;
        text-align: center;
        min-width: auto;
    }
    
    .gdpr-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .gdpr-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .gdpr-modal-content {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
    }
    
    .gdpr-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .gdpr-toggle-container {
        align-self: flex-end;
    }
    
    .gdpr-modal-footer {
        flex-direction: column;
    }
    
    .gdpr-settings-btn {
        display: none !important; /* Hide on mobile */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gdpr-consent-banner {
        background: #ffffff;
        border-top: 4px solid #000000;
    }
    
    .gdpr-banner-title,
    .gdpr-banner-description {
        color: #000000;
    }
    
    .gdpr-btn {
        border: 3px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gdpr-consent-banner,
    .gdpr-settings-modal,
    .gdpr-btn,
    .gdpr-toggle,
    .gdpr-settings-btn {
        transition: none;
    }
    
    .gdpr-cookie-category {
        transform: none;
    }
}
