/* Story Free Press - Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header-info .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.last-updated {
    margin: 0;
}

#resetClicked {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#resetClicked:hover {
    background: #4338ca;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

.last-updated {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    gap: 1rem;
}

.event-date-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-date-label {
    font-weight: 500;
    color: #555;
}

.event-date {
    font-weight: 400;
}

.more-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
    display: none; /* Hidden by default - shown by JavaScript when rabbit goes down */
}

.more-btn:hover {
    background: #4338ca;
}

.more-btn:active {
    background: #3730a3;
}

.event-sources-buttons {
    display: none; /* Hidden by default - shown by JavaScript when rabbit goes down */
    gap: 0.5rem;
    flex-wrap: wrap;
}

.source-btn {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.source-btn:hover {
    background: #c7d2fe;
    color: #4338ca;
}

.source-btn:active {
    background: #a5b4fc;
}

.source-btn.pushed {
    background: #a5b4fc;
    color: #3730a3;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(1px);
}

.event-title {
    font-size: 1.05rem;      /* Changed from 1.4rem - just slightly larger than long summary */
    font-weight: normal;      /* Changed from default bold */
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.event-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

/* Long Summary Container */
.long-summary-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 6px;
    border-left: 3px solid #4f46e5;
}

.event-long-summary {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.event-sources {
    font-size: 0.9rem;
    color: #666;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e5e5;
}

.event-sources strong {
    margin-right: 0.5rem;
}

.event-sources a {
    color: #4f46e5;
    text-decoration: none;
    margin-right: 0.5rem;
}

.event-sources a:hover {
    text-decoration: underline;
}

/* No Events */
.no-events {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    color: #666;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

    .event-title {
        font-size: 1.05rem;      /* Changed from 1.4rem - just slightly larger than long summary */
        font-weight: normal;      /* Changed from default bold */
        margin-bottom: 0.75rem;
        color: #1a1a1a;
        line-height: 1.4;
    }

    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .event-date-section {
        width: 100%;
    }

    .event-sources-buttons {
        width: 100%;
    }
}