/* General Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Timeline Container */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.timeline-container h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
    scrollbar-width: thin; /* For Firefox */
}

.timeline::-webkit-scrollbar {
    height: 6px;
}

.timeline::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.year {
    position: relative;
    padding: 10px 20px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.year span {
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

.year:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.year.active {
    background: #0066cc;
}

.year.active span {
    color: white;
}

.year.active .arrow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #0066cc;
}

/* Class Container */
.class-container {
    margin-top: 20px;
    border-radius: 8px;
    text-align: left;
}

.rrm-class-content {
    display: none; /* Hidden by default */
}

.rrm-class-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rrm-class-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.rrm-regatta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rrm-regatta-list.empty {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.rrm-regatta-list.empty .no-results {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* Regatta Item */
.regatta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.regatta-item:hover {
    background: #f0f4f8;
}

.regatta-name {
    font-size: 15px;
    color: #444;
}

/* Regatta Links */
.regatta-links {
    display: flex;
    gap: 10px;
}

.regatta-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    color: #0066cc;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

.regatta-link:hover {
    background: #e6f0ff;
    color: #004d99;
}

.regatta-link.pdf {
    color: #dc3545;
}

.regatta-link.pdf:hover {
    background: #ffebee;
    color: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-container {
        padding: 10px;
    }

    .timeline {
        padding: 15px;
        gap: 8px;
    }

    .year {
        padding: 8px 15px;
        min-width: 70px;
    }

    .year span {
        font-size: 14px;
    }

    .regatta-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .regatta-links {
        width: 100%;
        justify-content: flex-start;
    }
}
