/* Events Page Specific Styles */

.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, rgba(255, 27, 107, 0.1), rgba(69, 202, 255, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    text-align: center;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-pink);
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Season Selector Dropdown */
.season-selector-section {
    padding: 1.5rem 0;
    background: var(--dark-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.season-selector-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.season-selector-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.season-icon {
    font-size: 1.2rem;
}

.season-select-container {
    position: relative;
    min-width: 320px;
}

.season-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: var(--dark-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    background-image: linear-gradient(135deg, rgba(255, 27, 107, 0.03), rgba(69, 202, 255, 0.03));
}

.season-select:hover {
    border-color: rgba(69, 202, 255, 0.4);
}

.season-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(69, 202, 255, 0.1);
}

.season-select option {
    background: var(--dark-card);
    color: var(--text-primary);
    padding: 0.5rem;
}

.season-select option:disabled {
    color: var(--text-secondary);
    opacity: 0.6;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .season-selector-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .season-select-container {
        width: 100%;
        min-width: auto;
        max-width: 400px;
    }
}

/* Season Story/Report Section */
.season-story-box {
    background: linear-gradient(135deg, rgba(255, 27, 107, 0.03), rgba(69, 202, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0 3rem 0;
}

.season-story-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

.season-story-content.report {
    font-style: italic;
}

.season-story-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .season-story-box {
        padding: 1.5rem;
        margin: 1.5rem 0 2rem 0;
    }
    
    .season-story-content {
        font-size: 0.95rem;
        text-align: left;
    }
}

/* Progress Overview */
.progress-overview {
    padding: 3rem 0;
    background: var(--dark-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Season Timeline */
.season-timeline {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--dark-bg);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.timeline-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-toggle {
    padding: 0.5rem 1rem;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-toggle:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.timeline-track {
    position: relative;
    padding: 3rem 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: translateY(-50%);
}

.timeline-stages {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.stage-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--dark-bg);
    transition: all 0.3s ease;
}

.timeline-stage.completed .stage-dot {
    background: var(--success);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.timeline-stage.unlocked .stage-dot {
    background: var(--accent-blue);
    box-shadow: 0 0 20px rgba(69, 202, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-stage.locked .stage-dot {
    background: rgba(255, 255, 255, 0.1);
}

.timeline-stage.choice-stage .stage-dot {
    background: var(--accent-purple);
    box-shadow: 0 0 20px rgba(199, 26, 229, 0.5);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.stage-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stage-icon {
    display: none; /* Hide emoji icons */
}

.stage-number {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.cyclist-marker {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    transition: left 0.5s ease;
    z-index: 3;
}

.cyclist-icon {
    display: block;
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: carBounce 1s ease-in-out infinite;
}

@keyframes carBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--dark-bg);
}

.legend-dot.completed {
    background: var(--success);
}

.legend-dot.unlocked {
    background: var(--accent-blue);
}

.legend-dot.locked {
    background: rgba(255, 255, 255, 0.1);
}

.legend-dot.choice {
    background: var(--accent-purple);
}

/* Progress Grid */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.progress-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--dark-bg);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.progress-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(69, 202, 255, 0.2);
}

.progress-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 27, 107, 0.2), rgba(69, 202, 255, 0.2));
    border-radius: 15px;
    flex-shrink: 0;
}

.progress-info {
    flex: 1;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.progress-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Events Section */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.progress-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--dark-bg);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.progress-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(69, 202, 255, 0.2);
}

.progress-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 27, 107, 0.2), rgba(69, 202, 255, 0.2));
    border-radius: 15px;
}

