/* Feature Spotlight Card */

.feature-spotlight {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 320px;
    background: var(--background-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    z-index: 2147482900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
    overflow: hidden;
}

.feature-spotlight.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Accent stripe top */
.feature-spotlight-stripe {
    height: 3px;
    background: var(--accent-primary);
}

.feature-spotlight-body {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 0.875rem 1rem 0.75rem;
}

/* Icon illustration container */
.feature-spotlight-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 0.375rem;
    background: color-mix(in srgb, var(--accent-primary) 13%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.feature-spotlight-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-spotlight-content {
    flex: 1;
    min-width: 0;
}

.feature-spotlight-title {
    font-size: var(--font-size-controls, 0.8rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.feature-spotlight-text {
    font-size: var(--font-size-small, 0.72rem);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.55;
}

/* Keyboard shortcut / command pill inside text */
.feature-spotlight-text .fs-key,
.feature-spotlight-text code {
    display: inline-block;
    padding: 0.05em 0.35em;
    background: var(--background-primary);
    border: 1px solid var(--border-primary);
    border-radius: 0.2rem;
    color: var(--text-primary);
    font-size: 0.9em;
    line-height: 1.4;
    white-space: nowrap;
}

/* Action row */
.feature-spotlight-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 1rem 0.875rem;
}

.feature-spotlight-primary-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}

.feature-spotlight.has-secondary-try {
    width: 340px;
}

.feature-spotlight-try {
    flex-shrink: 0;
    padding: 0.28rem 0.85rem;
    font-size: var(--font-size-small, 0.72rem);
    font-family: inherit;
    font-weight: 500;
    color: white;
    background: var(--accent-primary);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.feature-spotlight-try:hover {
    opacity: 0.85;
}

.feature-spotlight-try-secondary {
    flex-shrink: 0;
    padding: 0.28rem 0.75rem;
    font-size: var(--font-size-small, 0.72rem);
    font-family: inherit;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--background-primary);
    border: 1px solid var(--border-primary);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.feature-spotlight-try-secondary:hover {
    background: var(--background-secondary);
    border-color: var(--text-tertiary);
}

.feature-spotlight-close {
    flex-shrink: 0;
    padding: 0.28rem 0.25rem;
    font-size: var(--font-size-small, 0.72rem);
    font-family: inherit;
    font-weight: 400;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.feature-spotlight-close:hover {
    color: var(--text-secondary);
}

@media (max-width: 575px) {
    .feature-spotlight {
        left: max(0.75rem, env(safe-area-inset-left));
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        width: calc(100vw - 1.5rem);
    }
}
