/* ==========================================================================
   BrokerSearch.net - Modern Fintech Design System (2026)
   Clean, high-converting, professional comparison layout
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-soft: #f0f9ff;
  --primary-border: #bae6fd;
  
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-green-soft: #ecfdf5;
  
  --accent-red: #ef4444;
  --accent-red-soft: #fef2f2;
  --accent-red-border: #fecaca;
  
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border: #e2e8f0;
  --border-focus: #94a3b8;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.925rem;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-app-btn {
  background-color: var(--primary);
  color: var(--text-white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  transition: background-color 0.15s ease;
}

.nav-app-btn:hover {
  background-color: var(--primary-hover);
}

/* ==========================================================================
   Hero & Search Section
   ========================================================================== */

.hero {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-white);
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.75px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.05rem;
}

.search-box input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 3rem;
  font-size: 0.975rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   Main Layout & Grid
   ========================================================================== */

.page-layout {
  padding: 2.5rem 0 5rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--primary);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* ==========================================================================
   Filter Controls
   ========================================================================== */

.controls-panel {
  margin-bottom: 1.5rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
}

.cat-btn.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Valerie Vance Editorial Standard Box
   ========================================================================== */

.auditor-callout {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.auditor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.auditor-avatar {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.auditor-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-hover);
}

.auditor-callout p {
  font-size: 0.925rem;
  color: #334155;
  line-height: 1.55;
  font-style: italic;
}

/* ==========================================================================
   Single Review Header Card & Article Styles
   ========================================================================== */

.review-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-xs);
}

.review-hero-box {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
}

.review-hero-box h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0.35rem 0 0.5rem;
  color: var(--text-main);
}

.review-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.review-meta-bar strong {
  color: var(--text-main);
}

.quick-stats-card {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-cell .stat-label {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.stat-cell .stat-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-cell .stat-val.highlight {
  color: var(--primary);
}

.direct-cta-banner {
  background: var(--accent-green-soft);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.direct-cta-banner h4 {
  font-size: 1rem;
  color: #14532d;
  margin-bottom: 2px;
}

.direct-cta-banner p {
  font-size: 0.85rem;
  color: #166534;
}

.compliance-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* Review Section Headings & Text */
.review-content-section {
  margin-bottom: 2.5rem;
}

.review-content-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-content-section p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Tables for Fee Audits */
.table-container {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.audit-table th {
  background: var(--bg-body);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.audit-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: #334155;
}

.audit-table tr:last-child td {
  border-bottom: none;
}

.audit-table td strong {
  color: var(--text-main);
}

/* Pros and Cons Box */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.pro-box {
  background: var(--accent-green-soft);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.con-box {
  background: var(--accent-red-soft);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.pro-box h4 {
  color: #14532d;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.con-box h4 {
  color: #991b1b;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pros-cons-grid ul {
  list-style: none;
}

.pros-cons-grid li {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.pro-box li {
  color: #166534;
}

.con-box li {
  color: #991b1b;
}

.pro-box li::before {
  content: "✓ ";
  font-weight: 800;
}

.con-box li::before {
  content: "✗ ";
  font-weight: 800;
}

/* Final Verdict Card */
.verdict-card {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2rem 0;
}

.verdict-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.verdict-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.verdict-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.verdict-item h5 {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verdict-item.good h5 {
  color: #4ade80;
}

.verdict-item.bad h5 {
  color: #f87171;
}

.verdict-item p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Broker Directory Cards (Hub)
   ========================================================================== */

.broker-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.broker-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 200px 1fr 170px;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.broker-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.broker-brand h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.stars {
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 700;
}

.rating-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.broker-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 1.25rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.spec-cell .spec-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.spec-cell .spec-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.broker-highlight {
  font-size: 0.825rem;
  color: #166534;
  background: var(--accent-green-soft);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.broker-action-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}

.btn-cta-primary {
  background: var(--accent-green);
  color: var(--text-white);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.15s ease;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-cta-primary:hover {
  background: var(--accent-green-hover);
}

.btn-cta-secondary {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.btn-cta-secondary:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================
   Bridge Funnel App Banner
   ========================================== */

.app-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: var(--text-white);
  padding: 2rem 2.25rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-md);
}

.banner-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.banner-content p {
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.5;
}

.banner-btn {
  background: var(--text-white);
  color: var(--text-main);
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  font-size: 0.9rem;
  transition: background-color 0.15s ease, transform 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.banner-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

/* ==========================================
   Sidebar Widgets
   ========================================== */

.term-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 88px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-xs);
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.sidebar-widget p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.match-widget {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-white);
  border-color: #334155;
}

.match-widget h3 {
  color: var(--text-white);
}

.match-widget p {
  color: var(--text-light);
}

.widget-btn {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--text-white);
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: background-color 0.15s ease;
}

.widget-btn:hover {
  background: var(--primary-hover);
}

.partner-widget {
  background: var(--amber-soft);
  border: 1px solid #fde68a;
}

.partner-widget h4 {
  font-size: 0.95rem;
  color: #92400e;
  margin-bottom: 0.4rem;
}

.partner-widget p {
  color: #78350f;
}

.partner-disclosure {
  font-size: 0.7rem;
  color: #92400e;
  margin-top: 0.6rem;
  line-height: 1.35;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 0.55rem;
}

.sidebar-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s ease;
}

.sidebar-links a:hover {
  color: var(--primary);
}

/* ==========================================
   Footer
   ========================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.5rem;
  max-width: 320px;
  line-height: 1.5;
}

.footer-col h5 {
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.775rem;
  line-height: 1.6;
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */

@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .term-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links a:not(.nav-app-btn) {
    display: none;
  }
  .broker-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .broker-details {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .quick-stats-card {
    grid-template-columns: 1fr 1fr;
  }
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  .verdict-grid {
    grid-template-columns: 1fr;
  }
  .app-banner {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}