@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-display: 'Space Mono', monospace;
  --font-body: 'IBM Plex Sans', sans-serif;
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-hover: #1a1a1a;
  --text: #e8e8e8;
  --text-muted: #888;
  --border: #222;
  --radius: 6px;
  --accent: #10B981;
  --accent-dim: rgba(16,185,129,0.15);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* HERO */
.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero h1 span { color: var(--accent); }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* TOOL SECTION */
.tool-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* FILTERS */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-group { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.search-input, .filter-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.search-input { width: 220px; }
.search-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--accent);
}
.range-display {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent);
}
input[type="range"] {
  -webkit-appearance: none;
  background: var(--border);
  height: 4px;
  border-radius: 2px;
  width: 160px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

/* TAG CHIPS */
.tag-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; max-width: 400px; }
.tag-chip {
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tag-chip.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* TABLE */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.model-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.model-table th {
  background: var(--bg-card);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  position: relative;
}
.model-table th:hover { color: var(--text); }
.model-table th .sort-arrow { margin-left: 0.3rem; font-size: 0.7rem; }
.model-table th .sort-arrow.active { color: var(--accent); }
.model-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.model-table tbody tr { transition: background 0.1s; }
.model-table tbody tr:hover { background: var(--bg-hover); }
.model-table tbody tr.expanded { background: var(--bg-card); }
.model-table tbody tr { cursor: pointer; }

.tag-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-size: 0.7rem;
  background: var(--accent-dim);
  color: var(--accent);
  margin-right: 0.25rem;
  font-weight: 500;
}

/* EXPANDED ROW */
.detail-row td { padding: 0; }
.detail-content {
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 2px solid var(--accent);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.85rem;
}
.detail-content dt { color: var(--text-muted); font-weight: 500; }
.detail-content dd { margin-bottom: 0.5rem; }
.detail-content a { color: var(--accent); }

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ============================================
   FOOTER — V14 STANDARDIZED
   Do NOT modify individual properties per site.
   This CSS is identical across all 18 domains.
   ============================================ */
.site-footer {
    border-top: 1px solid var(--border, rgba(255,255,255,0.08));
    margin-top: 4rem;
    padding: 0;
}
.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
}
.footer-brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text, #e4e2f0);
    letter-spacing: -0.01em;
}
.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-dim, #666);
    margin-top: 0.3rem;
    margin-bottom: 1.5rem;
}
.footer-cta {
    display: inline-block;
    padding: 0.6rem 1.75rem;
    border: 1.5px solid var(--accent, #34d399);
    border-radius: 6px;
    color: var(--accent, #34d399);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.footer-cta:hover {
    background: var(--accent, #34d399);
    color: #000;
    text-decoration: none;
}
.footer-copy {
    font-size: 0.7rem;
    color: var(--text-dim, #555);
    margin-top: 1.25rem;
}
.footer-copy a {
    color: inherit;
    text-decoration: none;
}
.footer-copy a:hover {
    text-decoration: underline;
}
.zovo-network {
    border-top: 1px solid var(--border, rgba(255,255,255,0.08));
    padding: 2rem 2rem 3rem;
    text-align: center;
}
.zovo-network-inner {
    max-width: 720px;
    margin: 0 auto;
}
.zovo-network-title {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text, #e4e2f0);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 1rem;
}
.zovo-network-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.25rem;
}
.zovo-network-links a {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
    line-height: 1.9;
}
.zovo-network-links a:hover {
    color: var(--accent, #34d399);
}
@media (max-width: 640px) {
    .footer-inner {
        padding: 2.5rem 1.5rem 1.5rem;
    }
    .footer-cta {
        padding: 0.55rem 1.25rem;
        font-size: 0.8rem;
    }
    .zovo-network {
        padding: 1.5rem 1.5rem 2.5rem;
    }
    .zovo-network-links {
        gap: 0.3rem 1rem;
    }
    .zovo-network-links a {
        font-size: 0.72rem;
    }
}

/* PAGES */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.page-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}
.page-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}
.page-content p { margin-bottom: 1rem; color: var(--text); }
.page-content ul, .page-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.page-content li { margin-bottom: 0.35rem; }
.page-content code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.85em;
}
.page-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}
.page-content pre code { padding: 0; background: none; }
.page-content img { max-width: 100%; border-radius: var(--radius); }

.blog-list { list-style: none; padding: 0; }
.blog-list li {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.blog-list li:hover { border-color: var(--accent); }
.blog-list h3 { margin: 0 0 0.35rem; }
.blog-list p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }
.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* License Compatibility Checker */
.license-detail {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lic-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(34,34,34,0.5);
  font-size: 0.85rem;
}
.lic-label {
  color: var(--text-muted);
  font-weight: 500;
}
.lic-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.compare-btn {
  margin-top: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.compare-btn:hover { background: var(--accent); color: #fff; }
.license-compare-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* FAQ Section */
.faq-section {
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}
.faq-section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: '+'; color: var(--accent); font-size: 1.2rem; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  display: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-top: 0.5rem;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .filters { flex-direction: column; align-items: stretch; }
  .search-input { width: 100%; }
  input[type="range"] { width: 100%; }
  .tag-chips { max-width: 100%; }
  .detail-content { grid-template-columns: 1fr; }
  .nav { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .tool-section { padding: 0 1rem; }
}


/* === V5: Nav Pro + Zovo Tools === */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-pro {
  background: var(--accent);
  color: #000 !important;
  padding: 5px 13px;
  border-radius: var(--radius, 6px);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-pro:hover {
  opacity: 0.85;
}

.nav-zovo {
  color: var(--text-muted, #888) !important;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-zovo:hover {
  color: var(--text, #e8e8e8) !important;
}

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


/* === V5: Pro Nudge === */
.pro-nudge {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--accent-dim, rgba(110, 231, 183, 0.06));
  border: 1px solid var(--accent, #6ee7b7);
  border-radius: var(--radius, 8px);
  animation: v5-nudge-in 0.3s ease;
}

.pro-nudge-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pro-nudge-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.pro-nudge-text {
  font-size: 0.88rem;
  color: var(--text-muted, #888);
  line-height: 1.55;
}

.pro-nudge-text strong {
  color: var(--text, #e8e8e8);
}

.pro-nudge-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

@keyframes v5-nudge-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
