/* bada.news - Ocean Intelligence & Maritime Dispatch */
/* Colors: #0a1a2e, #0a2540, #e8f0f2, #e85d4a, #38e8d0, #1a3a5c, #2a5a7a, #b8c8d0, #f0f4f6, #0d2a40, #c8d8e0, #5a8a9a, #1a4a6a, #d0dce0, #a0b8c0, #6a9aaa */
/* Fonts: Playfair Display, IBM Plex Sans, IBM Plex Mono */

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

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    background: #0a1a2e;
    color: #e8f0f2;
    overflow-x: hidden;
}

/* Masthead */
.masthead {
    padding: 40px 20px 0;
    text-align: center;
    background: #0a2540;
    border-bottom: 1px solid #1a3a5c;
}

.masthead-inner {
    max-width: 900px;
    margin: 0 auto;
}

.masthead-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #5a8a9a;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #e8f0f2;
    letter-spacing: 0.02em;
}

.masthead-tagline {
    font-weight: 300;
    font-size: 14px;
    color: #6a9aaa;
    margin-top: 8px;
    margin-bottom: 20px;
}

.wave-bar {
    overflow: hidden;
    height: 40px;
}

.wave-bar-svg {
    width: 200%;
    height: 40px;
    animation: waveSlide 10s linear infinite;
}

@keyframes waveSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* News Grid */
.news-grid {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.news-card {
    background: #0d2a40;
    border: 1px solid #1a3a5c;
    padding: 28px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.news-card:hover {
    border-color: #38e8d0;
    transform: translateY(-4px);
}

.news-card.featured {
    grid-column: 1 / -1;
    border-color: #2a5a7a;
    background: linear-gradient(135deg, #0d2a40 0%, #0a2540 100%);
}

.card-category {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #38e8d0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 22px;
    color: #e8f0f2;
    line-height: 1.3;
    margin-bottom: 12px;
}

.featured .card-headline {
    font-size: 30px;
}

.card-excerpt {
    font-weight: 300;
    font-size: 15px;
    color: #a0b8c0;
    line-height: 1.7;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #5a8a9a;
}

.meta-depth {
    color: #e85d4a;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #1a3a5c;
    color: #b8c8d0;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: 1;
    }

    .featured .card-headline {
        font-size: 24px;
    }
}
