/* Privacy Banner Component Styles */

/* Privacy Banner */
.privacy-banner {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    max-width: 20rem;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

.privacy-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.privacy-banner-icon {
    flex-shrink: 0;
}

.privacy-banner-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #2563eb;
}

.privacy-banner-text {
    flex: 1;
    min-width: 0;
}

.privacy-banner-message {
    font-size: 0.875rem;
    color: #374151;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.privacy-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.privacy-banner-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.privacy-banner-close:hover {
    color: #6b7280;
}

.privacy-banner-close svg {
    width: 1rem;
    height: 1rem;
}

/* Privacy Buttons */
.privacy-btn {
    border: none;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
}

.privacy-btn-primary {
    background-color: #2563eb;
    color: white;
}

.privacy-btn-primary:hover {
    background-color: #1d4ed8;
}

.privacy-btn-secondary {
    background-color: #e5e7eb;
    color: #1f2937;
}

.privacy-btn-secondary:hover {
    background-color: #d1d5db;
}

.privacy-btn-link {
    background: none;
    color: #2563eb;
    padding: 0.25rem 0;
}

.privacy-btn-link:hover {
    color: #1d4ed8;
}

.privacy-btn-outline {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.privacy-btn-outline:hover {
    background: #2563eb;
    color: white;
}

.privacy-btn-full {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* Privacy Modal */
.privacy-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 60;
    display: none;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.privacy-modal.show {
    display: flex;
}

.privacy-modal-backdrop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    width: 100%;
}

.privacy-modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.privacy-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.privacy-modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.privacy-modal-close:hover {
    color: #6b7280;
}

.privacy-modal-close svg {
    width: 1.5rem;
    height: 1.5rem;
}

.privacy-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.privacy-setting {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.privacy-setting-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.privacy-setting-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.privacy-setting-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.privacy-setting-label {
    font-size: 0.875rem;
    color: #374151;
}

/* Privacy Toggle */
.privacy-toggle-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.privacy-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.privacy-toggle {
    width: 3rem;
    height: 1.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    position: relative;
    transition: background-color 0.2s ease;
}

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

.privacy-toggle-handle {
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.privacy-toggle-input:checked + .privacy-toggle .privacy-toggle-handle {
    transform: translateX(1.5rem);
}

.privacy-toggle-active {
    width: 3rem;
    height: 1.5rem;
    background-color: #10b981;
    border-radius: 9999px;
    position: relative;
}

.privacy-toggle-active .privacy-toggle-handle {
    transform: translateX(1.5rem);
}

.privacy-modal-footer {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.privacy-modal-legal {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.privacy-legal-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.privacy-legal-link {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.privacy-legal-link:hover {
    color: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 640px) {
    .privacy-banner {
        bottom: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
    
    .privacy-banner-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .privacy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .privacy-modal-backdrop {
        padding: 0.5rem;
    }
    
    .privacy-modal-footer {
        flex-direction: column;
    }
}

/* Animation for smooth appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.privacy-banner.animate-in {
    animation: slideUp 0.3s ease-out;
}

/* Focus styles for accessibility */
.privacy-btn:focus,
.privacy-banner-close:focus,
.privacy-modal-close:focus,
.privacy-toggle-wrapper:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .privacy-banner {
        border: 2px solid #000;
    }
    
    .privacy-btn-primary {
        background-color: #000;
        border: 1px solid #000;
    }
    
    .privacy-btn-secondary {
        background-color: #fff;
        border: 1px solid #000;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .privacy-banner,
    .privacy-toggle,
    .privacy-toggle-handle,
    .privacy-btn {
        transition: none;
    }
    
    .privacy-banner.animate-in {
        animation: none;
    }
} 