/* First smart collection navigation promo */

.dashboard-smart-collection-promo {
    position: fixed;
    z-index: 1900;
    width: min(22rem, calc(100vw - 1.5rem));
    pointer-events: auto;
}

.dashboard-smart-collection-promo-balloon {
    position: relative;
    padding: 0.65rem 0.75rem 0.7rem;
    border: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-primary));
    border-radius: 10px;
    background: var(--background-primary);
    box-shadow:
        0 10px 28px color-mix(in srgb, var(--background-modal, #000) 28%, transparent),
        0 0 0 1px color-mix(in srgb, var(--accent-primary) 12%, transparent);
    animation:
        dashboard-smart-collection-promo-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both,
        dashboard-smart-collection-promo-float 4.5s ease-in-out 0.45s infinite;
}

.dashboard-smart-collection-promo-tail {
    position: absolute;
    top: -7px;
    left: 50%;
    margin-left: -7px;
    width: 14px;
    height: 14px;
    background: var(--background-primary);
    border-top: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-primary));
    border-left: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-primary));
    transform: rotate(45deg);
    box-shadow: -2px -2px 6px color-mix(in srgb, var(--background-modal, #000) 8%, transparent);
}

.dashboard-smart-collection-promo--above .dashboard-smart-collection-promo-tail {
    top: auto;
    bottom: -7px;
    border-top: none;
    border-left: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-primary));
    border-right: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-primary));
    box-shadow: 2px 2px 6px color-mix(in srgb, var(--background-modal, #000) 8%, transparent);
}

.dashboard-smart-collection-promo--beside-right .dashboard-smart-collection-promo-tail,
.dashboard-smart-collection-promo--beside-left .dashboard-smart-collection-promo-tail {
    top: 50%;
    margin-top: -7px;
    margin-left: 0;
}

.dashboard-smart-collection-promo--beside-right .dashboard-smart-collection-promo-tail {
    left: -7px;
    right: auto;
    border-right: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-primary));
    border-left: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-primary));
    border-top: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-primary));
    box-shadow: -2px 2px 6px color-mix(in srgb, var(--background-modal, #000) 8%, transparent);
}

.dashboard-smart-collection-promo--beside-left .dashboard-smart-collection-promo-tail {
    left: auto;
    right: -7px;
    border-left: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-primary));
    border-right: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-primary));
    border-top: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-primary));
    box-shadow: 2px 2px 6px color-mix(in srgb, var(--background-modal, #000) 8%, transparent);
}

.dashboard-smart-collection-promo-title {
    margin: 0 0 0.3rem;
    font-size: var(--font-size-controls);
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-family-main);
}

.dashboard-smart-collection-promo-text {
    margin: 0;
    font-size: calc(var(--font-size-controls) * 0.84);
    line-height: 1.45;
    color: var(--text-secondary);
    font-family: var(--font-family-main);
}

.dashboard-smart-collection-promo-text kbd {
    display: inline-block;
    padding: 0.05rem 0.28rem;
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.92em;
    background: color-mix(in srgb, var(--background-secondary) 70%, transparent);
    color: var(--text-primary);
}

.dashboard-smart-collection-promo-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.55rem;
}

.dashboard-smart-collection-promo-close {
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    font-family: var(--font-family-main);
    font-size: calc(var(--font-size-controls) * 0.82);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 55%, var(--border-primary));
    background: color-mix(in srgb, var(--accent-primary) 14%, transparent);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}

.dashboard-smart-collection-promo-close:hover,
.dashboard-smart-collection-promo-close:focus-visible {
    background: color-mix(in srgb, var(--accent-primary) 22%, transparent);
    outline: none;
}

@keyframes dashboard-smart-collection-promo-in {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dashboard-smart-collection-promo-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

body[data-layout-version="modern"] .dashboard-smart-collection-promo-balloon,
body[data-layout-version="glass"] .dashboard-smart-collection-promo-balloon {
    border-radius: var(--layout-radius-md, 10px);
    box-shadow: var(--layout-shadow-lg, 0 10px 28px color-mix(in srgb, var(--background-modal, #000) 28%, transparent));
}

body[data-layout-version="glass"] .dashboard-smart-collection-promo-balloon {
    background: var(--layout-surface-elevated, var(--background-primary));
    border-color: var(--layout-surface-border, var(--border-primary));
    backdrop-filter: blur(var(--glass-blur-md, 12px)) saturate(var(--glass-saturate, 1.2));
    -webkit-backdrop-filter: blur(var(--glass-blur-md, 12px)) saturate(var(--glass-saturate, 1.2));
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-smart-collection-promo-balloon {
        animation: none !important;
    }
}

body.no-animations .dashboard-smart-collection-promo-balloon {
    animation: none !important;
}