.progress-info {
    flex: 1;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.progress-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Events Section */
.events-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.stage-info {
    margin-top: 1rem;
}

.stage-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Sequential Event Stages */
.events-sequence {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.sequence-stage {
    position: relative;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out both;
}

.sequence-stage:nth-child(1) { animation-delay: 0.1s; }
.sequence-stage:nth-child(2) { animation-delay: 0.2s; }
.sequence-stage:nth-child(3) { animation-delay: 0.3s; }
.sequence-stage:nth-child(4) { animation-delay: 0.4s; }
.sequence-stage:nth-child(5) { animation-delay: 0.5s; }

.stage-connector {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-blue) 0%, rgba(69, 202, 255, 0.1) 100%);
    transform: translateX(-50%);
    z-index: 0;
}

.sequence-stage:last-child .stage-connector {
    display: none;
}

.sequence-stage.completed .stage-connector {
    background: linear-gradient(180deg, var(--success) 0%, rgba(0, 255, 136, 0.1) 100%);
}

.sequence-stage.locked .stage-connector {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.stage-card {
    position: relative;
    background: var(--dark-card);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.sequence-stage.unlocked .stage-card {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 40px rgba(69, 202, 255, 0.2);
}

.sequence-stage.completed .stage-card {
    border-color: var(--success);
    opacity: 0.8;
}

.sequence-stage.locked .stage-card {
    opacity: 0.6;
}

.stage-card:hover {
    transform: translateY(-5px);
}

.stage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stage-number-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stage-type-badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stage-type-badge.mandatory {
    background: rgba(255, 27, 107, 0.2);
    color: var(--accent-pink);
    border: 1px solid var(--accent-pink);
}

.stage-type-badge.choice {
    background: rgba(199, 26, 229, 0.2);
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
}

.stage-card-content {
    padding: 2rem;
    position: relative;
}

.choice-card .stage-card-content {
    text-align: center;
}

.stage-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.event-image {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.event-image-placeholder span {
    font-size: 4rem;
    line-height: 1;
}

.event-card-sequential .stage-card-content,
.choice-card .stage-card-content {
    text-align: center;
}

.event-card-sequential .event-stats,
.choice-card .event-stats {
    justify-content: center;
}

.stage-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.stage-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stat-icon {
    font-size: 1.2rem;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.locked-overlay span {
    font-size: 3rem;
    opacity: 0.5;
}

.locked-overlay p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.stage-card-footer {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--success);
    border-radius: 10px;
    color: var(--success);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Choice Modal */
.choice-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.choice-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.choice-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.choice-event-card {
    padding: 1.5rem;
    background: var(--dark-card);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.choice-event-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(69, 202, 255, 0.2);
}

.choice-event-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.choice-event-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.choice-event-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.choice-event-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Login Prompt */
.login-prompt {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 27, 107, 0.1), rgba(69, 202, 255, 0.1));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.prompt-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.prompt-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    /* Hide timeline on mobile devices */
    .season-timeline {
        display: none;
    }

    .timeline-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .timeline-track {
        padding: 2rem 0;
    }

    .timeline-stages {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .timeline-stage {
        flex: 0 0 calc(33.333% - 1rem);
    }

    .stage-number {
        font-size: 0.65rem;
    }

    .cyclist-icon {
        width: 60px;
    }

    .timeline-legend {
        gap: 1rem;
    }

    .section-header {
        text-align: center;
    }

    .stage-info p {
        font-size: 1rem;
    }

    .events-sequence {
        padding: 0 1rem;
    }

    .stage-card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .stage-title {
        font-size: 1.4rem;
    }

    .event-stats {
        flex-direction: column;
        gap: 0.8rem;
    }

    .choice-events-grid {
        grid-template-columns: 1fr;
    }

    .progress-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-title {
        font-size: 2rem;
    }

    /* Keep timeline hidden on small mobile */
    .season-timeline {
        display: none;
    }

    .timeline-header h3 {
        font-size: 1.4rem;
    }

    .timeline-stage {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .cyclist-icon {
        width: 50px;
    }

    .stage-card-content {
        padding: 1.5rem;
    }

    .stage-icon-large {
        font-size: 3rem;
    }

    .progress-card {
        padding: 1.5rem;
    }

    .progress-value {
        font-size: 1.5rem;
    }
}
