/*
 * css/features.css
 * ─────────────────────────────────────────────────────────────
 * Page-specific styles for each feature section.
 * Organized in the same order as the sidebar navigation.
 * ─────────────────────────────────────────────────────────────
 */


/* ════════════════════════════════════════
   GUIDE PAGE
════════════════════════════════════════ */
.guide-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.guide-hero-title { font-family: 'DM Serif Display', serif; font-size: 24px; margin-bottom: 8px; }
.guide-hero-desc  { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }

.guide-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 6px;
  margin-bottom: 6px;
  background: rgba(200,240,96,0.1);
  color: var(--accent);
  border: 1px solid rgba(200,240,96,0.2);
}

.guide-section-title {
  font-size: 11px;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-family: 'DM Mono', monospace;
  margin: 20px 0 10px;
}

.guide-feature {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.guide-feature-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }
.guide-feature-name { font-size: 14px; font-weight: 500; color: var(--text); }
.guide-feature-desc { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

.guide-example {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.guide-example-label { font-size: 11px; color: var(--accent); font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.guide-example-text  { font-size: 14px; color: var(--text); line-height: 1.6; }

/* FAQ accordion */
.guide-faq { margin-bottom: 8px; }
.guide-faq-q {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.15s;
}
.guide-faq-q:hover             { border-color: var(--border2); }
.guide-faq-q.open              { border-color: var(--accent); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.guide-faq-a {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--accent);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  display: none;
}
.guide-faq-a.open { display: block; }
.faq-arrow        { font-size: 12px; transition: transform 0.2s; }
.guide-faq-q.open .faq-arrow { transform: rotate(180deg); }


/* ════════════════════════════════════════
   INVOICES PAGE
════════════════════════════════════════ */
.inv-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.inv-row:hover { border-color: var(--border2); }

.inv-num    { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--accent); min-width: 80px; }
.inv-client { flex: 1; font-size: 14px; }
.inv-desc   { font-size: 12px; color: var(--muted); }
.inv-amount { font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 500; min-width: 90px; text-align: right; }
.inv-status { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; min-width: 70px; text-align: center; }
.inv-actions { display: flex; gap: 6px; }

/* Status badge colors */
.status-paid    { background: rgba(200,240,96,0.15); color: var(--accent); }
.status-pending { background: rgba(255,200,60,0.15); color: #ffc83c; }
.status-draft   { background: rgba(255,255,255,0.07); color: var(--muted); }

/* ── Invoice print preview (white background) ── */
.invoice-preview {
  background: #fff;
  color: #111;
  border-radius: var(--radius-lg);
  padding: 48px;
  font-family: 'Outfit', sans-serif;
  line-height: 1.5;
}
.inv-header        { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.inv-brand         { font-family: 'DM Serif Display', serif; font-size: 28px; color: #111; }
.inv-brand-sub     { font-size: 12px; color: #888; margin-top: 2px; }
.inv-badge         { background: #0f0f11; color: #c8f060; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-family: 'DM Mono', monospace; font-weight: 500; text-align: right; }
.inv-badge-num     { font-size: 18px; font-weight: 600; color: #fff; display: block; }
.inv-parties       { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.inv-party-label   { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #aaa; font-family: 'DM Mono', monospace; margin-bottom: 6px; }
.inv-party-name    { font-size: 16px; font-weight: 600; color: #111; }
.inv-party-detail  { font-size: 13px; color: #555; }
.inv-table         { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.inv-table th      { text-align: left; padding: 8px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #aaa; border-bottom: 1px solid #e5e5e5; font-family: 'DM Mono', monospace; }
.inv-table td      { padding: 12px 12px; font-size: 14px; border-bottom: 1px solid #f0f0f0; color: #333; }
.inv-table td:last-child  { text-align: right; font-family: 'DM Mono', monospace; font-weight: 500; }
.inv-table th:last-child  { text-align: right; }
.inv-totals        { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-bottom: 32px; }
.inv-total-row     { display: flex; gap: 32px; font-size: 14px; color: #555; }
.inv-total-row.grand { font-size: 18px; font-weight: 600; color: #111; border-top: 2px solid #111; padding-top: 8px; margin-top: 4px; }
.inv-total-row span:last-child { font-family: 'DM Mono', monospace; min-width: 100px; text-align: right; }
.inv-notes-section { background: #f8f8f8; border-radius: 10px; padding: 16px 20px; }
.inv-notes-label   { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #aaa; font-family: 'DM Mono', monospace; margin-bottom: 6px; }
.inv-notes-text    { font-size: 13px; color: #555; }


/* ════════════════════════════════════════
   RESOURCES PAGE
════════════════════════════════════════ */
.res-category { margin-bottom: 32px; }
.res-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.res-category-icon  { font-size: 18px; }
.res-category-title { font-size: 16px; font-weight: 500; color: var(--text); }
.res-category-desc  { font-size: 12px; color: var(--muted); margin-left: auto; }

.res-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.res-card:hover { border-color: var(--border2); background: var(--surface2); }

.res-rank        { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted2); min-width: 20px; flex-shrink: 0; margin-top: 3px; }
.res-rank.gold   { color: #f0c040; }
.res-rank.silver { color: #aaa; }
.res-rank.bronze { color: #cd7f32; }

.res-body      { flex: 1; }
.res-name-row  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.res-name      { font-size: 14px; font-weight: 500; color: var(--text); }
.res-badge     { font-size: 10px; padding: 2px 7px; border-radius: 20px; font-family: 'DM Mono', monospace; }
.badge-free     { background: rgba(200,240,96,0.12); color: var(--accent); }
.badge-paid     { background: rgba(96,184,240,0.12); color: var(--info); }
.badge-freemium { background: rgba(255,200,60,0.12); color: #ffc83c; }
.badge-rec      { background: rgba(200,240,96,0.2); color: var(--accent); border: 1px solid rgba(200,240,96,0.3); }
.res-desc      { font-size: 13px; color: var(--muted); line-height: 1.5; }
.res-why       { font-size: 12px; color: var(--accent); margin-top: 4px; }
.res-link-icon { color: var(--muted2); font-size: 12px; flex-shrink: 0; margin-top: 4px; }


/* ════════════════════════════════════════
   SAAS IDEAS PAGE
════════════════════════════════════════ */
.saas-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.saas-card:hover { border-color: var(--border2); }

.saas-top       { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.saas-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.saas-title     { font-size: 16px; font-weight: 500; color: var(--text); }

.saas-difficulty  { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-family: 'DM Mono', monospace; }
.diff-easy        { background: rgba(200,240,96,0.12); color: var(--accent); }
.diff-medium      { background: rgba(255,200,60,0.12); color: #ffc83c; }
.diff-hard        { background: rgba(96,184,240,0.12); color: var(--info); }

.saas-status-btn {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.saas-status-btn:hover   { border-color: var(--accent); color: var(--accent); }
.saas-status-btn.planned  { background: rgba(255,255,255,0.05); color: var(--muted); }
.saas-status-btn.building { background: rgba(255,200,60,0.12); color: #ffc83c; border-color: rgba(255,200,60,0.3); }
.saas-status-btn.launched { background: rgba(200,240,96,0.12); color: var(--accent); border-color: rgba(200,240,96,0.3); }

.saas-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.saas-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.saas-meta-item  { display: flex; flex-direction: column; gap: 2px; }
.saas-meta-label { font-size: 10px; color: var(--muted2); font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.saas-meta-value { font-size: 13px; color: var(--text); font-weight: 500; }
.saas-meta-value.green { color: var(--accent); }
.saas-who        { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.saas-who span   { color: var(--text); }

/* Summary cards at top of SaaS page */
.saas-summary    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.saas-sum-card   { background: var(--surface2); border-radius: var(--radius); padding: 12px 14px; text-align: center; }
.saas-sum-num    { font-family: 'DM Serif Display', serif; font-size: 26px; color: var(--accent); }
.saas-sum-label  { font-size: 11px; color: var(--muted); margin-top: 2px; }


/* ════════════════════════════════════════
   PORTFOLIO PAGE
════════════════════════════════════════ */
.portfolio-add         { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.portfolio-add input   { flex: 1; min-width: 0; }

.port-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.port-card:hover { border-color: var(--border2); }

.port-thumb {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  background: var(--surface2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.port-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.port-body  { flex: 1; min-width: 0; }
.port-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.port-url   { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.port-tag   { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: rgba(200,240,96,0.1); color: var(--accent); margin-left: 6px; }


/* ════════════════════════════════════════
   GEAR BUTTON (mobile settings shortcut)
════════════════════════════════════════ */
.gear-btn {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  transition: all 0.15s;
}
.gear-btn:hover  { color: var(--text); border-color: var(--accent); }
.gear-btn svg    { width: 18px; height: 18px; }
