/* Guided Onboarding Tour Styles */

.tour-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    z-index: 998;
    transition: opacity 0.3s ease;
}

.tour-highlight {
    position: relative;
    z-index: 999;
    box-shadow: 0 0 0 3px var(--color-gold, #c9a227), 0 0 12px rgba(201, 162, 39, 0.5);
    border-radius: 4px;
    animation: tour-pulse 1.5s ease-in-out infinite;
}

@keyframes tour-pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--color-gold, #c9a227), 0 0 12px rgba(201, 162, 39, 0.4); }
    50% { box-shadow: 0 0 0 5px var(--color-gold, #c9a227), 0 0 20px rgba(201, 162, 39, 0.6); }
}

.tour-tooltip {
    position: fixed;
    background: var(--color-parchment, #faf6ed);
    border: 2px solid var(--color-gold, #c9a227);
    border-radius: 12px;
    padding: 18px 22px;
    max-width: 340px;
    min-width: 240px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    z-index: 1000;
    font-family: var(--font-serif, 'Crimson Pro', serif);
    color: var(--color-ink, #2c2c2c);
    animation: tour-fadein 0.25s ease;
}

@keyframes tour-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tour-tooltip-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-burgundy, #722f37);
}

.tour-tooltip-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.tour-tooltip-counter {
    font-size: 0.85rem;
    color: var(--color-gold, #c9a227);
    font-weight: 600;
    margin-bottom: 10px;
}

.tour-tooltip-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tour-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-serif, 'Crimson Pro', serif);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.tour-btn-primary {
    background: var(--color-burgundy, #722f37);
    color: white;
}

.tour-btn-primary:hover:not(:disabled) {
    background: #8a3a44;
}

.tour-btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tour-btn-secondary {
    background: transparent;
    color: var(--color-ink, #2c2c2c);
    border: 1px solid var(--color-gold, #c9a227);
}

.tour-btn-secondary:hover {
    background: rgba(201, 162, 39, 0.1);
}

.tour-btn-large {
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

/* Arrow pointer (CSS triangle) */
.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-parchment, #faf6ed);
    border: 2px solid var(--color-gold, #c9a227);
    border-right: none;
    border-bottom: none;
    transform: rotate(45deg);
    top: -8px;
    left: 30px;
}

.tour-tooltip.arrow-bottom::before {
    top: auto;
    bottom: -8px;
    transform: rotate(225deg);
}

.tour-tooltip.arrow-left::before {
    top: 20px;
    left: -8px;
    transform: rotate(-45deg);
}

.tour-tooltip.arrow-right::before {
    top: 20px;
    left: auto;
    right: -8px;
    transform: rotate(135deg);
}

/* Skip tour link */
.tour-skip {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
}

.tour-skip:hover {
    color: #666;
}

/* Dark mode */
[data-theme="dark"] .tour-tooltip {
    background: var(--color-parchment);
    color: var(--color-ink);
}

[data-theme="dark"] .tour-tooltip::before {
    background: var(--color-parchment);
}

[data-theme="dark"] .tour-backdrop {
    background: rgba(0,0,0,0.55);
}
