/**
 * GDPR Cookie Consent Banner Styles
 * Professional, accessible design for Avaris Consulting
 */

/* Cookie Banner Container */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-top: 3px solid #007bff;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
    opacity: 1;
}

/* Banner Content Layout */
.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

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

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
}

.cookie-banner-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-banner-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Banner Buttons */
.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Button Styles */
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.cookie-btn-primary {
    background: #007bff;
    color: #ffffff;
    border: 2px solid #007bff;
}

.cookie-btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cookie-btn-secondary:hover {
    background: #ffffff;
    color: #1a1a1a;
    transform: translateY(-1px);
}

.cookie-btn-link {
    background: transparent;
    color: #007bff;
    border: none;
    text-decoration: underline;
    min-width: auto;
    padding: 10px 12px;
}

.cookie-btn-link:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 16px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-banner-text {
        min-width: auto;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 12px;
    }
    
    .cookie-banner-text h3 {
        font-size: 16px;
    }
    
    .cookie-banner-text p {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 80px;
    }
    
    .cookie-banner-buttons {
        gap: 8px;
    }
}

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

.cookie-consent-banner {
    animation: slideUp 0.3s ease-out;
}

/* Focus styles for accessibility */
.cookie-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        background: #000000;
        border-top-color: #ffffff;
    }
    
    .cookie-btn-primary {
        background: #ffffff;
        color: #000000;
        border-color: #ffffff;
    }
    
    .cookie-btn-secondary {
        border-color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
        animation: none;
    }
    
    .cookie-btn {
        transition: none;
    }
}

/* Dark mode support (if user prefers dark) */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    }
}

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