/* GDPR Compliance Styles */
.gdpr-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gdpr-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.gdpr-text {
    flex: 1;
}

.gdpr-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.gdpr-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.gdpr-text a {
    color: #60a5fa;
    text-decoration: underline;
}

.gdpr-text a:hover {
    color: #93c5fd;
}

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

.gdpr-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gdpr-btn-settings {
    background: #374151;
    color: white;
    border: 1px solid #4b5563;
}

.gdpr-btn-settings:hover {
    background: #4b5563;
}

.gdpr-btn-reject {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #6b7280;
}

.gdpr-btn-reject:hover {
    background: #374151;
    color: white;
}

.gdpr-btn-accept {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
    color: white;
    border: none;
}

.gdpr-btn-accept:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    transform: translateY(-1px);
}

/* GDPR Modal */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

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

.gdpr-modal.show .gdpr-modal-content {
    transform: scale(1);
}

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

.gdpr-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.gdpr-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

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

.gdpr-modal-body > p {
    margin: 0 0 24px 0;
    color: #6b7280;
    line-height: 1.5;
}

.gdpr-cookie-category {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

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

.gdpr-category-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.gdpr-cookie-category p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Toggle Switch */
.gdpr-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

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

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

.gdpr-switch input:checked + .gdpr-slider {
    background-color: #7C3AED;
}

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

.gdpr-switch input:disabled + .gdpr-slider {
    background-color: #7C3AED;
    opacity: 0.6;
    cursor: not-allowed;
}

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

.gdpr-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

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

.gdpr-btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
    color: white;
    border: none;
}

.gdpr-btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    transform: translateY(-1px);
}

/* Notification */
.gdpr-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.gdpr-notification.show {
    transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gdpr-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .gdpr-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gdpr-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .gdpr-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .gdpr-modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .gdpr-modal-body {
        padding: 0 20px;
    }
    
    .gdpr-modal-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .gdpr-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .gdpr-modal-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .gdpr-modal-header {
        border-color: #374151;
    }
    
    .gdpr-modal-header h2 {
        color: #f9fafb;
    }
    
    .gdpr-close {
        color: #9ca3af;
    }
    
    .gdpr-close:hover {
        background: #374151;
        color: #f9fafb;
    }
    
    .gdpr-cookie-category {
        background: #374151;
        border-color: #4b5563;
    }
    
    .gdpr-category-header h3 {
        color: #f9fafb;
    }
    
    .gdpr-cookie-category p {
        color: #d1d5db;
    }
    
    .gdpr-modal-footer {
        border-color: #374151;
    }
}
