/*
Theme Name: GeoFinance
Theme URI: https://geo-finance.com
Author: geo-finance.com
Description: Premium dark theme for geopolitical and financial analysis
Version: 1.0
*/

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

:root {
  --navy: #0d1b2e;
  --navy-light: #132238;
  --navy-border: rgba(100,160,220,0.15);
  --silver: #a8c4e0;
  --silver-light: #dce8f5;
  --silver-muted: rgba(220,232,245,0.45);
  --accent: #7eb8e8;
  --accent-dark: #5a9fd4;
  --text: #dce8f5;
  --text-muted: rgba(220,232,245,0.45);
  --border: rgba(100,160,220,0.15);
  --serif: 'DM Serif Display', serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,27,46,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--accent) !important;
  border: 0.5px solid var(--accent) !important;
  padding: 7px 18px !important;
  border-radius: 100px !important;
  font-size: 12px !important;
  letter-spacing: 0.05em !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: rgba(126,184,232,0.1) !important; }

/* HERO */
.hero {
  padding: 6rem 2rem 5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(100,160,220,0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0.5px solid rgba(126,184,232,0.25);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-accent {
  background: var(--accent);
  color: var(--navy);
  border: none;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.02em;
}

.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 0.5px solid var(--border);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 300;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--silver); }

/* STATS */
.stats-bar {
  max-width: 700px;
  margin: 4rem auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.stat {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 0.5px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-number {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* ARTICLES */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
}

.section-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.article-card {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.article-card:hover {
  border-color: rgba(126,184,232,0.4);
  transform: translateY(-2px);
}

.article-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  border: 0.5px solid;
}

.tag-mideast { background: rgba(200,170,100,0.1); color: #c8aa64; border-color: rgba(200,170,100,0.3); }
.tag-macro { background: rgba(100,160,220,0.1); color: var(--accent); border-color: rgba(126,184,232,0.3); }
.tag-energy { background: rgba(180,90,30,0.12); color: #e0854a; border-color: rgba(180,90,30,0.3); }
.tag-defense { background: rgba(100,60,140,0.12); color: #b07ad4; border-color: rgba(100,60,140,0.3); }
.tag-europe { background: rgba(60,140,100,0.12); color: #5dca9e; border-color: rgba(60,140,100,0.3); }
.tag-asia { background: rgba(180,40,40,0.12); color: #e07a7a; border-color: rgba(180,40,40,0.3); }

.article-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.article-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-weight: 300;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(220,232,245,0.3);
}

.free-badge {
  background: rgba(100,160,220,0.1);
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  border: 0.5px solid rgba(126,184,232,0.3);
}

.lock-badge {
  background: rgba(200,170,100,0.1);
  color: #c8aa64;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  border: 0.5px solid rgba(200,170,100,0.3);
}

/* SINGLE POST */
.post-container {
  max-width: 720px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.post-header { margin-bottom: 3rem; }

.post-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 400;
  color: var(--text);
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
}

.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.post-content h1,
.post-content h2,
.post-content h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.post-content h1 { font-size: 32px; }
.post-content h2 { font-size: 26px; }
.post-content h3 { font-size: 20px; }

.post-content p { margin-bottom: 1.2rem; color: var(--text-muted); }
.post-content strong { font-weight: 500; color: var(--text); }

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.post-content li { margin-bottom: 0.5rem; color: var(--text-muted); }

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 15px;
}

.post-content th {
  background: rgba(126,184,232,0.1);
  color: var(--accent);
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  border-bottom: 0.5px solid var(--border);
}

.post-content td {
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-muted);
}

.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* NEWSLETTER */
.newsletter-section {
  background: rgba(126,184,232,0.04);
  border-top: 0.5px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.newsletter-section h2 {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.newsletter-section h2 em { color: var(--accent); font-style: italic; }

.newsletter-section p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 0.5px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder { color: rgba(220,232,245,0.25); }
.newsletter-form input:focus { border-color: var(--accent); }

.btn-navy {
  background: var(--accent);
  color: var(--navy);
  border: none;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--sans);
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-navy:hover { background: var(--accent-dark); }

.newsletter-note {
  font-size: 12px;
  color: rgba(220,232,245,0.25);
}

/* FOOTER */
footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-muted);
}

footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; }

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 0.5px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .nav-links { display: none; }
  .newsletter-form { flex-direction: column; }
}
