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

/* Yarı saydam overlay */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;
    pointer-events: none;
}

/* Hedef elementi öne çıkar */
.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;
}

/* Tooltip balonu */
.tour-tooltip {
    position: fixed;
    z-index: 9002;
    /* Mobilde kenarlara 12px boşluk bırak, max 320px */
    width: clamp(260px, 320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    background: #1e1e2e;
    border: 1px solid rgba(255, 107, 53, 0.35);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: tour-fade-in 0.25s ease;
    word-break: break-word;
    box-sizing: border-box;
}

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

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

/* Ok */
.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 #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 #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 #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 #1e1e2e;
}

/* İlerleme */
.tour-progress {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 107, 53, 0.8);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
}

.tour-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 14px;
    line-height: 1.5;
}

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

.tour-ex-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    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;
}

.tour-ex-btn:active {
    opacity: 0.8;
}

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

/* Aksiyonlar */
.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: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}

.tour-btn-skip:hover {
    color: rgba(255, 255, 255, 0.6);
}

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

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