/* monopole.news - Inflated 3D News Broadcast */
/* Colors: #A8A0C0, #F0E8FF, #C040A0, #161828, #40A0C0, #6040C0, #E0C040, #0E0E1A */
/* Fonts: Abril Fatface, Source Sans 3, Space Mono */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0E0E1A;
    color: #F0E8FF;
    font-family: 'Source Sans 3', sans-serif;
    min-height: 100vh;
}

/* Ticker Bar */
#ticker-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #6040C0, #C040A0, #40A0C0, #6040C0);
    background-size: 300% 100%;
    animation: auroraGradient 8s linear infinite;
    z-index: 100;
    overflow: hidden;
    display: flex;
    align-items: center;
    transform: translateY(100%);
    animation: tickerSlideUp 0.5s ease forwards, auroraGradient 8s linear infinite;
}

@keyframes tickerSlideUp {
    to { transform: translateY(0); }
}

@keyframes auroraGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-item {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #F0E8FF;
    padding: 0 1.5rem;
    letter-spacing: 0.02em;
}

.ticker-sep {
    color: #E0C040;
    font-size: 0.6rem;
}

/* News Grid */
#news-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* News Cards */
.news-card {
    background: radial-gradient(ellipse at var(--highlight-x, 50%) var(--highlight-y, 30%), #1E1C30 0%, #161828 100%);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    cursor: default;
    opacity: 0;
    transform: scale(0.95);
    transition: transform 0.3s ease, box-shadow 0.5s ease;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.2),
        0 4px 8px rgba(0,0,0,0.15),
        0 8px 16px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(240,232,255,0.05);
}

.news-card.visible {
    opacity: 1;
    transform: scale(1);
}

.news-card:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.25),
        0 8px 16px rgba(0,0,0,0.2),
        0 16px 32px rgba(0,0,0,0.15),
        0 24px 48px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(240,232,255,0.08);
}

/* Featured Card */
.featured {
    grid-column: 1 / -1;
    padding: 48px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured .card-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.featured .card-body {
    max-width: 700px;
    font-size: 1.05rem;
}

/* Card Content */
.card-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E0C040;
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(224, 192, 64, 0.3);
    border-radius: 4px;
}

.card-headline {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    letter-spacing: 0.01em;
    color: #F0E8FF;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.card-body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    font-weight: 400;
    color: #A8A0C0;
    margin-bottom: 1.5rem;
}

.card-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #40A0C0;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 1024px) {
    #news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #news-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem 4rem;
    }

    .featured {
        padding: 24px;
        min-height: auto;
    }
}
