/* CatalogAI tour skin — applied via popoverClass: 'catalogai-tour' on every driver instance.
   Goal: a more "premium SaaS" feel than Driver.js's plain default — gradient action button,
   stronger drop shadow, accent stripe under the title, smooth pulse on the highlighted target. */

.driver-popover.catalogai-tour {
    background: linear-gradient(135deg, #ffffff 0%, #fafaff 100%);
    border-radius: 14px;
    box-shadow:
        0 24px 64px -16px rgba(91, 33, 182, 0.35),
        0 8px 24px -8px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(91, 33, 182, 0.12);
    max-width: 440px;
    padding: 18px 20px;
    animation: catalogai-tour-fade-in 0.28s ease-out;
}

@keyframes catalogai-tour-fade-in {
    from { opacity: 0; transform: scale(0.96) translateY(6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.driver-popover.catalogai-tour .driver-popover-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #5b21b6 0%, #a855f7 60%, transparent 100%) 1;
    letter-spacing: -0.01em;
}

.driver-popover.catalogai-tour .driver-popover-description {
    color: #374151;
    line-height: 1.6;
    font-size: 14px;
}

.driver-popover.catalogai-tour .driver-popover-description strong {
    color: #5b21b6;
    font-weight: 600;
}

.driver-popover.catalogai-tour .driver-popover-description code {
    background: rgba(91, 33, 182, 0.08);
    color: #5b21b6;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12.5px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.driver-popover.catalogai-tour .driver-popover-progress-text {
    color: #6b7280;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.driver-popover.catalogai-tour .driver-popover-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    gap: 8px;
}

.driver-popover.catalogai-tour .driver-popover-next-btn {
    background: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 13px;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.driver-popover.catalogai-tour .driver-popover-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(91, 33, 182, 0.45);
}

.driver-popover.catalogai-tour .driver-popover-prev-btn {
    background: #ffffff;
    color: #5b21b6;
    border: 1px solid rgba(91, 33, 182, 0.25);
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 500;
    font-size: 13px;
    box-shadow: none;
    text-shadow: none;
    transition: background 0.15s;
    cursor: pointer;
}

.driver-popover.catalogai-tour .driver-popover-prev-btn:hover {
    background: rgba(91, 33, 182, 0.05);
}

.driver-popover.catalogai-tour .driver-popover-close-btn {
    color: #9ca3af;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}

.driver-popover.catalogai-tour .driver-popover-close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.driver-popover.catalogai-tour .driver-popover-arrow {
    /* Make the arrow match the white popover background (Driver default uses inherited bg). */
    border-color: #ffffff !important;
}

/* Animated halo around the currently-highlighted element to draw the eye on first appearance.
   Driver.js sets .driver-active-element on the target — we layer a soft pulse on top of its
   default outline. */
.driver-active-element {
    animation: catalogai-tour-pulse 2.2s ease-in-out infinite;
}

@keyframes catalogai-tour-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.45); }
    50%      { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
}
