/* =========================================================================
   KoPeOn — Tutorial és Tippek stílusok
   Komponensek: tour spotlight + popover, tipp doboz, súgó buborék + menü
   ========================================================================= */

/* ── TOUR: kattintás-elfogó réteg ──────────────────────────────────────── */
.tutorial-catcher {
    position: fixed;
    inset: 0;
    z-index: 10490;
    background: transparent;
}

/* ── TOUR: kiemelő reflektor (spotlight) ───────────────────────────────── */
.tutorial-spotlight {
    position: fixed;
    z-index: 10500;
    border-radius: var(--radius-md, 12px);
    box-shadow:
        0 0 0 9999px rgba(15, 23, 42, 0.62),
        0 0 0 3px var(--primary-color, #3b82f6);
    pointer-events: none;
    transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* ── TOUR: lépés kártya (popover) ──────────────────────────────────────── */
.tutorial-popover {
    position: fixed;
    z-index: 10520;
    width: min(360px, calc(100vw - 32px));
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-lg, 0 20px 40px rgba(0, 0, 0, 0.2));
    padding: 18px 20px;
    animation: tutorialFadeIn 0.25s ease;
}

.tutorial-popover--center {
    transform: translate(-50%, -50%);
}

@keyframes tutorialFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tutorial-popover--center {
    animation: tutorialFadeInCenter 0.25s ease;
}

@keyframes tutorialFadeInCenter {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.tutorial-popover__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.tutorial-popover__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main, #1e293b);
}

.tutorial-popover__count {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color, #3b82f6);
    background: var(--primary-subtle, rgba(59, 130, 246, 0.1));
    border-radius: 999px;
    padding: 2px 10px;
}

.tutorial-popover__text {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-light, #475569);
}

.tutorial-popover__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tutorial-popover__nav {
    display: flex;
    gap: 8px;
}

/* ── TOUR: gombok ──────────────────────────────────────────────────────── */
.tutorial-btn {
    border: none;
    border-radius: var(--radius-sm, 8px);
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast, all 0.15s ease);
}

.tutorial-btn--primary {
    background: var(--primary-gradient, linear-gradient(135deg, #3b82f6, #2563eb));
    color: #fff;
}

.tutorial-btn--primary:hover {
    filter: brightness(1.1);
}

.tutorial-btn--secondary {
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-main, #1e293b);
    border: 1px solid var(--border-color, #e2e8f0);
}

.tutorial-btn--secondary:hover {
    background: var(--border-color, #e2e8f0);
}

.tutorial-btn--ghost {
    background: transparent;
    color: var(--text-muted, #94a3b8);
    padding-left: 4px;
}

.tutorial-btn--ghost:hover {
    color: var(--text-main, #1e293b);
    text-decoration: underline;
}

/* ── TIPP DOBOZ ────────────────────────────────────────────────────────── */
.tutorial-tipbox {
    position: fixed;
    left: 24px;
    bottom: 96px;
    z-index: 8900;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: min(320px, calc(100vw - 40px));
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-md, 0 8px 20px rgba(0, 0, 0, 0.12));
    padding: 12px 14px;
    animation: tutorialFadeIn 0.3s ease;
}

.tutorial-tipbox__icon {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1.1rem;
    color: var(--accent-color, #f59e0b);
}

.tutorial-tipbox__body {
    flex: 1;
    min-width: 0;
}

.tutorial-tipbox__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color, #3b82f6);
    margin-bottom: 2px;
}

.tutorial-tipbox__text {
    display: block;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-light, #475569);
}

.tutorial-tipbox__btns {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tutorial-tipbox__btn {
    border: none;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast, all 0.15s ease);
}

.tutorial-tipbox__btn:hover {
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-main, #1e293b);
}

/* ── SÚGÓ BUBORÉK ──────────────────────────────────────────────────────── */
.tutorial-help-btn {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9000;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary-gradient, linear-gradient(135deg, #3b82f6, #2563eb));
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: var(--shadow-md, 0 8px 20px rgba(0, 0, 0, 0.15));
    transition: var(--transition, all 0.25s ease);
}

.tutorial-help-btn:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-glow, 0 0 20px rgba(59, 130, 246, 0.45));
}

/* ── SÚGÓ MENÜ ─────────────────────────────────────────────────────────── */
.tutorial-menu {
    position: fixed;
    left: 24px;
    bottom: 80px;
    z-index: 9010;
    display: none;
    flex-direction: column;
    min-width: 230px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-lg, 0 20px 40px rgba(0, 0, 0, 0.18));
    padding: 6px;
}

.tutorial-menu--show {
    display: flex;
    animation: tutorialFadeIn 0.2s ease;
}

.tutorial-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-main, #1e293b);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast, all 0.15s ease);
}

.tutorial-menu__item:hover {
    background: var(--primary-subtle, rgba(59, 130, 246, 0.08));
    color: var(--primary-color, #3b82f6);
}

.tutorial-menu__item i {
    width: 18px;
    text-align: center;
    color: var(--primary-color, #3b82f6);
}

/* ── MOBIL ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .tutorial-tipbox {
        bottom: 88px;
        left: 12px;
        width: calc(100vw - 24px);
    }

    .tutorial-help-btn {
        left: 12px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

    .tutorial-menu {
        left: 12px;
        bottom: 68px;
    }
}

/* ── NYOMTATÁS ─────────────────────────────────────────────────────────── */
@media print {
    .tutorial-catcher,
    .tutorial-spotlight,
    .tutorial-popover,
    .tutorial-tipbox,
    .tutorial-help-btn,
    .tutorial-menu {
        display: none !important;
    }
}
