/* Module Masters - Modern Static Site Styles */

:root {
  --primary: #1a3a6b;       /* deep blue (used for headings, links, etc.) */
  --nav-bg:  #1e2535;       /* dark charcoal-navy — header background */
  --accent:  #c8102e;       /* Module Masters red */
  --accent-light: #e63950;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-muted: #666;
  --border: #dde2ea;
  --shadow: 0 2px 12px rgba(0,0,0,0.09);
  --radius: 8px;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

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

/* ── NAV ─────────────────────────────────────── */
.site-header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  /* drop-shadow so colors pop against the dark nav */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.93rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}

.hero img.hero-logo {
  height: 90px;
  margin-bottom: 16px;
  /* white outline to make logo pop on blue hero */
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.5)) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto;
}

/* ── MAIN CONTAINER ───────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-content {
  padding: 48px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── HOME TWO-COL ─────────────────────────────── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .home-grid { grid-template-columns: 1fr; }
}

/* ── CARDS ────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  border: 1px solid var(--border);
}

.card h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card h2 img { height: 40px; }

.card .date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card p { margin-bottom: 12px; }

/* ── SIDEBAR ──────────────────────────────────── */
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-about {
  padding: 24px;
}

.sidebar-about p { font-size: 0.93rem; margin-bottom: 10px; color: var(--text); }
.sidebar-about a { color: var(--accent); }

/* ── QUICK LINKS ──────────────────────────────── */
.quick-links {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
}

.quick-links-header {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}

.quick-link-item:last-child { border-bottom: none; }
.quick-link-item:hover { background: #f0f4ff; text-decoration: none; }
.quick-link-item img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.quick-link-item .ql-text { font-size: 0.9rem; line-height: 1.4; }
.quick-link-item .ql-text strong:first-child { display: block; color: var(--primary); margin-bottom: 2px; }
.quick-link-item .ql-text strong { color: var(--primary); }

/* ── PRODUCT HERO ─────────────────────────────── */
.product-hero {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.product-hero img.product-img { width: 120px; flex-shrink: 0; border-radius: 6px; }
.product-hero .product-text h1 { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.product-hero .product-text p { margin-bottom: 10px; }
.product-hero .product-text .callout {
  background: #eef4ff;
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  margin-top: 12px;
}

@media (max-width: 600px) {
  .product-hero { flex-direction: column; }
  .product-hero img.product-img { width: 80px; }
}

/* ── FEATURES ─────────────────────────────────── */
.section-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.section-block h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.section-block h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 20px 0 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.feature-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 0.93rem;
  line-height: 1.5;
}

.feature-item::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-item .new-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 4px;
  vertical-align: middle;
}

/* ── SCREENSHOTS ──────────────────────────────── */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.screenshot-item {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.screenshot-item img { width: 100%; display: block; }
.screenshot-item figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #fafbfc;
}

/* ── REQUIREMENTS ─────────────────────────────── */
.req-list {
  list-style: none;
  padding: 0;
}
.req-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--border);
}
.req-list li:last-child { border-bottom: none; }
.req-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ── DEPRECATED NOTICE ────────────────────────── */
.notice {
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.93rem;
}
.notice-warning {
  background: #fff8e1;
  border-left: 4px solid #f0ad00;
  color: #7a5800;
}
.notice-info {
  background: #e8f4fd;
  border-left: 4px solid var(--primary);
  color: var(--primary);
}

/* ── COMPARISON TABLE ─────────────────────────── */
.comparison-img {
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 16px 0;
  box-shadow: var(--shadow);
}

/* ── FOOTER ───────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.88rem;
  margin-top: 48px;
}

.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
