/* Modern Design System */
:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --accent: #3b82f6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.2);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--gray-light);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-top: 4px;
}

.hero-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

.hero-info-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-info-divider {
    width: 4px;
    height: 4px;
    background: var(--gray);
    border-radius: 50%;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gray-light);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-glow {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn-glow:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-success {
    background: #10b981 !important;
}

/* Info Section */
.info-section {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.compact {
    margin-bottom: 30px;
}

.section-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-badge.accent {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary);
}

.section-badge.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.option-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.option-card.option-help:hover {
    border-color: var(--secondary);
}

.option-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--white);
}

.option-help .option-icon {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

.option-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.option-desc {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.option-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.option-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--dark-light);
}

.option-features li i {
    color: var(--primary);
    font-size: 0.9rem;
}

.option-help .option-features li i {
    color: var(--secondary);
}

/* Map Section */
.map-section-full {
    height: 600px;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

/* Elevation Section */
.elevation-section {
    padding: 40px 0 60px;
    background: var(--white);
}

.chart-container {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    height: 250px;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    background: var(--light);
}

.content-section.alt {
    background: var(--white);
}

/* Stations Grid */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.station-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.station-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.station-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.station-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.station-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.station-meta {
    display: flex;
    gap: 16px;
    color: var(--gray);
    font-size: 0.9rem;
}

.station-meta i {
    margin-right: 4px;
}

.station-desc {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-lighter);
}

.station-signups {
    margin-bottom: 20px;
}

.station-signups h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.signup-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.signup-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--light);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--dark);
}

.signup-chip i {
    color: var(--gray-light);
    font-size: 0.8rem;
}

.signup-chip small {
    color: var(--gray);
    font-size: 0.8rem;
    margin-left: 4px;
}

.no-signups {
    color: var(--gray-light);
    font-style: italic;
    font-size: 0.9rem;
}

.no-signups i {
    margin-right: 4px;
}

/* Sections List */
.sections-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 i {
    color: var(--primary);
}

.section-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--light);
    color: var(--dark);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-badge.up {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary);
}

.stat-badge.down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-badge.time {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

.section-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 200px;
}

.signup-count {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.signup-count i {
    color: var(--primary);
    margin-right: 4px;
}

.section-signup-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.signup-chip-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--light);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--dark);
}

.signup-chip-small i {
    color: var(--gray-light);
    font-size: 0.75rem;
}

.no-signups-small {
    color: var(--gray-light);
    font-size: 0.85rem;
    font-style: italic;
}

.no-signups-small i {
    margin-right: 4px;
}

.section-desc {
    color: var(--gray);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* Bring Section */
.bring-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.bring-section .section-header h2 {
    color: var(--white);
}

.bring-section .section-subtitle {
    color: var(--gray-light);
}

.bring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.bring-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.bring-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.bring-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: var(--primary);
}

.bring-item span {
    color: var(--white);
    font-weight: 500;
}

.bring-item small {
    display: block;
    color: var(--gray-light);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--light);
    color: var(--gray);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--gray-lighter);
    color: var(--dark);
}

.modal-header {
    padding: 30px 30px 0;
    text-align: center;
}

.modal-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.modal-badge.badge-run {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary);
}

.modal-badge.badge-help {
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.modal form {
    padding: 24px 30px 30px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.label-optional {
    font-weight: 400;
    color: var(--gray);
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-lighter);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-item:hover {
    background: var(--light);
}

.checkbox-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-lighter);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-item input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-item input:checked + .checkmark::after {
    opacity: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    font-size: 0.95rem;
}

.checkbox-label i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.checkbox-other {
    align-items: flex-start;
}

.checkbox-other input[type="text"] {
    flex: 1;
    padding: 6px 10px;
    border: 2px solid var(--gray-lighter);
    border-radius: 6px;
    font-size: 0.9rem;
    margin-left: 8px;
}

.checkbox-other input[type="text"]:disabled {
    background: var(--light);
    opacity: 0.6;
}

.btn-submit {
    margin-top: 10px;
}

/* No Route Message */
.no-route {
    padding: 120px 0;
    text-align: center;
    background: var(--light);
}

.no-route i {
    font-size: 4rem;
    color: var(--gray-lighter);
    margin-bottom: 24px;
}

.no-route h2 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 1.75rem;
}

.no-route p {
    color: var(--gray);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.admin-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.admin-link:hover {
    color: var(--gray-light);
}

/* Map Markers */
.marker-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.marker-start {
    background: var(--primary);
}

.marker-finish {
    background: #ef4444;
}

.marker-station {
    background: var(--secondary);
    font-size: 14px;
}

/* Leaflet Popup */
.popup-content {
    font-size: 0.95rem;
}

.popup-content b {
    color: var(--dark);
    font-size: 1rem;
}

.popup-detail {
    color: var(--gray);
}

.popup-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-stats {
        gap: 24px;
    }
    
    .hero-stat-value {
        font-size: 2rem;
    }

    .hero-info {
        flex-direction: column;
        gap: 12px;
        padding: 20px 24px;
        border-radius: var(--radius);
    }

    .hero-info-divider {
        display: none;
    }

    .hero-info-item {
        font-size: 0.95rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .map-section-full {
        height: 400px;
    }
    
    .section-card {
        grid-template-columns: 1fr;
    }
    
    .section-side {
        align-items: flex-start;
        border-top: 1px solid var(--gray-lighter);
        padding-top: 16px;
    }
    
    .section-signup-chips {
        justify-content: flex-start;
    }
    
    .stations-grid {
        grid-template-columns: 1fr;
    }
    
    .bring-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .bring-grid {
        grid-template-columns: 1fr;
    }
    
    .section-stats-row {
        gap: 6px;
    }
    
    .stat-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}
