/**
 * Neron Trader — Onboarding Tour CSS
 * Karbon temasına uygun profesyonel tanıtım turu stilleri
 * Sadece desktop (min-width: 769px)
 */

/* ═══════════════════════════════════════════════════════════
   OVERLAY & BACKDROP
═══════════════════════════════════════════════════════════ */

.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: all;
    /* Spotlight efekti JS tarafından box-shadow ile uygulanır */
    transition: opacity 0.3s ease;
}

.onboarding-overlay.onboarding-fade-in {
    animation: onboardingFadeIn 0.3s ease forwards;
}

@keyframes onboardingFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Spotlight hedef highlight — JS tarafından dinamik eklenir */
.onboarding-spotlight {
    position: fixed;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
    pointer-events: none;
    z-index: 100001;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    outline: 2px solid rgba(157, 146, 255, 0.6);
    outline-offset: 3px;
    animation: spotlightPulse 2s ease-in-out infinite;
}

@keyframes spotlightPulse {
    0%, 100% { outline-color: rgba(157, 146, 255, 0.6); outline-offset: 3px; }
    50%       { outline-color: rgba(157, 146, 255, 0.9); outline-offset: 5px; }
}

/* ═══════════════════════════════════════════════════════════
   TOOLTIP CARD
═══════════════════════════════════════════════════════════ */

.onboarding-tooltip {
    position: fixed;
    z-index: 100005;
    max-width: 380px;
    min-width: 280px;
    background: rgba(18, 18, 28, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 0;
    overflow: hidden;
    animation: tooltipSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: all;
}

@keyframes tooltipSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tooltip ok işareti */
.onboarding-tooltip::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(18, 18, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(45deg);
    z-index: -1;
}

.onboarding-tooltip[data-arrow="top"]::before {
    top: -6px;
    left: 24px;
    border-bottom: none;
    border-right: none;
}

.onboarding-tooltip[data-arrow="top-center"]::before {
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-bottom: none;
    border-right: none;
}

.onboarding-tooltip[data-arrow="top-end"]::before {
    top: -6px;
    right: 24px;
    left: auto;
    border-bottom: none;
    border-right: none;
}

.onboarding-tooltip[data-arrow="bottom"]::before {
    bottom: -6px;
    left: 24px;
    border-top: none;
    border-left: none;
}

.onboarding-tooltip[data-arrow="bottom-center"]::before {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-top: none;
    border-left: none;
}

/* Ok sağ tarafta — tooltip solda, ok sağa bakıyor */
.onboarding-tooltip[data-arrow="right"]::before {
    right: -6px;
    top: 50%;
    left: auto;
    transform: translateY(-50%) rotate(45deg);
    border-bottom: none;
    border-left: none;
}

/* Ok sol tarafta — tooltip sağda, ok sola bakıyor */
.onboarding-tooltip[data-arrow="left"]::before {
    left: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    border-top: none;
    border-right: none;
}

/* ═══════════════════════════════════════════════════════════
   TOOLTIP BODY
═══════════════════════════════════════════════════════════ */

.onboarding-tooltip-body {
    padding: 18px 20px 14px;
}

/* Adım numarası badge */
.onboarding-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #9d92ff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
}

.onboarding-step-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9d92ff;
    box-shadow: 0 0 6px rgba(157, 146, 255, 0.6);
}

/* Başlık */
.onboarding-tooltip-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

/* Açıklama */
.onboarding-tooltip-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════════════════════ */

.onboarding-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 14px 20px 0;
    border-radius: 1px;
    overflow: hidden;
}

.onboarding-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9d92ff, #b8b0ff);
    border-radius: 1px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(157, 146, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   BUTONLAR
═══════════════════════════════════════════════════════════ */

.onboarding-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    gap: 8px;
}

.onboarding-footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.onboarding-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* İleri butonu */
.onboarding-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #9d92ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.onboarding-btn-next:hover {
    background: #b0a8ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(157, 146, 255, 0.4);
}

.onboarding-btn-next:active {
    transform: translateY(0);
}

/* Tamamla butonu (yeşil) */
.onboarding-btn-complete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #30d158;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.onboarding-btn-complete:hover {
    background: #3de06a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(48, 209, 88, 0.4);
}

/* Geri butonu */
.onboarding-btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.onboarding-btn-prev:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
}

/* Atla butonu */
.onboarding-btn-skip {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

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

/* ═══════════════════════════════════════════════════════════
   HOŞGELDİN EKRANI (Adım 0)
═══════════════════════════════════════════════════════════ */

.onboarding-welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: onboardingFadeIn 0.4s ease forwards;
    pointer-events: all;
}

.onboarding-welcome-card {
    max-width: 480px;
    width: calc(100% - 48px);
    background: rgba(18, 18, 28, 0.97);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 48px 40px 40px;
    text-align: center;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: welcomeCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes welcomeCardIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Logo alanı */
.onboarding-welcome-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 18px;
    background: rgba(157, 146, 255, 0.12);
    border: 1px solid rgba(157, 146, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoGlow 2.5s ease-in-out infinite;
    overflow: hidden;
}

.onboarding-welcome-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(157, 146, 255, 0);
        border-color: rgba(157, 146, 255, 0.25);
    }
    50% {
        box-shadow: 0 0 24px 4px rgba(157, 146, 255, 0.2);
        border-color: rgba(157, 146, 255, 0.5);
    }
}

/* Başlık */
.onboarding-welcome-title {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.97);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Açıklama */
.onboarding-welcome-desc {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

/* Başla butonu */
.onboarding-btn-start {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: #9d92ff;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.1px;
    margin-bottom: 16px;
}

.onboarding-btn-start:hover {
    background: #b0a8ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(157, 146, 255, 0.45);
}

.onboarding-btn-start:active {
    transform: translateY(0);
}

/* Atla linki (hoşgeldin ekranı) */
.onboarding-welcome-skip {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    transition: color 0.2s ease;
    margin: 0 auto;
}

.onboarding-welcome-skip:hover {
    color: rgba(255, 255, 255, 0.55);
}

/* ═══════════════════════════════════════════════════════════
   TAMAMLAMA EKRANI (Son adım)
═══════════════════════════════════════════════════════════ */

.onboarding-completion-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-completion-check {
    width: 48px;
    height: 48px;
}

.onboarding-completion-check circle {
    stroke: #30d158;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    animation: checkCircle 0.5s ease 0.1s forwards;
}

.onboarding-completion-check path {
    stroke: #30d158;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: checkMark 0.3s ease 0.5s forwards;
}

@keyframes checkCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes checkMark {
    to { stroke-dashoffset: 0; }
}

/* ═══════════════════════════════════════════════════════════
   KEYBOARD HINT
═══════════════════════════════════════════════════════════ */

.onboarding-keyboard-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
}

.onboarding-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 10px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.35);
    min-width: 20px;
}

/* ═══════════════════════════════════════════════════════════
   ONBOARDING AKTİFKEN DROPDOWN Z-INDEX
   Dropdown'lar spotlight'ın üstünde görünsün
═══════════════════════════════════════════════════════════ */

body.onboarding-active .indicator-dropdown,
body.onboarding-active .widget-dropdown,
body.onboarding-active .theme-dropdown {
    z-index: 100003 !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — SADECE DESKTOP
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .onboarding-overlay,
    .onboarding-spotlight,
    .onboarding-tooltip,
    .onboarding-welcome-overlay {
        display: none !important;
    }
}
