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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
    border-bottom: 1px solid #333;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #e74c3c, #9b59b6, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.2rem;
    color: #888;
    font-style: italic;
}

.updated {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.story {
    background: #12121a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #222;
}

.headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.summary {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.spin-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .spin-container {
        grid-template-columns: 1fr;
    }
}

.spin {
    border-radius: 8px;
    overflow: hidden;
}

.spin.dem {
    background: linear-gradient(135deg, #1a2a4a 0%, #0d1829 100%);
    border: 1px solid #2563eb33;
}

.spin.rep {
    background: linear-gradient(135deg, #4a1a1a 0%, #290d0d 100%);
    border: 1px solid #dc262633;
}

.spin-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spin.dem .spin-header {
    background: #2563eb22;
    color: #60a5fa;
    border-bottom: 1px solid #2563eb33;
}

.spin.rep .spin-header {
    background: #dc262622;
    color: #f87171;
    border-bottom: 1px solid #dc262633;
}

.party-icon {
    font-size: 1.1rem;
}

.spin-content {
    padding: 1.25rem;
}

.spin-content p {
    margin-bottom: 0.75rem;
}

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

.spin-content strong {
    color: #fff;
    font-size: 1.1rem;
}

.talking-point {
    font-size: 0.85rem;
    font-style: italic;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px dashed #333;
}

.spin.dem .talking-point {
    color: #60a5fa;
}

.spin.rep .talking-point {
    color: #f87171;
}

/* Source links section */
.source-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.source-links-title {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.source-links-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .source-links-container {
        grid-template-columns: 1fr;
    }
}

.source-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.source-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.source-link.dem {
    background: linear-gradient(135deg, #1a2a4a 0%, #0d1829 100%);
    border: 1px solid #2563eb44;
    color: #60a5fa;
}

.source-link.dem:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #112238 100%);
    border-color: #2563eb66;
}

.source-link.rep {
    background: linear-gradient(135deg, #4a1a1a 0%, #290d0d 100%);
    border: 1px solid #dc262644;
    color: #f87171;
}

.source-link.rep:hover {
    background: linear-gradient(135deg, #5a2020 0%, #3a1212 100%);
    border-color: #dc262666;
}

.source-icon {
    font-size: 1rem;
}

.source-name {
    font-weight: 600;
}

.source-outlet {
    color: #888;
    font-weight: 400;
}

footer {
    text-align: center;
    padding: 2rem 1rem 3rem;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #222;
    background: #0a0a0f;
}

footer p {
    margin-bottom: 0.5rem;
}

footer p:last-child {
    margin-bottom: 0;
}

/* Hover effects */
.story {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.spin {
    transition: transform 0.2s ease;
}

.spin:hover {
    transform: scale(1.01);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}
