/* =================================
   Cookie Consent Banner
   Minimal, non-intrusive, GDPR compliant
   ================================= */

.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 340px;
    background: rgba(30, 41, 59, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 16px 18px;
    font-family: var(--font-base, 'Heebo', sans-serif);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent.hide {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

/* RTL Support */
[dir="rtl"] .cookie-consent {
    left: auto;
    right: 20px;
}

/* Content */
.cookie-consent__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.cookie-consent__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color, #5D3EBF) 0%, var(--primary-light, #9B5DE5) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cookie-consent__text {
    flex: 1;
}

.cookie-consent__title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cookie-consent__description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent__description a {
    color: var(--accent-color, #00BBF9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-consent__description a:hover {
    color: var(--accent-light, #90E0EF);
    text-decoration: underline;
}

/* Actions */
.cookie-consent__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    flex: 1;
    min-width: 90px;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-consent__btn--accept {
    background: linear-gradient(135deg, var(--primary-color, #5D3EBF) 0%, var(--primary-light, #9B5DE5) 100%);
    color: #fff;
}

.cookie-consent__btn--accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 62, 191, 0.4);
}

.cookie-consent__btn--essential {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-consent__btn--essential:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cookie-consent__btn--decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 8px;
    min-width: auto;
    flex: 0;
}

.cookie-consent__btn--decline:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Close button */
.cookie-consent__close {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

[dir="rtl"] .cookie-consent__close {
    left: auto;
    right: 8px;
}

.cookie-consent__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        padding: 14px 16px;
    }
    
    [dir="rtl"] .cookie-consent {
        left: 12px;
        right: 12px;
    }
    
    .cookie-consent__icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .cookie-consent__title {
        font-size: 13px;
    }
    
    .cookie-consent__description {
        font-size: 11px;
    }
    
    .cookie-consent__btn {
        padding: 9px 12px;
        font-size: 11px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .cookie-consent__actions {
        flex-direction: column;
    }
    
    .cookie-consent__btn {
        width: 100%;
        flex: none;
    }
    
    .cookie-consent__btn--decline {
        order: 3;
    }
}
