/* Cookie Consent Banner - Star Digital */
:root {
    --cookie-bg: rgba(15, 17, 26, 0.95);
    --cookie-border: rgba(255, 255, 255, 0.1);
    --cookie-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --cookie-bg: rgba(255, 255, 255, 0.95);
    --cookie-border: rgba(0, 0, 0, 0.1);
    --cookie-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
}

#cookie-consent-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10001;
    max-width: 400px;
    background: var(--cookie-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--cookie-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--cookie-shadow);
    display: none;
    /* Hidden by default */
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    color: var(--text-primary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-icon {
    width: 40px;
    height: 40px;
    background: var(--ingredient-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.cookie-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.cookie-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    text-align: center;
    text-decoration: none;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.cookie-btn-accept:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.cookie-btn-settings {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--cookie-border);
}

[data-theme="light"] .cookie-btn-settings {
    background: rgba(0, 0, 0, 0.05);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .cookie-btn-settings:hover {
    background: rgba(0, 0, 0, 0.1);
}

.cookie-footer-links {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--cookie-border);
    display: flex;
    justify-content: center;
}

.cookie-footer-links a {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0.8;
}

.cookie-footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    #cookie-consent-banner {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
    }

    .cookie-actions {
        flex-direction: column;
    }
}

/* RTL Support */
[dir="rtl"] #cookie-consent-banner {
    left: auto;
    right: 30px;
}

@media (max-width: 576px) {
    [dir="rtl"] #cookie-consent-banner {
        left: 15px;
        right: 15px;
    }
}