/*
Theme Name: FinNews Pro
Description: Financial news with context. High-contrast, data-driven aesthetic.
Version: 1.0
Author: Assistant
*/

:root {
  /* Palette: Bloomberg Dark */
  --color-bg: #050A14;
  --color-surface: #0F1623;
  --color-text: #E2E8F0;
  --color-text-muted: #94A3B8;
  
  --color-accent-1: #00FF94; /* Neon Green (Growth) */
  --color-accent-2: #3B82F6; /* Electric Blue (Info) */
  --color-border: #1E293B;
  
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  --spacing-container: 2rem;
  --border-radius: 4px; /* Sharper corners for finance feel */
  
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(5, 10, 20, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-logo span {
  color: var(--color-accent-2);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.main-nav a:hover {
  color: #fff;
}

/* HERO SECTION */
.hero-section {
  padding: 8rem 0 6rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.hero-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent-2);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}

.hero-title span {
  color: var(--color-accent-1);
}

.hero-desc {
  max-width: 600px;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-accent-1);
  padding-left: 1.5rem;
}

/* TICKER TAPE (Visual Decor) */
.ticker-wrap {
  overflow: hidden;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ABOUT / MISSION GRID */
.about-section {
  padding: 6rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: flex-start;
}

.info-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.info-text p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--color-surface);
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: transform 0.2s;
}

.stat-card:hover {
  border-color: var(--color-accent-2);
  transform: translateY(-5px);
}

.stat-card h3 {
  color: var(--color-accent-2);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* NEWS FEED */
.news-section {
  padding: 6rem 0;
  background: var(--color-surface);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  color: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.news-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.news-item:hover {
  border-color: var(--color-accent-1);
}

.news-thumb {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.news-item:hover .news-thumb img {
  transform: scale(1.05);
}

.news-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  font-size: 0.75rem;
  color: var(--color-accent-1);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.news-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more::after {
  content: '→';
  color: var(--color-accent-1);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  background: #020408;
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  max-width: 300px;
}

.footer-nav h4 {
  font-size: 1rem;
  color: var(--color-accent-2);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.footer-nav ul li {
  margin-bottom: 0.75rem;
  list-style: none;
}

.footer-nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

/* PAGINATION */
.pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 700;
  font-family: var(--font-heading);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--color-accent-2);
  color: #fff;
  border-color: var(--color-accent-2);
}

/* Single & Page */
.page-hero {
  padding: 6rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 900px;
}

.content-body {
  max-width: 800px;
  margin: 4rem 0;
  font-size: 1.15rem;
}

.content-body p { margin-bottom: 1.5rem; }
.content-body h2 { font-size: 2rem; margin: 3rem 0 1.5rem; color: var(--color-accent-1); }
.content-body ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.content-body li { margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.5rem; }
  .news-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 1rem; }
  .main-nav ul { gap: 1rem; font-size: 0.8rem; }
}
