/* Cookie Consent Banner Styles */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.consent-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.consent-header p {
    margin: 0 0 20px 0;
    color: #4a5568;
    line-height: 1.5;
}

.consent-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.consent-option {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.consent-option label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
}

.consent-option label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
}

.consent-option label input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.option-description {
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

.consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.consent-btn.primary {
    background: #3182ce;
    color: white;
}

.consent-btn.primary:hover {
    background: #2c5282;
}

.consent-btn.secondary {
    background: #4a5568;
    color: white;
}

.consent-btn.secondary:hover {
    background: #2d3748;
}

.consent-btn.tertiary {
    background: #e2e8f0;
    color: #4a5568;
}

.consent-btn.tertiary:hover {
    background: #cbd5e0;
}

.consent-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.consent-footer p {
    margin: 0;
    font-size: 0.75rem;
    color: #718096;
}

.consent-footer a {
    color: #3182ce;
    text-decoration: none;
}

.consent-footer a:hover {
    text-decoration: underline;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .consent-banner {
        background: #1a202c;
        border-top-color: #2d3748;
    }
    
    .consent-header h3 {
        color: #f7fafc;
    }
    
    .consent-header p {
        color: #cbd5e0;
    }
    
    .consent-option {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .consent-option label {
        color: #f7fafc;
    }
    
    .option-description {
        color: #a0aec0;
    }
    
    .consent-footer {
        border-top-color: #4a5568;
    }
    
    .consent-footer p {
        color: #a0aec0;
    }
    
    .consent-btn.tertiary {
        background: #4a5568;
        color: #f7fafc;
    }
    
    .consent-btn.tertiary:hover {
        background: #718096;
    }
}

/* Consent Modal Styles */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f7fafc;
    color: #4a5568;
}

.modal-body {
    padding: 24px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Consent Notification */
.consent-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    background: #48bb78;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-content button {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-content button:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .consent-content {
        padding: 15px;
    }
    
    .consent-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .consent-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .consent-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .consent-btn {
        width: 100%;
    }
    
    .consent-notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}

/* Accessibility improvements */
.consent-option label:focus-within {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

.consent-btn:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .consent-banner,
    .consent-modal,
    .consent-notification {
        display: none !important;
    }
}
