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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header with shimmer animation (rotating glow) */
header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
    padding: 32px 0;
    border-bottom: 3px solid #f59e0b;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: shimmer 15s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-30%) translateY(-30%) rotate(0deg);
    }
    100% {
        transform: translateX(30%) translateY(30%) rotate(360deg);
    }
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

header h1 a:hover {
    opacity: 0.9;
}

header .tagline {
    color: #94a3b8;
    margin-top: 8px;
    font-size: 0.95rem;
}

/* Section title */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 24px 0 20px;
    padding-left: 16px;
    border-left: 5px solid #f59e0b;
    color: #f1f5f9;
}

/* Latest news full‑width */
.latest-news-fullwidth {
    margin-bottom: 30px;
}

.latest-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.latest-card-full {
    background: #1e293b;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #334155;
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.latest-card-full:hover {
    transform: translateY(-3px);
    border-color: #f59e0b;
    box-shadow: 0 12px 20px -12px rgba(0,0,0,0.4);
}

.latest-card-full h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.latest-card-full h3 a {
    color: #f1f5f9;
    text-decoration: none;
}

.latest-card-full h3 a:hover {
    color: #f59e0b;
}

.latest-card-full .summary {
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 0;
    color: #cbd5e1;
}

/* Results count (top version) */
.results-count-top {
    margin: 16px 0 8px 0;
    font-size: 0.85rem;
    color: #94a3b8;
    background: #1e293b;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 40px;
}

/* Filters bar (dark) */
.filters-bar {
    background: #1e293b;
    padding: 20px 24px;
    border-radius: 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid #334155;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.search-input, .date-input {
    padding: 12px 16px;
    border: 1px solid #475569;
    border-radius: 40px;
    font-size: 0.9rem;
    background: #0f172a;
    color: #e2e8f0;
    transition: all 0.2s;
}

.search-input {
    flex: 2;
    min-width: 180px;
}

.search-input:focus, .date-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}

.sep {
    color: #94a3b8;
}

.btn-primary {
    background: #f59e0b;
    color: #0f172a;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #fcd34d;
    transform: translateY(-1px);
}

.btn-clear {
    background: #334155;
    color: #e2e8f0;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #475569;
}

/* Two column layout */
.two-columns {
    display: flex;
    gap: 40px;
    margin: 20px 0 40px;
}

.main-content {
    flex: 2.5;
}

.sidebar {
    flex: 1;
}

/* News cards (dark) */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card {
    background: #1e293b;
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
    border: 1px solid #334155;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.4);
    border-color: #f59e0b;
}

.news-card h2 {
    font-size: 1.55rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.news-card h2 a {
    color: #f1f5f9;
    text-decoration: none;
}

.news-card h2 a:hover {
    color: #f59e0b;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.source {
    background: #2d3a4f;
    color: #fcd34d;
    padding: 4px 12px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.75rem;
}

.date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.summary {
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #f1f5f9;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #475569;
    transition: all 0.2s;
}

.read-more:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #0f172a;
    transform: translateX(4px);
}

/* Pagination (dark) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 48px 0 20px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 12px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 40px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #0f172a;
}

.page-link.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #0f172a;
}

/* Sidebar widgets (dark) */
.widget {
    background: #1e293b;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid #334155;
}

.widget h3 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f59e0b;
    display: inline-block;
    color: #f1f5f9;
}

/* Weather widget – gradient background (original style) */
.multi-weather {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid #334155;
    border-radius: 24px;
    color: #e2e8f0;
}

.multi-weather h3 {
    color: white;
    border-bottom-color: #fcd34d;
}

.weather-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weather-card-compact {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.weather-card-compact:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fcd34d;
    transform: translateX(2px);
}

.weather-left {
    flex: 1;
}

.weather-city-compact {
    font-weight: 700;
    font-size: 1rem;
    color: #fcd34d;
    margin-bottom: 4px;
}

.weather-temp-compact {
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
}

.weather-right {
    text-align: right;
    flex-shrink: 0;
}

.weather-details-compact {
    font-size: 0.7rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.weather-details-compact div {
    white-space: nowrap;
}

.weather-card-compact.error {
    justify-content: center;
    text-align: center;
    padding: 10px;
}

/* Currency widget */
.multi-currency .currency-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.multi-currency .currency-item {
    padding: 8px 0;
    border-bottom: 1px solid #334155;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.multi-currency .currency-item:last-child {
    border-bottom: none;
}

/* Keywords widget */
.keywords {
    background: #1e293b;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.keyword-tag {
    background: #2d3a4f;
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #475569;
}

.keyword-tag:hover {
    background: #f59e0b;
    color: #0f172a;
    border-color: #f59e0b;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 32px 0;
    margin-top: 60px;
    font-size: 0.8rem;
    border-top: 1px solid #1e293b;
}

/* Responsive */
@media (max-width: 900px) {
    .two-columns {
        flex-direction: column;
    }
    .latest-grid-full {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .news-card {
        padding: 20px;
    }
    .news-card h2 {
        font-size: 1.3rem;
    }
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    .search-input, .date-input, .btn-primary, .btn-clear {
        width: 100%;
    }
    .sep {
        display: none;
    }
    .weather-card-compact {
        flex-direction: column;
        align-items: flex-start;
    }
    .weather-right {
        text-align: left;
        width: 100%;
    }
    .weather-details-compact div {
        white-space: normal;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar (dark) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #fcd34d;
}
