/**
 * Cookie Consent Banner
 * Elegant, compact, orange-themed cookie consent popup
 */

.cookie-consent {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 380px;
    background: linear-gradient(135deg, #ffffff 0%, #fff9f5 100%);
    border: 2px solid #FF6B3D;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 40px rgba(255, 107, 61, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

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

.cookie-consent.hide {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.cookie-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #FF6B3D 0%, #FF8C42 100%);
    border-radius: 50%;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(255, 107, 61, 0.3);
}

.cookie-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.cookie-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.cookie-text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.cookie-text a {
    color: #FF6B3D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.cookie-text a:hover {
    color: #FF8C42;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.cookie-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #FF6B3D 0%, #FF8C42 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 61, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 61, 0.4);
}

.cookie-btn-accept:active {
    transform: translateY(0);
}

.cookie-btn-decline {
    background: transparent;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
}

.cookie-btn-decline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

/* Close button (optional) */
.cookie-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.3s;
}

.cookie-close:hover {
    color: #FF6B3D;
}

.cookie-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .cookie-consent {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        padding: 1rem 1.25rem;
    }

    .cookie-title {
        font-size: 0.9375rem;
    }

    .cookie-text {
        font-size: 0.8125rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* Animation for cookie icon */
@keyframes cookieBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.cookie-consent.show .cookie-icon {
    animation: cookieBounce 0.6s ease-in-out;
}

/* Backdrop blur effect (optional) */
.cookie-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.cookie-backdrop.show {
    opacity: 1;
    pointer-events: all;
}
