/**
 * ChurchLinkUp — Guided Tour Styles
 */

/* Overlay */
.clu-tour-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
    transition: opacity 0.3s;
}

/* Tour modal card — always centered */
.clu-tour-card {
    position: fixed;
    z-index: 10002;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 420px;
    width: calc(100vw - 32px);
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: tourFadeIn 0.25s ease-out;
}

@keyframes tourFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Boost dropdown z-index during tour so spotlight can highlight items */
body.clu-tour-active .dropdown-menu.show {
    z-index: 10001 !important;
}

/* Illustration area */
.clu-tour-illustration {
    padding: 28px 24px 16px;
    text-align: center;
}

.clu-tour-illustration .tour-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Content */
.clu-tour-content {
    padding: 0 24px 8px;
    text-align: center;
}

.clu-tour-content h4 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.clu-tour-content p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Progress dots */
.clu-tour-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 14px 0 6px;
}

.clu-tour-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s;
}

.clu-tour-dot.active {
    background: #2563eb;
    width: 24px;
    border-radius: 4px;
}

/* Actions */
.clu-tour-actions {
    display: flex;
    gap: 8px;
    padding: 8px 24px 4px;
    justify-content: center;
}

.clu-tour-actions .btn {
    min-width: 100px;
    border-radius: 10px;
    font-weight: 500;
}

/* Step counter */
.clu-tour-counter {
    text-align: center;
    font-size: 0.7rem;
    color: #9ca3af;
    padding: 2px 0 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Don't show again */
.clu-tour-dontshow {
    padding: 6px 24px 16px;
    text-align: center;
}

.clu-tour-dontshow .form-check-input {
    width: 14px;
    height: 14px;
    margin-top: 0;
}

.clu-tour-dontshow .small {
    font-size: 0.75rem;
}

/* Highlight ring around target element */
.clu-tour-spotlight {
    position: fixed;
    z-index: 10001;
    border-radius: 12px;
    box-shadow: 0 0 0 4px #2563eb, 0 0 0 9999px rgba(0,0,0,0.55);
    pointer-events: none;
    transition: all 0.4s ease;
}

/* Feature grid inside tour */
.clu-tour-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 24px 8px;
    text-align: left;
}

.clu-tour-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.clu-tour-feature .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.clu-tour-feature .feature-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

/* Dark mode */
[data-bs-theme="dark"] .clu-tour-card {
    background: #1e1e2e;
}
[data-bs-theme="dark"] .clu-tour-content p {
    color: #9ca3af;
}
[data-bs-theme="dark"] .clu-tour-feature {
    background: #2a2a3e;
}
[data-bs-theme="dark"] .clu-tour-feature .feature-label {
    color: #d1d5db;
}
[data-bs-theme="dark"] .clu-tour-dot {
    background: #4b5563;
}

/* Responsive */
@media (max-width: 480px) {
    .clu-tour-card { max-width: calc(100vw - 24px); }
    .clu-tour-illustration { padding: 20px 16px 12px; }
    .clu-tour-content { padding: 0 16px 6px; }
    .clu-tour-actions { padding: 10px 16px 16px; }
    .clu-tour-features { padding: 0 16px 6px; gap: 6px; }
    .clu-tour-feature { padding: 6px 8px; }
}
