:root {
    --primary-green: #0D5C3D;
    --accent-green: #10B981;
    --light-green: #D1FAE5;
    --mint: #A7F3D0;
    --pale-green: #ECFDF5;
    --white: #FFFFFF;
    --gray-600: #4B5563;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: 
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(13, 92, 61, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(167, 243, 208, 0.2) 0%, transparent 70%),
        linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 30%, #ECFDF5 50%, #D1FAE5 70%, #F0FDF4 100%);
    color: var(--gray-900);
    padding: 25px 20px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(16, 185, 129, 0.03) 2px, transparent 2px),
        radial-gradient(circle, rgba(13, 92, 61, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    background-position: 0 0, 25px 25px;
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(5deg); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* BACK LINK */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    padding: 10px 20px;
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 92, 61, 0.06);
}

.back-link:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(13, 92, 61, 0.1);
}

/* COMPACT PROFILE HEADER */
.profile-header {
    background: var(--white);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(13, 92, 61, 0.08);
    display: flex;
    gap: 20px;
    align-items: center;
    border: 2px solid var(--pale-green);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 8px;
    line-height: 1.2;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-type {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--light-green), var(--mint));
    color: var(--primary-green);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
    border: 2px solid var(--mint);
}

.profile-bio {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-top: 10px;
    position: relative;
}

.profile-bio.collapsed {
    max-height: 65px;
    overflow: hidden;
    position: relative;
}

.profile-bio.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--white));
}

.bio-read-more-btn {
    background: none;
    border: none;
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bio-read-more-btn:hover {
    color: var(--primary-green);
}

.social-links {
    display: inline-flex;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.social-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ROUTES SECTION */
.routes-section {
    margin-top: 30px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.routes-count {
    background: var(--accent-green);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 100%;
}

/* ROUTE CARDS */
.route-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(13, 92, 61, 0.08);
    border: 2px solid var(--pale-green);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.route-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(13, 92, 61, 0.12);
    border-color: var(--accent-green);
}

.route-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--pale-green), var(--mint));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    flex-shrink: 0;
}

.route-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.route-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
    line-height: 1.3;
}

.route-description {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.route-description.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-description.expanded {
    display: block;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more-btn:hover {
    color: var(--primary-green);
}

.route-cta {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
    border: none;
    cursor: pointer;
    align-self: flex-start;
    white-space: nowrap;
}

.route-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.35);
}

/* NO ROUTES STATE */
.no-routes {
    text-align: center;
    padding: 80px 40px;
    background: var(--white);
    border-radius: 20px;
    color: var(--gray-600);
    box-shadow: 0 4px 16px rgba(13, 92, 61, 0.06);
}

.no-routes-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.no-routes h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.no-routes p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .routes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px 12px;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.4rem;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .routes-grid {
        max-width: 100%;
        grid-template-columns: 1fr;
    }
    
    .route-card {
        flex-direction: column;
    }
    
    .route-image {
        width: 100%;
        height: 200px;
    }
    
    .route-content {
        padding: 16px;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 16px;
    }
    
    .profile-name {
        font-size: 1.3rem;
    }
    
    .profile-bio {
        font-size: 0.85rem;
    }
    
    .route-title {
        font-size: 1.1rem;
    }
    
    .route-description {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
    }
    
    .route-image {
        height: 180px;
    }
}


.rating-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
}

.stars-container {
    display: inline-flex;
    gap: 2px;
}

.star-icon {
    font-size: 16px;
}

.star-filled {
    color: #fbbf24; /* yellow */
}

.star-empty {
    color: #d1d5db; /* gray */
}

.votes-count {
    font-size: 13px;
    color: #6b7280;
}
