/**
 * Racerli Cookie Consent Banner Styles
 * Matches Racerli brand colors and design system
 */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #2563eb;
}

.cookie-banner-show {
    transform: translateY(0);
}

/* Cookie Banner Content */
.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Cookie Banner Icon */
.cookie-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

/* Cookie Banner Text */
.cookie-banner-text {
    flex: 1;
    min-width: 0;
}

.cookie-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Cookie Banner Actions */
.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #2563eb, #10b981);
    color: #ffffff;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cookie-btn-accept:active {
    transform: translateY(0);
}

.cookie-btn-decline {
    background: #f3f4f6;
    color: #1f2937;
    border: 2px solid #e5e7eb;
}

.cookie-btn-decline:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.cookie-btn-decline:active {
    background: #d1d5db;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .cookie-banner-icon {
        align-self: center;
    }
    
    .cookie-banner-text {
        text-align: center;
    }
    
    .cookie-banner-text h3 {
        font-size: 1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.875rem;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.875rem 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 1rem;
    }
    
    .cookie-banner-icon {
        width: 40px;
        height: 40px;
    }
    
    .cookie-banner-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .cookie-banner-text h3 {
        font-size: 0.9375rem;
        margin-bottom: 0.375rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.8125rem;
    }
    
    .cookie-btn {
        font-size: 0.9375rem;
    }
}

/* Accessibility */
.cookie-btn:focus {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.cookie-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Animation for smooth appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Print - hide banner when printing */
@media print {
    .cookie-banner {
        display: none !important;
    }
}
