/**
 * Cookie Consent Banner Styles
 * ADA/WCAG Compliant, No Bootstrap Dependencies
 *
 * @package autoshop-toolkit
 * @copyright Autoshop Solutions, 2025
 */

/* Banner Container - Fixed Bottom */
.astk-cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(112deg, #252525 0%, #000000 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    animation: slideUp 0.4s ease-out;
}

/* Slide-up animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Content Container */
.astk-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Message */
.astk-cookie-message {
    flex: 1;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
}

.astk-cookie-message a {
    color: #4db8ff;
    text-decoration: underline;
}

.astk-cookie-message a:hover,
.astk-cookie-message a:focus {
    color: #80d4ff;
    text-decoration: none;
}

/* Buttons Container */
.astk-cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Base Button Styles */
.astk-cookie-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
    min-width: 100px;
}

/* Focus styles for accessibility */
.astk-cookie-btn:focus {
    outline: 3px solid #4db8ff;
    outline-offset: 2px;
}

/* Accept Button */
.astk-cookie-btn-accept {
    background-color: #0d97dc;
    color: #ffffff;
    border-color: #0d97dc;
}

.astk-cookie-btn-accept:hover {
    background-color: #0b7db8;
    border-color: #0a6fa3;
}

.astk-cookie-btn-accept:active {
    background-color: #0a6fa3;
    transform: scale(0.98);
}

/* Decline Button */
.astk-cookie-btn-decline {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.astk-cookie-btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.astk-cookie-btn-decline:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .astk-cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .astk-cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .astk-cookie-btn {
        width: 100%;
        min-width: auto;
    }

    .astk-cookie-consent-banner {
        padding: 15px;
    }

    .astk-cookie-message {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .astk-cookie-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .astk-cookie-message {
        font-size: 13px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .astk-cookie-consent-banner {
        background-color: #000000;
        border-top: 3px solid #ffffff;
    }

    .astk-cookie-btn {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .astk-cookie-consent-banner {
        animation: none;
    }

    .astk-cookie-btn {
        transition: none;
    }
}

/* Hidden state (when dismissed) */
.astk-cookie-consent-banner.astk-hidden {
    display: none;
}

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