/* LeadsLeap Affiliate Program Review - Professional Styles */
:root {
  --primary: #0d47a1;
  --primary-dark: #002171;
  --primary-light: #5472d3;
  --accent: #00c853;
  --accent-dark: #009624;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1a202c;
  --text-muted: #4a5568;
  --border: #e2e8f0;
  --warning: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 8px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  color: #e0e7ff;
  text-decoration: none;
}

.logo span {
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

nav a {
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
}

nav a:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
}

.cta-nav {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 0.4rem 0.9rem !important;
}

.cta-nav:hover {
  background: var(--accent-dark) !important;
  color: white !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid white;
  color: white;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #0d47a1 100%);
  color: white;
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.25;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 1.75rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
  background: #e8eaf6;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  text-decoration: none;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 2.5rem 0;
}

@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .menu-toggle {
    display: block;
  }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--primary-dark);
    padding: 1rem;
    border-radius: var(--radius);
  }
  nav.active {
    display: flex;
  }
}

article {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

article h1 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

article h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border);
}

article h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin: 1.5rem 0 0.5rem;
}

article h4 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.4rem;
}

article p {
  margin-bottom: 1rem;
}

article ul, article ol {
  margin: 0 0 1.25rem 1.5rem;
}

article li {
  margin-bottom: 0.4rem;
}

article blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: #e3f2fd;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
}

.sidebar-card ul {
  list-style: none;
  margin: 0;
}

.sidebar-card li {
  margin-bottom: 0.5rem;
}

.sidebar-card a {
  font-size: 0.95rem;
}

/* Disclosure */
.disclosure {
  background: #fff8e1;
  border: 1px solid #ffecb3;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #5d4037;
}

.disclosure strong {
  color: #e65100;
}

/* CTA boxes */
.cta-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h3 {
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.cta-box p {
  margin-bottom: 1rem;
}

/* Form */
.email-form {
  background: #e3f2fd;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.email-form h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.email-form input[type="text"],
.email-form input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.email-form button {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.email-form button:hover {
  background: var(--primary-dark);
}

/* Clickthru buttons random style */
.clickthru {
  display: inline-block;
  margin: 0.5rem 0.25rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.clickthru:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white !important;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: #0a192f;
  color: #cbd5e1;
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: white;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-grid a {
  color: #94a3b8;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Compliance badges */
.compliance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0;
  font-size: 0.8rem;
}

.compliance span {
  background: #1e293b;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

th {
  background: var(--primary);
  color: white;
}

tr:nth-child(even) {
  background: #f1f5f9;
}

/* TOC */
.toc {
  background: #f1f5f9;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.toc h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.toc ol {
  margin-left: 1.25rem;
}

/* Alert boxes */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.alert-info {
  background: #e3f2fd;
  border-left: 4px solid var(--primary);
}

.alert-warning {
  background: #fff8e1;
  border-left: 4px solid var(--warning);
}

.alert-success {
  background: #e8f5e9;
  border-left: 4px solid var(--success);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

/* Long content helpers */
.highlight {
  background: #fffde7;
  padding: 0.1rem 0.3rem;
}

.stat-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat {
  flex: 1;
  min-width: 140px;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius);
}

.stat .number {
  font-size: 1.75rem;
  font-weight: 700;
  display: block;
}

.stat .label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Print / misc */
@media print {
  .site-header, .sidebar, .site-footer, .cta-box, .clickthru, .email-form {
    display: none;
  }
  .main-content {
    grid-template-columns: 1fr;
  }
}