/* =========================================
   TOUR TOOLTIP SYSTEM (web_app)
   Faz 3: In-app adım adım rehber
   ========================================= */

.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9000;
    pointer-events: none;
}

.tour-highlight {
    position: relative;
    z-index: 9001;
    border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.5), 0 0 0 8px rgba(255, 107, 53, 0.15);
    transition: box-shadow 0.3s;
}

.tour-tooltip {
    position: fixed;
    z-index: 9002;
    /* Responsive: 340px on desktop, full-minus-padding on mobile */
    width: clamp(280px, 340px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: tour-fade-in 0.25s ease;
    /* Prevent text overflow on any screen size */
    word-break: break-word;
    box-sizing: border-box;
}

.dark .tour-tooltip {
    background: #1e1e2e;
    border-color: rgba(255, 107, 53, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

@keyframes tour-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.tour-tooltip-body {
    padding: 18px;
}

.tour-tooltip-arrow {
    width: 0;
    height: 0;
    position: absolute;
}

.tour-arrow-bottom {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.dark .tour-arrow-bottom {
    border-bottom-color: #1e1e2e;
}

.tour-arrow-top {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.dark .tour-arrow-top {
    border-top-color: #1e1e2e;
}

.tour-arrow-left {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #fff;
}

.dark .tour-arrow-left {
    border-left-color: #1e1e2e;
}

.tour-arrow-right {
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #fff;
}

.dark .tour-arrow-right {
    border-right-color: #1e1e2e;
}

.tour-progress {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary, #FF6B35);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 6px;
    line-height: 1.3;
}

.dark .tour-title {
    color: #fff;
}

.tour-desc {
    font-size: 13px;
    color: var(--text-secondary, #6c757d);
    margin: 0 0 16px;
    line-height: 1.5;
}

.dark .tour-desc {
    color: rgba(255,255,255,0.6);
}

/* Exchange Picker */
.tour-exchange-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 2px;
}

.tour-ex-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    color: var(--text-primary, #1a1a1a);
    font-size: 11px;
    font-weight: 600;
    padding: 8px 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark .tour-ex-btn {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.tour-ex-btn:hover {
    border-color: rgba(255, 107, 53, 0.4);
}

.tour-ex-btn.selected {
    background: rgba(255, 107, 53, 0.1);
    border-color: #FF6B35;
    color: #FF6B35;
}

.dark .tour-ex-btn.selected {
    background: rgba(255, 107, 53, 0.25);
}

.tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tour-btn-group {
    display: flex;
    gap: 8px;
}

.tour-btn-skip {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--text-muted, #adb5bd);
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}

.tour-btn-skip:hover {
    color: var(--text-secondary, #6c757d);
}

.tour-btn-got-it,
.tour-btn-next {
    background: var(--primary, #FF6B35);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.tour-btn-got-it:hover,
.tour-btn-next:hover {
    opacity: 0.88;
}
