/* ============================================================
   TrumpBot.online — Bloomberg-Style CSS
   No external dependencies. System fonts only.
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --navy:        #003580;
  --navy-dark:   #002060;
  --blue:        #0066cc;
  --blue-hover:  #0052a3;
  --text:        #1a1a2e;
  --text-light:  #4a4a6a;
  --bg:          #f8f9fa;
  --white:       #ffffff;
  --border:      #e0e6ef;
  --border-dark: #c8d4e8;
  --success:     #00a651;
  --danger:      #cc2200;
  --card-shadow: 0 2px 12px rgba(0, 53, 128, 0.08);
  --card-shadow-hover: 0 6px 24px rgba(0, 53, 128, 0.16);
  --font-stack:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:   'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  --radius:      6px;
  --radius-lg:   10px;
  --transition:  0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-hover);
}

ul {
  list-style: none;
}

code {
  font-family: var(--font-mono);
  background: #eef2f8;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.875em;
  color: var(--navy);
}

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Utility ──────────────────────────────────────────────── */
.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  box-shadow: 0 2px 16px rgba(0, 53, 128, 0.10);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links li a {
  display: block;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-links li a:hover {
  background: var(--bg);
  color: var(--navy);
}

.nav-links li a.nav-lang {
  background: var(--navy);
  color: var(--white);
  padding: 5px 12px;
  border-radius: var(--radius);
}

.nav-links li a.nav-lang:hover {
  background: var(--blue);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--bg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px 60px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: #fff0f0;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid #ffcccc;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  font-family: var(--font-stack);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.30);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.40);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Ticker Bar ───────────────────────────────────────────── */
.ticker-bar {
  background: var(--navy-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  height: 44px;
  overflow: hidden;
  user-select: none;
}

.ticker-label {
  flex-shrink: 0;
  background: var(--danger);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 2;
}

.ticker-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  padding: 0 18px;
  letter-spacing: 0.02em;
  color: #c8d8f0;
}

.ticker-item .price {
  color: var(--white);
  font-weight: 600;
}

.ticker-item .up {
  color: #4adb7a;
}

.ticker-item .down {
  color: #ff6b6b;
}

.ticker-sep {
  color: #445577;
  padding: 0 4px;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 72px 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition),
              border-left-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
  border-left-color: var(--navy);
}

.feature-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition), color var(--transition);
}

.card-link:hover {
  color: var(--navy);
  gap: 8px;
}

/* ============================================================
   ARTICLE SECTIONS
   ============================================================ */
.articles {
  padding: 72px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.article-section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}

.article-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.article-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.article-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 52px;
  height: 2px;
  background: var(--blue);
}

.article-list li {
  border-bottom: 1px solid var(--border);
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition), background var(--transition),
              padding-left var(--transition);
  border-radius: var(--radius);
}

.article-list li a:hover {
  color: var(--blue);
  padding-left: 10px;
}

.article-list li a:hover .article-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-title {
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.4;
}

.article-arrow {
  color: var(--blue);
  font-size: 1rem;
  flex-shrink: 0;
  margin-left: 12px;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.article-list li a:hover .article-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 72px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--card-shadow);
}

.faq-item[open] {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.12);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--blue);
  background: #eef4ff;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(0deg);
  background: var(--blue);
  color: var(--white);
}

.faq-item summary:hover {
  background: #f5f8ff;
}

.faq-answer {
  padding: 4px 22px 20px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  animation: faq-open 0.22s ease;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer strong {
  color: var(--text);
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: #a8bed8;
  padding: 52px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-brand .footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #7a94b8;
  max-width: 300px;
}

.footer-nav h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav ul li a {
  font-size: 0.875rem;
  color: #7a94b8;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav ul li a:hover {
  color: var(--white);
}

/* Language links */
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-langs a {
  font-size: 0.82rem;
  color: #7a94b8;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-langs a:hover {
  color: var(--white);
}

.footer-langs span {
  color: #334466;
  font-size: 0.75rem;
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.disclaimer {
  font-size: 0.78rem;
  color: #556680;
  line-height: 1.5;
}

.copyright {
  font-size: 0.78rem;
  color: #556680;
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Nav mobile */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--navy);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 4px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .nav-header {
    position: sticky;
  }

  /* Hero */
  .hero-inner {
    padding: 48px 20px 44px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Ticker */
  .ticker-bar {
    height: 40px;
  }

  .ticker-label {
    padding: 0 12px;
    font-size: 0.68rem;
  }

  .ticker-track {
    font-size: 0.76rem;
  }

  /* Features */
  .features {
    padding: 48px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 22px 18px;
  }

  /* Section titles */
  .section-title {
    font-size: 1.5rem;
  }

  /* Articles */
  .articles {
    padding: 48px 0;
  }

  .article-section h2 {
    font-size: 1.2rem;
  }

  .article-title {
    font-size: 0.9rem;
  }

  /* FAQ */
  .faq {
    padding: 48px 0;
  }

  .faq-item summary {
    font-size: 0.9rem;
    padding: 15px 16px;
  }

  .faq-answer {
    padding: 4px 16px 16px;
    font-size: 0.88rem;
  }

  /* Footer */
  .footer {
    padding: 40px 0 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-langs {
    gap: 6px;
  }

  .footer-bottom {
    gap: 4px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .container {
    padding: 0 16px;
  }
}
