/**
 * Unified Analytics Frontend Styles
 * 
 * Consent banner and UI elements
 */

/* Consent Banner */
.ua-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.ua-consent-banner.is-visible {
    display: block;
    animation: ua-slide-up 0.3s ease-out;
}

@keyframes ua-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ua-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ua-consent-text {
    flex: 1;
    color: #333;
}

.ua-consent-text a {
    color: #0073aa;
    text-decoration: underline;
}

.ua-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.ua-consent-btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
}

.ua-consent-btn:hover {
    transform: translateY(-1px);
}

.ua-consent-btn:active {
    transform: translateY(0);
}

.ua-consent-btn-accept {
    background: #0073aa;
    color: #fff;
}

.ua-consent-btn-accept:hover {
    background: #005177;
}

.ua-consent-btn-decline {
    background: #f0f0f1;
    color: #333;
}

.ua-consent-btn-decline:hover {
    background: #dcdcde;
}

.ua-consent-btn-settings {
    background: transparent;
    color: #0073aa;
    text-decoration: underline;
    padding: 10px;
}

/* Consent Banner - Modal Variant */
.ua-consent-banner.ua-consent-modal {
    bottom: auto;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    padding: 30px;
}

.ua-consent-banner.ua-consent-modal .ua-consent-inner {
    flex-direction: column;
    text-align: center;
}

.ua-consent-banner.ua-consent-modal .ua-consent-buttons {
    flex-wrap: wrap;
    justify-content: center;
}

/* Consent Banner - Minimal Variant */
.ua-consent-banner.ua-consent-minimal {
    padding: 15px;
}

.ua-consent-banner.ua-consent-minimal .ua-consent-text {
    font-size: 13px;
}

.ua-consent-banner.ua-consent-minimal .ua-consent-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Overlay */
.ua-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: none;
}

.ua-consent-overlay.is-visible {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .ua-consent-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .ua-consent-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ua-consent-btn {
        flex: 1 1 auto;
        min-width: 120px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ua-consent-banner {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .ua-consent-text {
        color: #e0e0e0;
    }
    
    .ua-consent-btn-decline {
        background: #333;
        color: #e0e0e0;
    }
    
    .ua-consent-btn-decline:hover {
        background: #444;
    }
}

/* Print - Hide consent banner */
@media print {
    .ua-consent-banner,
    .ua-consent-overlay {
        display: none !important;
    }
}
