/* =========================
   NEWS LIST PAGE
========================= */
.news-hero {
    padding: 32px 0 16px;
}

.news-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.news-hero p {
    color: #555;
    font-size: 0.95rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.news-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-date {
    font-size: 0.78rem;
    color: #6b7280;
}

.badge-rise {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #dcfce7;
    color: #16a34a;
}

.badge-drop {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #fee2e2;
    color: #dc2626;
}

.badge-stable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.news-card-link {
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 500;
    margin-top: auto;
}

.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

/* =========================
   NEWS DETAIL PAGE
========================= */

/* banner */
.news-banner {
    background: linear-gradient(135deg, #0f0f0f 0%, #1e293b 60%, #0f172a 100%);
    border-radius: 14px;
    padding: 36px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.news-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(192,192,192,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.news-banner-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 12px;
}

.news-banner-headline {
    font-size: 1.45rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.35;
    max-width: 680px;
}

.news-banner-sub {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* article meta bar */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #6b7280;
}

.article-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c68c25, #e5b544);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.article-meta-sep {
    color: #d1d5db;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}

.share-btn:hover { background: #f3f4f6; }

/* summary box */
.article-summary {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 0.97rem;
    color: #166534;
    line-height: 1.65;
}

.article-summary.drop {
    background: #fef2f2;
    border-color: #dc2626;
    color: #991b1b;
}

.article-summary.stable {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #475569;
}

/* section headings */
.news-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f3f4f6;
}

/* today-vs-yesterday */
.today-vs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.today-vs-table th {
    background: #f8fafc;
    color: #6b7280;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.today-vs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    color: #222;
}

.today-vs-table .change-up   { color: #16a34a; font-weight: 600; }
.today-vs-table .change-down { color: #dc2626; font-weight: 600; }
.today-vs-table .change-same { color: #6b7280; }

/* cities table */
.cities-rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cities-rates-table thead tr {
    background: #f8fafc;
}

.cities-rates-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.cities-rates-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #222;
}

.cities-rates-table tr:hover td { background: #fafafa; }

.dir-up   { color: #16a34a; font-weight: 600; }
.dir-down { color: #dc2626; font-weight: 600; }
.dir-same { color: #6b7280; }

/* 10-day avg */
.avg-price-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.avg-price-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.avg-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
}

.avg-price-unit {
    font-size: 0.82rem;
    color: #9ca3af;
}

/* highlight city */
.highlight-city-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 20px 24px;
}

.highlight-city-card .city-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 6px;
}

.highlight-city-card .city-stat {
    font-size: 0.9rem;
    color: #78350f;
}

.highlight-city-card .city-stat strong {
    font-size: 1.2rem;
    color: #111;
}

/* disclaimer */
.disclaimer-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
}

.disclaimer-box strong { color: #374151; }

/* latest news */
.latest-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.latest-news-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.latest-news-item:hover { background: #f9fafb; }

.latest-news-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.latest-news-icon.rise  { background: #dcfce7; }
.latest-news-icon.drop  { background: #fee2e2; }
.latest-news-icon.stable { background: #f3f4f6; }

.latest-news-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.latest-news-date {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 3px;
}

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

    .news-banner {
        padding: 24px 18px;
    }

    .news-banner-headline {
        font-size: 1.15rem;
    }

    .article-meta {
        gap: 10px;
    }

    .share-btn {
        margin-left: 0;
    }

    .avg-price-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
