/**
 * GDPR Consent Banner - "Your Privacy Matters" Design
 * Simple bottom banner with clean design
 */

/* Bottom Banner Style */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.gdpr-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.gdpr-text {
    flex: 1;
}

.gdpr-text h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gray-900, #1d1d1f);
    margin: 0 0 0.5rem 0;
}

.gdpr-text p {
    font-size: 0.875rem;
    color: var(--color-gray-700, #6e6e73);
    margin: 0;
    line-height: 1.5;
}

.gdpr-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.gdpr-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.gdpr-btn-accept {
    background: #0071e3;
    color: white;
}

.gdpr-btn-accept:hover {
    background: #0051a3;
}

.gdpr-btn-essential {
    background: #f5f5f7;
    color: #1d1d1f;
}

.gdpr-btn-essential:hover {
    background: #e8e8ed;
}

.gdpr-btn-settings {
    background: transparent;
    color: #0071e3;
    border: 1px solid #d2d2d7;
}

.gdpr-btn-settings:hover {
    border-color: #0071e3;
    background: rgba(0, 113, 227, 0.05);
}

/* Cookie Settings Modal */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gdpr-modal-content {
    background: white;
    border-radius: 0.75rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gdpr-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #d2d2d7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gdpr-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.gdpr-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6e6e73;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.gdpr-modal-close:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

.gdpr-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.gdpr-setting-group {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
}

.gdpr-setting-group:last-child {
    margin-bottom: 0;
}

.gdpr-setting-group h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 0.5rem 0;
}

.gdpr-setting-group p {
    font-size: 0.875rem;
    color: #6e6e73;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.gdpr-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.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: #d2d2d7;
    transition: 0.3s;
    border-radius: 28px;
}

.gdpr-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.gdpr-toggle input:checked + .gdpr-toggle-slider {
    background-color: #34c759;
}

.gdpr-toggle input:checked + .gdpr-toggle-slider:before {
    transform: translateX(20px);
}

.gdpr-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gdpr-toggle.disabled .gdpr-toggle-slider {
    cursor: not-allowed;
}

.gdpr-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #d2d2d7;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gdpr-banner {
        padding: 1rem;
    }
    
    .gdpr-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .gdpr-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .gdpr-btn {
        width: 100%;
    }
    
    .gdpr-setting-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gdpr-modal-footer {
        flex-direction: column-reverse;
    }
    
    .gdpr-modal-footer .gdpr-btn {
        width: 100%;
    }
}
