/* ============================================================
   Løbeklubben Auth — Runner Profile (view)
   Prefix: rrp- (matches existing runroute output)
   ============================================================ */

.rrp,
.rrp *,
.rrp *::before,
.rrp *::after {
    box-sizing: border-box;
}

.rrp a {
    text-decoration: none;
    color: inherit;
}

.rrp a:hover {
    text-decoration: none;
}

.rrp {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #1d1d1f;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ---- Hero ---- */

.rrp-hero {
    text-align: center;
    padding: 40px 20px 28px;
}

.rrp-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    margin: 0 auto 16px;
    display: block;
}

.rrp-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: #1d1d1f;
}

.rrp-bio {
    font-size: 0.92rem;
    color: #6e6e73;
    margin: 0 auto 16px;
    max-width: 540px;
    line-height: 1.6;
    text-align: left;
}

.rrp-bio p        { margin: 0 0 0.6em; }
.rrp-bio p:last-child { margin-bottom: 0; }
.rrp-bio ul,
.rrp-bio ol       { margin: 0.4em 0 0.6em 1.4em; padding: 0; }
.rrp-bio li       { margin-bottom: 0.25em; }
.rrp-bio a        { color: #4a7c59; text-decoration: underline; }
.rrp-bio a:hover  { text-decoration: none; }

/* ---- Edit profile button ---- */

.rrp-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 18px;
    border: 1px solid #d1d1d6;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d1d1f;
    background: #fff;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    text-decoration: none;
}

.rrp-edit-btn:hover {
    background: #f2f2f7;
    border-color: #c7c7cc;
    color: #1d1d1f;
    text-decoration: none;
}

.rrp-edit-btn i {
    font-size: 0.78rem;
}

/* ---- Social links ---- */

.rrp-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}

.rrp-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2f2f7;
    color: #6e6e73;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.rrp-social-link:hover                       { transform: scale(1.08); }
.rrp-social-link:has(.fa-strava):hover       { background: #fc4c02; color: #fff; }
.rrp-social-link:has(.fa-facebook):hover     { background: #1877f2; color: #fff; }
.rrp-social-link:has(.fa-instagram):hover    { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.rrp-social-link:has(.fa-stopwatch):hover    { background: #000;    color: #fff; }

/* ---- Stats ---- */

.rrp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 0 32px;
    padding: 20px;
    background: #f9f9fb;
    border-radius: 14px;
    border: 1px solid rgba(60, 60, 67, 0.06);
}

.rrp-stat        { text-align: center; }
.rrp-stat-value  { font-size: 1.35rem; font-weight: 800; color: #1d1d1f; line-height: 1.2; }
.rrp-stat-label  { font-size: 0.72rem; font-weight: 600; color: #aeaeb2; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 4px; }

/* ---- Section title ---- */

.rrp-section-title   { font-size: 1.1rem; font-weight: 700; margin: 0 0 16px; color: #1d1d1f; }
.rrp-section-title i { color: #e63946; margin-right: 6px; }

/* ---- Route cards ---- */

.rrp-cards-section { margin-bottom: 24px; }
.rrp-cards         { display: flex; flex-direction: column; gap: 12px; }

.rrp-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(60, 60, 67, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rrp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
}

.rrp-map-thumb {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    min-height: 110px;
    background: #f2f2f7;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.rrp-map-thumb .leaflet-container          { width: 100% !important; height: 100% !important; }
.rrp-map-thumb .leaflet-control-attribution { display: none !important; }

.rrp-info {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rrp-route-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.rrp-route-meta    { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: #6e6e73; margin-bottom: 6px; }
.rrp-route-meta i  { margin-right: 3px; font-size: 0.72rem; }
.rrp-route-date    { font-size: 0.72rem; color: #aeaeb2; }
.rrp-route-date i  { margin-right: 3px; font-size: 0.68rem; }

/* ---- Load more ---- */

.rrp-load-more-wrap { text-align: center; padding: 20px 0 8px; }

.rrp-load-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border: 1px solid rgba(60, 60, 67, 0.18);
    border-radius: 12px;
    background: #fff;
    color: #007aff;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.rrp-load-more:hover    { background: #f2f2f7; }
.rrp-load-more:active   { transform: scale(0.97); }
.rrp-load-more:disabled { color: #aeaeb2; cursor: not-allowed; }

/* ---- Empty state ---- */

.rrp-empty {
    text-align: center;
    padding: 48px 20px;
    color: #6e6e73;
    font-size: 0.92rem;
    background: #f9f9fb;
    border-radius: 14px;
    border: 1px solid rgba(60, 60, 67, 0.06);
}

.rrp-empty p { margin: 0; }

/* ---- CTA bar ---- */

.rrp-cta-bar { text-align: center; padding: 32px 0 8px; }

.rrp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #e63946;
    color: #fff;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
}

.rrp-cta-btn:hover  { background: #d62839; color: #fff; text-decoration: none; }
.rrp-cta-btn:active { transform: scale(0.97); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
    .rrp             { padding: 0 12px 32px; }
    .rrp-hero        { padding: 28px 12px 20px; }
    .rrp-avatar      { width: 80px; height: 80px; border-width: 3px; }
    .rrp-name        { font-size: 1.25rem; }
    .rrp-bio         { font-size: 0.85rem; }
    .rrp-social-link { width: 36px; height: 36px; font-size: 0.95rem; }
    .rrp-stats       { padding: 16px 12px; gap: 10px; }
    .rrp-stat-value  { font-size: 1.1rem; }
    .rrp-stat-label  { font-size: 0.65rem; }
    .rrp-card        { border-radius: 10px; }
    .rrp-map-thumb   { width: 100px; min-width: 100px; min-height: 80px; }
    .rrp-info        { padding: 10px 12px; }
    .rrp-route-name  { font-size: 0.85rem; }
    .rrp-route-meta  { gap: 8px; font-size: 0.72rem; }
}
