/*
Theme Name: MyFirstBroker Child
Template: generatepress
Description: Child theme for myfirstbroker.com — Beginner Investment Guide
Version: 1.0
Author: MyFirstBroker
*/

/* =====================
   TOKENS
   ===================== */
:root {
  --navy:      #0B1F3A;
  --blue:      #1A56DB;
  --blue-soft: #EBF2FF;
  --green:     #0E9F6E;
  --green-soft:#ECFDF5;
  --gold:      #F59E0B;
  --gray-100:  #F9FAFB;
  --gray-200:  #F3F4F6;
  --gray-400:  #9CA3AF;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --white:     #FFFFFF;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* =====================
   BASE
   ===================== */
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

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

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

/* =====================
   HEADER
   ===================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.site-branding .site-title a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.site-branding .site-title a span {
  color: var(--blue);
}

/* NAV */
.main-navigation a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: .5rem .85rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.main-navigation a:hover {
  background: var(--blue-soft);
  color: var(--blue);
  text-decoration: none;
}

/* =====================
   HERO (front-page)
   ===================== */
.mfb-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1A3560 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.mfb-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 760px;
  margin: 0 auto .75rem;
}
.mfb-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.mfb-hero .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white) !important;
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  transition: background .15s, transform .1s;
  text-decoration: none !important;
}
.btn-primary:hover {
  background: #1447c0;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue) !important;
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  transition: all .15s;
  text-decoration: none !important;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white) !important;
}

/* =====================
   BROKER COMPARISON CARDS
   ===================== */
.broker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.broker-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.broker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}
.broker-card.featured {
  border: 2px solid var(--blue);
}
.broker-card .best-for {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .75rem;
}
.broker-card.featured .best-for {
  background: var(--blue);
  color: var(--white);
}
.broker-card h3 {
  font-size: 1.2rem;
  margin: 0 0 .4rem;
}
.broker-card .rating {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: .6rem;
}
.broker-card .stat-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 1.25rem;
  font-size: .875rem;
  color: var(--gray-700);
}
.broker-card .stat-list li {
  padding: .3rem 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
}
.broker-card .stat-list li:last-child { border-bottom: none; }
.broker-card .stat-list strong { color: var(--gray-900); }

/* =====================
   PROS / CONS
   ===================== */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.pros, .cons {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.pros { border-top: 3px solid var(--green); }
.cons { border-top: 3px solid #EF4444; }
.pros h4, .cons h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .75rem; }
.pros h4 { color: var(--green); }
.cons h4 { color: #EF4444; }
.pros ul, .cons ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; color: var(--gray-700); }
.pros ul li, .cons ul li { margin-bottom: .4rem; }

/* =====================
   COMPARISON TABLE
   ===================== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comparison-table thead tr {
  background: var(--navy);
  color: var(--white);
}
.comparison-table thead th {
  padding: .85rem 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .03em;
}
.comparison-table tbody tr:nth-child(even) { background: var(--gray-100); }
.comparison-table tbody tr:hover { background: var(--blue-soft); }
.comparison-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}
.comparison-table td:first-child { font-weight: 600; color: var(--gray-900); }
.check { color: var(--green); font-weight: 700; }
.cross { color: #EF4444; }

/* =====================
   INFO BOXES
   ===================== */
.info-box {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
  color: var(--gray-700);
}
.info-box strong { color: var(--navy); display: block; margin-bottom: .25rem; }

.tip-box {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
  color: var(--gray-700);
}
.tip-box strong { color: #065F46; display: block; margin-bottom: .25rem; }

/* =====================
   ARTICLE / CONTENT
   ===================== */
.entry-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gray-200);
}
.entry-content h3 { font-size: 1.2rem; margin: 1.75rem 0 .75rem; }
.entry-content p { margin-bottom: 1.25rem; color: var(--gray-700); }

/* TOC */
.ez-toc-container {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.ez-toc-container .ez-toc-title { font-family: var(--font-display); font-size: 1rem; color: var(--navy); }

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--white); }
.footer-disclaimer {
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  font-size: .8rem;
  line-height: 1.6;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 640px) {
  .pros-cons { grid-template-columns: 1fr; }
  .broker-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: .8rem; }
  .comparison-table td, .comparison-table th { padding: .6rem .75rem; }
  .mfb-hero { padding: 3rem 1rem 2.5rem; }
}
