/* ============================================================
   GPX Buddy — Support Page Styles
   Depends on: styles.css (shared base)
   ============================================================ */

/* ── Layout ── */
.support-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ── Sidebar ── */
.sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: 30px;
}

.sidebar-title {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #86868b;
    margin-bottom: 12px;
}

.sidebar nav a {
    display: block;
    padding: 7px 12px;
    border-radius: 8px;
    color: #424245;
    font-size: 0.88em;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}

.sidebar nav a:hover {
    background: #f0f6ff;
    color: #007aff;
    text-decoration: none;
}

.sidebar nav a.active {
    background: #e8f2ff;
    color: #007aff;
    font-weight: 600;
}

.sidebar nav a .nav-icon {
    margin-right: 6px;
}

/* ── Main content ── */
.support-main {
    flex: 1;
    min-width: 0;
}

/* ── Topic cards ── */
.topic-card {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 28px;
    scroll-margin-top: 30px;
}

.topic-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.topic-icon {
    font-size: 1.6em;
    line-height: 1;
}

.topic-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

/* ── Numbered steps ── */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #333;
}

.step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #007aff;
    color: white;
    border-radius: 50%;
    font-size: 0.75em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.step-text {
    flex: 1;
    color: #424245;
    line-height: 1.5;
}

/* ── Sub-lists inside steps ── */
.steps .step-text ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

.steps .step-text ul li {
    display: list-item;
    margin-bottom: 4px;
}

/* ── Pro badge ── */
.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 5px;
    font-size: 0.72em;
    font-weight: 700;
    padding: 1px 7px;
    vertical-align: middle;
    white-space: nowrap;
    margin-left: 4px;
}

/* ── Pro callout ── */
.pro-callout {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 0.88em;
    color: #78350f;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pro-callout-icon {
    font-size: 1.1em;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Tip callout ── */
.tip-callout {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 0.88em;
    color: #1e40af;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tip-callout-icon {
    font-size: 1.1em;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Back to top ── */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.35);
    opacity: 0;
    transition: opacity 0.25s;
    text-decoration: none;
}

#back-to-top.visible {
    opacity: 1;
}

/* ── Header subtitle ── */
.header-subtitle {
    color: #86868b;
    font-size: 1em;
    margin-top: 6px;
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .support-layout {
        flex-direction: column;
        gap: 0;
    }

    .sidebar {
        position: static;
        flex: none;
        width: 100%;
        background: #f5f5f7;
        border-radius: 12px;
        padding: 16px 20px;
        margin-bottom: 24px;
    }

    .sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .sidebar nav a {
        padding: 5px 10px;
        background: white;
        border-radius: 20px;
        font-size: 0.82em;
        margin: 0;
    }

    #back-to-top {
        right: 16px;
        bottom: 20px;
    }
}
