/**
 * NoTrack Cookie Consent Banner Styles
 *
 * Includes accessibility enhancements for WCAG compliance:
 * - High contrast text and focus indicators
 * - Keyboard navigable interface
 * - Responsive design for all devices
 * - Proper text sizing and spacing
 */

/* Banner Container */
.notrack-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    color: #333333;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #2271b1;
    max-height: 80vh;
    overflow-y: auto;
}

/* High contrast mode */
@media (prefers-contrast: more) {
    .notrack-cookie-banner {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
}

/* Show banner animation */
.notrack-cookie-banner.notrack-show {
    transform: translateY(0);
}

/* Banner Content */
.notrack-cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.notrack-cookie-banner-content,
.notrack-cookie-settings-panel {
    display: none;
}

.notrack-cookie-banner-content.notrack-show,
.notrack-cookie-settings-panel.notrack-show {
    display: block;
}

.notrack-cookie-banner-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333333;
}

.notrack-cookie-banner-description {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.6;
}

/* Buttons */
.notrack-cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.notrack-cookie-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 4px;
    border: 2px solid transparent;
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    min-width: 120px;
    transition: all 0.2s ease;
}

.notrack-cookie-button-primary {
    background-color: #2271b1;
    color: #ffffff;
    border-color: #2271b1;
}

.notrack-cookie-button-primary:hover,
.notrack-cookie-button-primary:focus {
    background-color: #135e96;
    border-color: #135e96;
}

.notrack-cookie-button-secondary {
    background-color: #f1f1f1;
    color: #333333;
    border-color: #dddddd;
}

.notrack-cookie-button-secondary:hover,
.notrack-cookie-button-secondary:focus {
    background-color: #e9e9e9;
    border-color: #cccccc;
}

.notrack-cookie-button-text {
    background-color: transparent;
    color: #2271b1;
    text-decoration: underline;
    padding: 10px;
}

.notrack-cookie-button-text:hover,
.notrack-cookie-button-text:focus {
    color: #135e96;
    text-decoration: underline;
}

/* Enhanced focus styles for accessibility */
.notrack-cookie-button:focus,
.notrack-cookie-category-toggle:focus,
.notrack-cookie-category-header:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.5);
}

/* Settings Panel */
.notrack-cookie-settings-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333333;
}

.notrack-cookie-categories {
    margin: 20px 0;
}

.notrack-cookie-category {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #2271b1;
}

.notrack-cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
}

.notrack-cookie-category-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.notrack-cookie-category-description {
    margin: 10px 0 0;
    font-size: 14px;
    color: #666666;
}

/* Toggle Switch */
.notrack-cookie-category-toggle-wrapper {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.notrack-cookie-category-toggle {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    z-index: 2;
    cursor: pointer;
}

.notrack-cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cccccc;
    transition: 0.4s;
    border-radius: 30px;
    z-index: 1;
}

.notrack-cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.notrack-cookie-category-toggle:checked + .notrack-cookie-toggle-slider {
    background-color: #2271b1;
}

.notrack-cookie-category-toggle:checked + .notrack-cookie-toggle-slider:before {
    transform: translateX(30px);
}

/* Necessary category styles */
.notrack-cookie-category.necessary .notrack-cookie-toggle-slider {
    background-color: #2271b1;
    cursor: not-allowed;
}

/* Screen reader text */
.notrack-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.notrack-aria-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
    .notrack-cookie-banner {
        font-size: 14px;
    }
    
    .notrack-cookie-banner-title {
        font-size: 18px;
    }
    
    .notrack-cookie-banner-buttons {
        flex-direction: column;
    }
    
    .notrack-cookie-button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Motion sensitivity adjustments */
@media (prefers-reduced-motion: reduce) {
    .notrack-cookie-banner {
        transition: none;
    }
    
    .notrack-cookie-toggle-slider:before {
        transition: none;
    }
}

/* High contrast mode adjustments */
@media (prefers-contrast: more) {
    .notrack-cookie-button-primary {
        background-color: #000000;
        color: #ffffff;
        border-color: #000000;
    }
    
    .notrack-cookie-button-secondary {
        background-color: #ffffff;
        color: #000000;
        border-color: #000000;
        border-width: 2px;
    }
    
    .notrack-cookie-button-text {
        color: #000000;
        text-decoration: underline;
    }
    
    .notrack-cookie-category-toggle:checked + .notrack-cookie-toggle-slider {
        background-color: #000000;
    }
    
    .notrack-cookie-category.necessary .notrack-cookie-toggle-slider {
        background-color: #000000;
    }
}

/* Print styles */
@media print {
    .notrack-cookie-banner {
        display: none !important;
    }
} 