/* p5-timeline styles - optimized for iframe embedding */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: aliceblue;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 8px;
}

header {
    text-align: center;
    padding: 10px 12px;
    background: white;
    margin-bottom: 8px;
}

h1 {
    font-size: 1.4em;
    color: #ed225d;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 0.85em;
    color: #666;
    max-width: 100%;
    margin: 0 auto;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 8px;
    background: white;
    margin-bottom: 8px;
}

.filter-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
    transform: scale(1.03);
}

.filter-btn.all {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.filter-btn.processing {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.filter-btn.p5js {
    background: linear-gradient(135deg, #ed225d 0%, #c91848 100%);
    color: white;
}

.filter-btn.web-standards {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #333;
}

.filter-btn.related-projects {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.filter-btn.organizations {
    background: linear-gradient(135deg, #4568dc 0%, #b06ab3 100%);
    color: white;
}

#timeline {
    background: white;
    overflow: hidden;
}

.event-details {
    margin-top: 8px;
    background: white;
    padding: 10px;
    min-height: 120px;
}

.event-details h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95em;
}

.event-details .placeholder {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9em;
}

.event-content {
    display: none;
}

.event-content.visible {
    display: block;
}

.event-headline {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.event-date {
    font-size: 0.85em;
    color: #ed225d;
    margin-bottom: 8px;
    font-weight: 500;
}

.event-description {
    font-size: 0.9em;
    line-height: 1.5;
    color: #555;
    margin-bottom: 8px;
}

.event-notes {
    font-size: 0.8em;
    color: #777;
    background: #f8f9fa;
    padding: 8px;
    border-left: 3px solid #ed225d;
}

.event-category {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 500;
    margin-top: 6px;
}

/* vis-timeline custom styles */
.vis-item {
    border-radius: 3px;
    border: none;
    font-size: 11px;
    font-weight: 500;
}

.vis-item.vis-selected {
    border: 2px solid #333;
}

.vis-time-axis .vis-text {
    font-size: 11px;
    color: #666;
}

.vis-panel.vis-center {
    border: none;
}

footer {
    text-align: center;
    padding: 8px;
    color: #666;
    font-size: 0.75em;
    margin-top: 8px;
}

footer a {
    color: #ed225d;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
