/* Event Page Specific Styles - Only loads on event.html */
/* Cycling Over Sixty - Event Page CSS */

/* ===== EVENT HERO SECTION ===== */
.event-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, var(--background-hero) 0%, #d5e8d4 100%);
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.event-hero h2 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out;
}

.event-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== EVENT QUICK INFO ===== */
.event-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.quick-info-item {
    background: var(--background-white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform var(--transition-smooth);
}

.quick-info-item:hover {
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.info-text {
    font-weight: bold;
    color: var(--text-dark);
}

/* ===== EVENT NAVIGATION ===== */
.event-nav {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    padding: 20px;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.event-nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all var(--transition-smooth);
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 226, 31, 0.3);
}

/* ===== EVENT SECTIONS ===== */
.event-section {
    background: var(--background-white);
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    scroll-margin-top: 100px;
}

.event-section h3 {
    background: var(--primary-green);
    color: white;
    font-size: 1.8rem;
    margin: 0;
    padding: 20px 30px;
    font-weight: bold;
}

.section-content {
    padding: 30px;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ===== EVENT HEADER INFO ===== */
.event-header-info {
    background: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
}

.event-header-info h3 {
    color: var(--text-dark);
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    background: none;
    padding: 0;
}

.event-date-location {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.date-location-item {
    background: var(--background-hero);
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 5px solid var(--primary-green);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 25px 0;
}

.highlight-box h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.highlight-box ul {
    margin: 0;
    padding-left: 20px;
}

.highlight-box li {
    margin-bottom: 8px;
    font-size: 1rem;
}

/* ===== REGISTRATION SECTION ===== */
.registration-highlight {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    text-align: center;
}

.free-event {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.registration-form-container {
    background: var(--background-hero);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.registration-form-container h4 {
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.registration-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row:last-of-type {
    grid-template-columns: 1fr;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    cursor: pointer;
}

.submit-button {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: var(--border-radius);
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all var(--transition-smooth);
}

.submit-button:hover,
.submit-button:focus {
    background: var(--accent-green);
    transform: translateY(-2px);
}

/* ===== ROUTES SECTION ===== */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.route-card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.route-card:hover {
    transform: translateY(-5px);
}

.route-card.selected {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(164, 226, 31, 0.3);
    border: 3px solid var(--primary-green);
}

.route-card:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

.route-easy {
    border-top: 5px solid #27ae60;
}

.route-moderate {
    border-top: 5px solid #f39c12;
}

.route-challenging {
    border-top: 5px solid #e74c3c;
}

.route-header {
    background: var(--background-hero);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-header h4 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-dark);
}

.difficulty {
    background: var(--primary-green);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.route-details {
    padding: 20px;
}

.route-details p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* ===== LOGISTICS SECTION ===== */
.logistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.logistics-card {
    background: var(--background-hero);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-green);
}

.logistics-card h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.logistics-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.logistics-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.logistics-card li {
    margin-bottom: 10px;
}

.hotel-list a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
}

.hotel-list a:hover {
    text-decoration: underline;
}

/* ===== SCHEDULE TABLE ===== */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: var(--background-white);
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.schedule-table th,
.schedule-table td {
    padding: 18px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-table th {
    background: linear-gradient(135deg, var(--text-dark), var(--text-medium));
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.schedule-table tbody tr:hover {
    background-color: #e3f2fd;
    transform: scale(1.01);
    transition: all var(--transition-smooth);
}

.schedule-table td:first-child {
    font-weight: bold;
    color: var(--accent-green);
    font-size: 1.1rem;
}

/* ===== EVENT CTA SECTION ===== */
.event-cta-section {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    padding: 50px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 40px 0;
    box-shadow: var(--shadow-heavy);
}

.cta-content h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button.large {
    font-size: 1.3rem;
    padding: 20px 40px;
    background: var(--background-white);
    color: var(--accent-green);
    border: 3px solid var(--background-white);
    transition: all var(--transition-smooth);
}

.cta-button.large:hover,
.cta-button.large:focus {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== BUTTON ENHANCEMENTS ===== */
.register-button {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    padding: 18px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    animation: pulse 2s infinite;
}

.register-button:hover,
.register-button:focus {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(39, 174, 96, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .event-hero h2 {
        font-size: 2.2rem;
    }
    
    .event-quick-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quick-info-item {
        padding: 12px;
    }
    
    .event-nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        padding: 12px 20px;
        text-align: center;
        min-width: 150px;
    }
    
    .event-header-info {
        padding: 20px;
    }
    
    .event-header-info h3 {
        font-size: 1.8rem;
    }
    
    .date-location-item {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .section-content {
        padding: 20px;
    }
    
    .event-section h3 {
        padding: 15px 20px;
        font-size: 1.5rem;
    }
    
    .routes-grid {
        grid-template-columns: 1fr;
    }
    
    .logistics-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .registration-form-container {
        padding: 20px;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .event-cta-section {
        padding: 30px 20px;
    }
    
    .cta-content h3 {
        font-size: 2rem;
    }
    
    .cta-button.large {
        font-size: 1.1rem;
        padding: 15px 25px;
    }
}

@media (max-width: 480px) {
    .event-hero {
        padding: 40px 15px 30px;
    }
    
    .event-hero h2 {
        font-size: 1.8rem;
    }
    
    .event-hero p {
        font-size: 1rem;
    }
    
    .info-icon {
        font-size: 1.2rem;
        min-width: 25px;
    }
    
    .info-text {
        font-size: 0.9rem;
    }
    
    .event-nav {
        padding: 15px;
        position: static;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 0.8rem;
        min-width: 120px;
    }
    
    .route-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .route-header h4 {
        font-size: 1.2rem;
    }
    
    .route-details {
        padding: 15px;
    }
    
    .logistics-card {
        padding: 20px;
    }
    
    .logistics-card h4 {
        font-size: 1.1rem;
    }
    
    .schedule-table {
        font-size: 0.8rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 10px 6px;
    }
}

/* ===== FOCUS AND ACCESSIBILITY ===== */
.event-section:target {
    animation: highlightSection 2s ease-in-out;
}

@keyframes highlightSection {
    0% { background-color: rgba(164, 226, 31, 0.1); }
    50% { background-color: rgba(164, 226, 31, 0.2); }
    100% { background-color: transparent; }
}

/* ===== PRINT STYLES ===== */
@media print {
    .event-nav,
    .registration-form-container,
    .event-cta-section {
        display: none;
    }
    
    .event-section {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .routes-grid,
    .logistics-grid {
        grid-template-columns: 1fr;
    }
    
    .route-card,
    .logistics-card {
        border: 1px solid #ddd;
        margin-bottom: 10px;
    }
}