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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.container {
    max-width: 900px;
    width: 90%;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.experimental-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.experimental-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

.viewer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.viewer-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1.25rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.viewer-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.viewer-card h2 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
    color: #fff;
}

.viewer-card p {
    font-size: 0.625rem;
    line-height: 1.6;
    opacity: 0.9;
}

.viewer-card .data-availability {
    display: block;
    font-size: 0.55rem;
    margin-top: 0.5rem;
    opacity: 0.7;
    font-style: italic;
}

.viewer-card .data-availability.data-lag {
    color: #ffcc00;
    opacity: 0.9;
    margin-top: 0.25rem;
}

footer {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

footer p {
    margin: 0.25rem 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 1.6;
}

.modal-content p {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p:last-child {
    margin-bottom: 0;
}

.contact-email {
    font-weight: 600;
    color: #1e3c72;
    font-size: 1.1rem;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.scrollable-modal {
    max-height: 80vh;
    overflow-y: auto;
}

.scrollable-modal h2 {
    color: #1e3c72;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e3c72;
}

.update-entry {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.update-entry:last-child {
    border-bottom: none;
}

.update-date {
    color: #1e3c72;
    font-size: 1rem;
    padding: 0.75rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    margin: 0;
}

.update-date:hover {
    background-color: rgba(30, 60, 114, 0.05);
}

.expand-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3c72;
    transition: transform 0.2s ease;
}

.update-entry[data-expanded="true"] .expand-icon {
    transform: rotate(45deg);
}

.update-details {
    display: none;
    padding: 0 0 1rem 0;
    color: #333;
    text-align: left;
}

.update-entry[data-expanded="true"] .update-details {
    display: block;
}

.update-details h4 {
    color: #1e3c72;
    font-size: 0.9rem;
    margin: 0.75rem 0 0.5rem 0;
}

.update-details h4:first-child {
    margin-top: 0;
}

.update-details ul {
    margin: 0 0 0 1.5rem;
    padding: 0;
}

.update-details li {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.update-details p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

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

    .scrollable-modal {
        max-height: 70vh;
    }
}
