/* Cookie Consent Banner - Minimal & Professional
   ============================================= */

.cookie-consent {
    position: fixed;
    bottom: 100px;
    left: 20px;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 20px;
    z-index: 99999;
    font-family: 'Assistant', 'Heebo', sans-serif;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

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

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

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

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-consent-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.cookie-consent-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.cookie-consent-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-consent-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.cookie-btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cookie-btn-essential {
    background: #f0f0f5;
    color: #222;
}

.cookie-btn-essential:hover {
    background: #e5e5eb;
}

.cookie-btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

[dir="rtl"] .cookie-btn-close {
    right: auto;
    left: 10px;
}

.cookie-btn-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.cookie-btn-close svg {
    width: 14px;
    height: 14px;
    stroke: #666;
}

/* Mobile Styles */
@media (max-width: 480px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 90px;
        max-width: none;
        padding: 16px;
        border-radius: 14px;
    }

    [dir="rtl"] .cookie-consent {
        left: 10px;
        right: 10px;
    }

    .cookie-consent-header {
        gap: 8px;
    }

    .cookie-consent-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .cookie-consent-icon svg {
        width: 15px;
        height: 15px;
    }

    .cookie-consent-title {
        font-size: 14px;
    }

    .cookie-consent-text {
        font-size: 12px;
    }

    .cookie-btn {
        padding: 9px 12px;
        font-size: 12px;
        min-width: 80px;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .cookie-consent {
        background: rgba(30, 30, 40, 0.98);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .cookie-consent-title {
        color: #f0f0f5;
    }

    .cookie-consent-text {
        color: #aaa;
    }

    .cookie-btn-essential {
        background: rgba(255, 255, 255, 0.1);
        color: #ddd;
    }

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

    .cookie-btn-close svg {
        stroke: #999;
    }
}
