/**
 * GDPR Cookie Consent Banner Styles
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1 1 400px;
}

.cookie-consent-text p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #1e40af;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

.cookie-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.cookie-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.cookie-link {
    color: #1e40af;
    text-decoration: underline;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #1e3a8a;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 16px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-text {
        flex: 1 1 100%;
        margin-bottom: 12px;
    }
    
    .cookie-consent-text p {
        font-size: 13px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-link {
        text-align: center;
        padding: 8px 0;
    }
}

/* RTL support for Arabic */
[dir="rtl"] .cookie-consent-content {
    direction: rtl;
}

[dir="rtl"] .cookie-consent-actions {
    flex-direction: row-reverse;
}

/* Accessibility */
.cookie-btn:focus,
.cookie-link:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

.cookie-btn:active {
    transform: translateY(0);
}