/**
 * Azure Academy GDPR Cookie Consent Styles
 * GDPR-compliant styling with accessibility features
 */

/* Banner Styles */
.azure-gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid #0073aa;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

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

.azure-gdpr-banner-text {
    flex: 1;
}

.azure-gdpr-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.azure-gdpr-description {
    margin: 0;
    color: #50575e;
}

.azure-gdpr-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Button Styles - Equal prominence as required */
.azure-gdpr-btn {
    padding: 12px 24px;
    border: 2px solid #0073aa;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.azure-gdpr-btn-accept {
    background: #0073aa;
    color: #ffffff;
}

.azure-gdpr-btn-accept:hover,
.azure-gdpr-btn-accept:focus {
    background: #005a87;
    border-color: #005a87;
}

.azure-gdpr-btn-reject {
    background: #ffffff;
    color: #0073aa;
}

.azure-gdpr-btn-reject:hover,
.azure-gdpr-btn-reject:focus {
    background: #f0f6fc;
    border-color: #005a87;
}

.azure-gdpr-btn-settings {
    background: #ffffff;
    color: #50575e;
    border-color: #8c8f94;
}

.azure-gdpr-btn-settings:hover,
.azure-gdpr-btn-settings:focus {
    background: #f6f7f7;
    border-color: #646970;
}

/* Focus styles for accessibility */
.azure-gdpr-btn:focus {
    outline: 2px solid #005a87;
    outline-offset: 2px;
}

/* Modal Styles */
.azure-gdpr-modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.azure-gdpr-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

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

.azure-gdpr-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.azure-gdpr-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: #646970;
    line-height: 1;
    border-radius: 4px;
}

.azure-gdpr-close:hover,
.azure-gdpr-close:focus {
    background: #f6f7f7;
    color: #1d2327;
}

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

.azure-gdpr-category {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.azure-gdpr-category h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.azure-gdpr-category p {
    margin: 0;
    color: #50575e;
    font-size: 14px;
    line-height: 1.5;
}

/* Toggle Switch Styles */
.azure-gdpr-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

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

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

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

input:checked + .azure-gdpr-slider {
    background-color: #0073aa;
}

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

input:disabled + .azure-gdpr-slider {
    background-color: #dcdcde;
    cursor: not-allowed;
}

input:disabled + .azure-gdpr-slider:before {
    background-color: #f6f7f7;
}

.azure-gdpr-modal-footer {
    padding: 24px;
    border-top: 1px solid #dcdcde;
    text-align: right;
}

.azure-gdpr-btn-save {
    background: #0073aa;
    color: #ffffff;
    border: 2px solid #0073aa;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.azure-gdpr-btn-save:hover,
.azure-gdpr-btn-save:focus {
    background: #005a87;
    border-color: #005a87;
}

/* Footer link styles */
.azure-gdpr-footer-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.azure-gdpr-footer-link:hover,
.azure-gdpr-footer-link:focus {
    text-decoration: underline;
    color: #005a87;
}

/* Menu item styles for footer integration */
.azure-gdpr-menu-item {
    cursor: pointer;
}

.azure-gdpr-menu-item .nav-link {
    cursor: pointer;
}

.azure-gdpr-menu-item .nav-link:hover,
.azure-gdpr-menu-item .nav-link:focus {
    opacity: 0.8;
}

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

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .azure-gdpr-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .azure-gdpr-banner-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .azure-gdpr-btn {
        flex: 1;
        min-width: auto;
    }
    
    .azure-gdpr-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .azure-gdpr-category {
        flex-direction: column;
        align-items: stretch;
    }
    
    .azure-gdpr-switch {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .azure-gdpr-banner {
        padding: 16px;
    }
    
    .azure-gdpr-banner-buttons {
        flex-direction: column;
    }
    
    .azure-gdpr-btn {
        width: 100%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .azure-gdpr-banner {
        border-top-width: 4px;
    }
    
    .azure-gdpr-btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .azure-gdpr-btn,
    .azure-gdpr-slider,
    .azure-gdpr-slider:before {
        transition: none;
    }
    
    .azure-gdpr-modal {
        animation: none;
    }
    
    .azure-gdpr-modal-content {
        animation: none;
    }
}