/* Базовые стили из твоего примера + дополнения */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding: 10px 0;
    color: #666;
    font-size: 0.9rem;
}

/* Grid layouts */
.routes-grid, .trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Cards */
.route-card, .trip-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.route-card:hover, .trip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.route-card h2, .trip-card h3 {
    margin-bottom: 12px;
}

.route-card h2 a, .trip-card h3 a {
    text-decoration: none;
    color: #1a1a2e;
}

.route-card h2 a:hover, .trip-card h3 a:hover {
    color: #e94560;
}

.distance {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.difficulty {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.difficulty.easy, .difficulty-easy { background: #4caf50; color: white; }
.difficulty.medium, .difficulty-medium { background: #ff9800; color: white; }
.difficulty.hard, .difficulty-hard { background: #f44336; color: white; }
.difficulty.expert, .difficulty-expert { background: #9c27b0; color: white; }

.stops-preview {
    font-size: 0.85rem;
    color: #666;
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.route-meta, .trip-meta {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #888;
}

/* Trip cards */
.trip-card.scheduled {
    border-left: 4px solid #ffa500;
}

.trip-card.completed {
    border-left: 4px solid #4caf50;
}

.trip-dates {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

.rating {
    color: #ffa500;
    margin-top: 8px;
    font-size: 0.85rem;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #e94560;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Info cards */
.route-info {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.info-card {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
}

.info-card .label {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

.info-card .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
}

/* Sections */
section {
    margin: 30px 0;
}

section h2 {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
    color: #1a1a2e;
}

/* Stops timeline */
.stops-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.stop-item {
    background: #e94560;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
}

/* Participants */
.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.participant-item {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-item .username {
    font-weight: 600;
    color: #1a1a2e;
}

.participant-item .bike {
    color: #666;
    font-size: 0.85rem;
}

/* Markdown content */
.markdown-body {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.markdown-body h2, .markdown-body h3 {
    margin: 15px 0 10px;
}

.markdown-body ul, .markdown-body ol {
    margin: 10px 0 10px 20px;
}

.markdown-body li {
    margin: 5px 0;
}

/* Buttons & Links */
.button {
    display: inline-block;
    background: #e94560;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
    transition: background 0.2s;
}

.button:hover {
    background: #c73e56;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.empty-state p {
    margin-bottom: 15px;
    color: #666;
}

.hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
}

/* Date range */
.date-range {
    background: #e3f2fd;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

/* Rating large */
.rating-large {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 20px 0;
}

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.status-badge.completed {
    background: #4caf50;
    color: white;
}

.status-badge.scheduled {
    background: #ffa500;
    color: white;
}
.instruction-steps {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.step {
    margin: 10px 0;
    padding: 5px;
}

.step code {
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Footer */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

footer a {
    color: #e94560;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .routes-grid, .trips-grid {
        grid-template-columns: 1fr;
    }
    
    .route-info {
        flex-direction: column;
        gap: 10px;
    }
}
