/* Demo Banner Component
 * Promotional banner shown to unauthenticated visitors viewing demo instances
 * Uses cyan/info accent for badge (informational), green CTA for action button
 */

.demo-banner {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.demo-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Badge uses cyan/info color - matches icon-badge-cyan pattern */
.demo-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    flex-shrink: 0;
}

.demo-banner-badge svg {
    color: #22d3ee;
}

.demo-banner-message {
    flex: 1;
    min-width: 200px;
}

.demo-banner-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.demo-banner-product-link {
    color: #22d3ee;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.demo-banner-product-link:hover {
    color: #67e8f9;
}

.demo-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* CTA button uses established green gradient - matches button-primary/button-cta */
.demo-banner .button-primary {
    background: var(--gradient-cta);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.demo-banner .button-primary:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, rgba(22, 163, 74, 1) 100%);
    border-color: rgba(34, 197, 94, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.demo-banner .button-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.demo-banner .button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .demo-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .demo-banner-actions {
        width: 100%;
    }

    .demo-banner-actions .button {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

/* Subtle glow animation using cyan accent */
@keyframes demo-banner-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.15);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(6, 182, 212, 0);
    }
}

.demo-banner {
    animation: demo-banner-glow 3s ease-in-out infinite;
}

/* Reduce animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .demo-banner {
        animation: none;
    }
}
