/* =========================================================================
   Lost Mountain — Adventure Profile (public profile redesign)
   Scoped under .lm-profile so it can't leak to other pages.
   ========================================================================= */

.lm-profile {
    --lm-bg: #0f172a;
    --lm-panel: #ffffff;
    --lm-panel-soft: #f6f7fb;
    --lm-ink: #0f172a;
    --lm-ink-soft: #475569;
    --lm-muted: #94a3b8;
    --lm-line: #e5e7eb;
    --lm-accent: #f8612a;
    --lm-accent-2: #ff8a3d;
    color: var(--lm-ink);
    background: var(--lm-panel-soft);
    padding-bottom: 60px;
}

/* ---------- Hero ---------- */
.lm-profile-hero {
    position: relative;
    min-height: 360px;
    padding: 90px 0 110px;
    color: #fff;
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 60%, #1e3a8a 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.lm-profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.82) 100%);
    pointer-events: none;
}
.lm-profile-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.lm-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(248, 97, 42, .15);
    color: #ffd6c2;
    border: 1px solid rgba(248, 97, 42, .35);
    margin-bottom: 18px;
}
.lm-status-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #f8612a;
    box-shadow: 0 0 0 0 rgba(248, 97, 42, .7);
    animation: lm-pulse 1.8s infinite;
}
@keyframes lm-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(248, 97, 42, .7); }
    70%  { box-shadow: 0 0 0 10px rgba(248, 97, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(248, 97, 42, 0); }
}

.lm-profile-avatar {
    width: 140px; height: 140px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    background: #1f2937;
}
.lm-profile-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.lm-profile-name {
    font-size: 32px;
    line-height: 1.1;
    margin: 0 0 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.lm-level-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--lvl, #3b82f6);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.lm-level-pill .lvl-icon { font-size: 18px; line-height: 1; }

.lm-level-progress {
    max-width: 360px;
    margin: 14px auto 0;
}
.lm-level-progress-bar {
    height: 6px;
    background: rgba(255,255,255,.18);
    border-radius: 999px;
    overflow: hidden;
}
.lm-level-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width .4s ease;
}
.lm-level-progress-text {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.85);
}

.lm-profile-bio {
    max-width: 640px;
    margin: 20px auto 0;
    color: rgba(255,255,255,.92);
    font-size: 15px;
    line-height: 1.55;
}

.lm-profile-share {
    margin-top: 24px;
    display: inline-flex;
    gap: 10px;
}
.lm-share-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
}
.lm-share-btn:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-1px); }
.lm-share-btn.is-copied { background: #16a34a; border-color: #16a34a; }
.lm-share-btn i { font-size: 16px; }

/* ---------- Stats strip ---------- */
.lm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -60px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}
.lm-stat {
    background: var(--lm-panel);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    border: 1px solid var(--lm-line);
}
.lm-stat-icon { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.lm-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--lm-ink);
    line-height: 1.1;
}
.lm-stat-unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--lm-muted);
}
.lm-stat-label {
    margin-top: 6px;
    font-size: 13px;
    color: var(--lm-ink-soft);
    text-transform: uppercase;
    letter-spacing: .5px;
}

@media (max-width: 768px) {
    .lm-stats { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
    .lm-profile-name { font-size: 24px; }
    .lm-profile-hero { padding: 60px 0 80px; }
}

/* ---------- Sections ---------- */
.lm-section { margin-bottom: 44px; }
.lm-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--lm-line);
    padding-bottom: 10px;
}
.lm-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--lm-ink);
}
.lm-section-sub {
    font-size: 13px;
    color: var(--lm-muted);
    font-weight: 600;
}

/* ---------- Badge wall ---------- */
.lm-badge-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}
.lm-badge-card {
    background: var(--lm-panel);
    border: 1px solid var(--lm-line);
    border-radius: 12px;
    padding: 14px 10px 12px;
    text-align: center;
    transition: transform .15s ease, box-shadow .2s ease;
}
.lm-badge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}
.lm-badge-img {
    position: relative;
    width: 72px; height: 72px;
    margin: 0 auto 8px;
}
.lm-badge-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #f1f5f9;
}
.lm-badge-mult {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--lm-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.lm-badge-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--lm-ink-soft);
    line-height: 1.25;
}

/* ---------- Tour grid (upcoming + past) ---------- */
.lm-tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.lm-tour-card {
    background: var(--lm-panel);
    border: 1px solid var(--lm-line);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .25s ease;
}
.lm-tour-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, .12);
    text-decoration: none;
    color: inherit;
}
.lm-tour-card-img {
    position: relative;
    height: 160px;
    background-color: #1f2937;
    background-size: cover;
    background-position: center;
}
.lm-tour-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
}
.lm-tour-card-date,
.lm-tour-card-flag {
    position: absolute;
    z-index: 1;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    color: var(--lm-ink);
}
.lm-tour-card-date { top: 12px; left: 12px; }
.lm-tour-card-flag {
    bottom: 12px; right: 12px;
    background: #16a34a;
    color: #fff;
}
.lm-tour-card-body { padding: 14px 16px 16px; }
.lm-tour-card-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--lm-ink);
}
.lm-tour-card-desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--lm-ink-soft);
    line-height: 1.5;
}
.lm-tour-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--lm-muted);
    font-weight: 600;
}
.lm-tour-card-meta span { white-space: nowrap; }

/* ---------- RTL tweaks ---------- */
.lm-profile.is-rtl .lm-tour-card-date { left: auto; right: 12px; }
.lm-profile.is-rtl .lm-tour-card-flag { right: auto; left: 12px; }
.lm-profile.is-rtl .lm-section-head { flex-direction: row-reverse; }
.lm-profile.is-rtl .lm-tour-card-body { text-align: right; }
