/* Ride page specific styles (base styles are in main.css) */
.summary-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (min-width: 768px) {
    .summary-card {
        padding: 24px;
        margin-bottom: 24px;
    }
}
.summary-card .route-name {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}
@media (min-width: 768px) {
    .summary-card .route-name {
        font-size: 1.5em;
        margin-bottom: 16px;
    }
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 600px) {
    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.summary-item {
    text-align: center;
    padding: 8px;
    background: var(--bg-light);
    border-radius: 8px;
}
.summary-value {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-dark);
}
@media (min-width: 768px) {
    .summary-value {
        font-size: 1.6em;
    }
}
.summary-label {
    font-size: 0.75em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.elevation-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (min-width: 768px) {
    .elevation-section {
        padding: 24px;
        margin-bottom: 24px;
    }
}
.section-title {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.profile-toggles {
    display: flex;
    gap: 12px;
    font-size: 0.85em;
}
.profile-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.profile-toggle input { cursor: pointer; }
.profile-toggle label { cursor: pointer; color: var(--text-muted); }
.main-profile-container {
    position: relative;
    width: 100%;
    min-height: 120px;
    background: #fafafa;
    border-radius: 8px;
    overflow: visible;
}
.main-profile-container img {
    width: 100%;
    height: auto;
    display: block;
    /* Prevent Safari long-press context menu */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.main-profile-container img.loading {
    display: none;
}
.elevation-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    display: block;
    border-radius: 8px;
    /* Prevent Safari long-press context menu */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
@media (orientation: landscape) {
    .elevation-canvas {
        aspect-ratio: 5 / 2;
    }
}
/* Ride page overrides for elevation-loading (positioned absolutely over canvas) */
.elevation-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    min-height: auto;
}

.climb-profile-container {
    position: relative;
    width: 100%;
    min-height: 120px;
    background: #fafafa;
    border-radius: 8px;
    overflow: visible;
}
.climb-profile-container img {
    width: 100%;
    height: auto;
    display: block;
    /* Prevent Safari long-press context menu */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.climb-profile-container img.loading {
    display: none;
}
.sensitivity-control { margin-top: 16px; }
.sensitivity-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.sensitivity-slider {
    width: 100%;
    height: 32px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 16px;
    outline: none;
    cursor: pointer;
}
.sensitivity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px; height: 28px;
    background: var(--climb-green);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.sensitivity-slider::-moz-range-thumb {
    width: 28px; height: 28px;
    background: var(--climb-green);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.climb-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (min-width: 768px) {
    .climb-section {
        padding: 24px;
        margin-bottom: 24px;
    }
}
.climb-count { font-size: 0.85em; color: var(--text-muted); margin-left: 8px; }
.climb-list { margin-top: 12px; }
.climb-row {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--climb-green);
}
.climb-number {
    width: 32px; height: 32px;
    background: var(--climb-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    flex-shrink: 0;
    margin-right: 12px;
}
.climb-details { flex: 1; }
.climb-name { font-weight: 600; margin-bottom: 6px; }
.climb-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 12px;
    font-size: 0.85em;
}
@media (min-width: 600px) {
    .climb-metrics {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px 16px;
    }
}
.climb-metric { display: flex; gap: 8px; }
.metric-label { color: var(--text-muted); }
.metric-label::after { content: ':'; }
.metric-value { font-weight: 500; }
.no-climbs {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-style: italic;
}
.loading { opacity: 0.6; pointer-events: none; }
/* Desktop layout: side-by-side sections */
@media (min-width: 900px) {
    .desktop-grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 24px;
        align-items: start;
    }
    .desktop-sidebar {
        position: sticky;
        top: 24px;
    }
}
/* Header/footer/logo styles are in main.css */
