:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6; /* Premium Blue */
    --accent-hover: #2563eb;
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.app-header {
    text-align: center;
    padding: 1.2rem 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}

.app-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.app-header h1 span {
    color: var(--accent);
}

.app-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 400;
}

.currency-bar {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
    border-radius: 8px;
    flex-wrap: wrap;
}

.currency-bar span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.currency-bar span strong {
    color: #f8fafc;
    font-weight: 600;
}

.country-tabs {
    display: flex;
    overflow-x: auto;
    padding: 1rem;
    gap: 0.75rem;
    scrollbar-width: none;
}

.country-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    outline: none;
}

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.news-feed {
    padding: 0.5rem 1rem 3rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:active {
    transform: scale(0.98);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.source-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-info .flag {
    font-size: 1.1rem;
}

.time-ago {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.news-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.news-summary {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .news-feed {
        max-width: 600px;
        margin: 0 auto;
    }
    .country-tabs {
        justify-content: center;
    }
}
