/* WorldNews AI — Frontend Styles */

/* Breaking News Ticker */
.wna-ticker-wrap {
    display: flex;
    align-items: center;
    background: #c0392b;
    color: #fff;
    padding: 6px 0;
    font-size: 13px;
    font-family: -apple-system, sans-serif;
    overflow: hidden;
    position: relative;
    z-index: 9999;
}
.wna-ticker-label {
    background: #fff;
    color: #c0392b;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 10px;
    white-space: nowrap;
    margin: 0 10px;
    border-radius: 2px;
    letter-spacing: 1px;
}
.wna-ticker-scroll { flex: 1; overflow: hidden; }
.wna-ticker-inner {
    display: flex;
    animation: wna-scroll 30s linear infinite;
    white-space: nowrap;
}
.wna-ticker-item { margin-right: 30px; }
.wna-ticker-item a { color: #fff; text-decoration: none; }
@keyframes wna-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* Continent Nav */
.wna-continent-nav {
    display: flex;
    flex-wrap: wrap;
    background: #1a1a2e;
    gap: 0;
    border-bottom: 2px solid #c0392b;
}
.wna-continent-nav a, .wna-cont-all, .wna-cont-link, .wna-cont-trends {
    color: #aaa;
    font-size: 12px;
    padding: 9px 14px;
    text-decoration: none;
    border-right: 1px solid #333;
    transition: all 0.2s;
    font-family: -apple-system, sans-serif;
    white-space: nowrap;
}
.wna-continent-nav a:hover { color: #fff; background: #c0392b; }
.wna-cont-trends { color: #f39c12 !important; }

/* Country bar */
.wna-country-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px 14px;
    background: #16213e;
}
.wna-country-btn {
    color: #ccc;
    font-size: 11px;
    background: #0f3460;
    padding: 3px 10px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    font-family: -apple-system, sans-serif;
    transition: background 0.2s;
}
.wna-country-btn:hover { background: #c0392b; color: #fff; }
.wna-country-more { color: #7f8c8d; font-size: 11px; padding: 3px 8px; align-self: center; }

/* News Grid */
.wna-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
.wna-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.wna-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.wna-card-img-wrap { display: block; position: relative; height: 180px; overflow: hidden; }
.wna-card-img { width: 100%; height: 100%; object-fit: cover; }
.wna-card-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 40px; font-weight: 700;
}
.wna-ai-badge {
    position: absolute; top: 8px; left: 8px;
    background: #c0392b; color: #fff;
    font-size: 10px; padding: 2px 8px;
    border-radius: 2px; font-weight: 700;
    font-family: -apple-system, sans-serif;
}
.wna-card-body { padding: 14px; }
.wna-card-cat {
    font-size: 10px; color: #c0392b;
    font-weight: 700; font-family: -apple-system, sans-serif;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.wna-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 8px; }
.wna-card-title a { color: #1a1a2e; text-decoration: none; }
.wna-card-title a:hover { color: #c0392b; }
.wna-card-trend { font-size: 11px; color: #27ae60; margin-bottom: 6px; font-family: -apple-system, sans-serif; }
.wna-card-meta { font-size: 11px; color: #999; margin-bottom: 8px; font-family: -apple-system, sans-serif; }
.wna-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* Tags */
.wna-tag {
    font-size: 10px; background: #f0f0f0; color: #555;
    padding: 2px 7px; border-radius: 3px; text-decoration: none;
    font-family: -apple-system, sans-serif;
}
.wna-tag:hover { background: #c0392b; color: #fff; }

/* Trending Box */
.wna-trending-box {
    background: #fff; border: 1px solid #e1e1e1;
    border-radius: 6px; padding: 15px; margin-bottom: 20px;
}
.wna-trending-title {
    font-size: 14px; font-weight: 700; margin: 0 0 12px;
    font-family: -apple-system, sans-serif; color: #1a1a2e;
    border-bottom: 2px solid #c0392b; padding-bottom: 8px;
}
.wna-trending-list { list-style: none; margin: 0; padding: 0; }
.wna-trending-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer;
}
.wna-trending-item:last-child { border-bottom: none; }
.wna-trend-num { font-size: 18px; font-weight: 700; color: #c0392b; min-width: 26px; font-family: -apple-system, sans-serif; }
.wna-trend-kw { font-size: 13px; font-weight: 600; color: #1a1a2e; font-family: -apple-system, sans-serif; }
.wna-trend-traffic { font-size: 11px; color: #27ae60; font-family: -apple-system, sans-serif; }

/* Article meta */
.wna-article-meta { margin-bottom: 16px; }
.wna-trend-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #eafaf1; color: #1e8449; font-size: 13px;
    padding: 6px 14px; border-radius: 4px; margin-bottom: 12px;
    border-left: 3px solid #27ae60; font-family: -apple-system, sans-serif;
}
.wna-article-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; font-family: -apple-system, sans-serif; }
.wna-kw-cloud { margin-top: 16px; font-family: -apple-system, sans-serif; font-size: 13px; }
.wna-kw-pill {
    display: inline-block; background: #eef2f7; color: #2c3e50;
    padding: 2px 8px; border-radius: 3px; margin: 2px;
    font-size: 11px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wna-card { background: #1e1e2e; border-color: #333; }
    .wna-card-title a { color: #eee; }
    .wna-trending-box { background: #1e1e2e; border-color: #333; }
    .wna-trend-kw { color: #eee; }
    .wna-tag { background: #2d2d3e; color: #ccc; }
    .wna-kw-pill { background: #2d2d3e; color: #ccc; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wna-news-grid { grid-template-columns: 1fr; }
    .wna-continent-nav { overflow-x: auto; flex-wrap: nowrap; }
    .wna-country-bar { gap: 4px; }
    .wna-ticker-label { display: none; }
}
