/* ============================================================
   Guides Index — stylesheet
   dze.armatools.com/guides
   ============================================================ */
:root {
  --bg:          #0d0d0d;
  --bg-panel:    #111111;
  --bg-card:     #1c1c1c;
  --bg-card2:    #222222;
  --border:      #2a2a2a;
  --border-hi:   #3e5a28;
  --accent:      #4e8a2e;
  --accent-hi:   #62ae3a;
  --accent-dim:  #2e5018;
  --text:        #d0d0d0;
  --text-muted:  #5e5e5e;
  --text-hi:     #eaeaea;
  --radius:      6px;
  --shadow:      0 2px 12px rgba(0,0,0,.55);
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:        'Consolas', 'Courier New', monospace;
  --max-w:       min(960px, 96vw);
}

/* ─── Light mode ─── */
[data-theme="light"] {
  --bg:          #f5f5f4;
  --bg-panel:    #ececea;
  --bg-card:     #ffffff;
  --bg-card2:    #f0f0ee;
  --border:      #cccccc;
  --border-hi:   #5a9e30;
  --accent:      #3d7020;
  --accent-hi:   #2e5818;
  --accent-dim:  #cce4b0;
  --text:        #222222;
  --text-muted:  #666666;
  --text-hi:     #111111;
  --shadow:      0 2px 12px rgba(0,0,0,.10);
}

[data-theme="light"] .tool-header {
  background: #e8f2de;
  border-bottom-color: #b8d4a0;
}

[data-theme="light"] a.tool-card:hover {
  background: #edf6e4;
}

[data-theme="light"] .tool-card-tags li {
  background: #cce4b0;
  color: #2a5810;
  border-color: #90c060;
}

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

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

/* ─── Tool Header ─── */
.tool-header {
  background: #0f1a0a;
  border-bottom: 1px solid var(--border-hi);
  padding: 1.5rem 1.25rem;
}
.tool-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tool-header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tool-header-icon { font-size: 2rem; line-height: 1; }
.tool-header-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.2;
}
.tool-header-sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .3rem;
}

/* ─── Main content ─── */
main {
  max-width: var(--max-w);
  margin: 2.5rem auto;
  padding: 0 1rem;
}

/* ─── Section ─── */
.guides-section + .guides-section { margin-top: 2.5rem; }
.guides-section-head { margin-bottom: 1.25rem; }
.guides-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-hi);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
}
.guides-section-icon { font-size: 1.1rem; }
.guides-section-desc {
  font-size: .88rem;
  color: var(--text-muted);
}
.guides-section-desc a { color: var(--accent-hi); }
.guides-section-desc a:hover { text-decoration: underline; }

/* ─── Grid ─── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ─── Guide Card ─── */
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, background .2s, transform .15s;
  box-shadow: var(--shadow);
}

a.tool-card:hover {
  border-color: var(--accent);
  background: #1a2a12;
  transform: translateY(-2px);
}

.tool-card--soon {
  opacity: .45;
  cursor: default;
}

.tool-card-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
  filter: drop-shadow(0 0 8px var(--accent));
}
.muted-icon { filter: none; }

.tool-card-body { flex: 1; min-width: 0; }

.tool-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: .35rem;
}

.tool-card-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: .65rem;
}
.tool-card-desc a { color: var(--accent-hi); }

.tool-card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.tool-card-tags li {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--accent-dim);
  color: var(--accent-hi);
  border: 1px solid #3e5a20;
  border-radius: 3px;
  padding: .1rem .45rem;
}

.tool-card-arrow {
  font-size: 1.3rem;
  color: var(--accent);
  align-self: center;
  flex-shrink: 0;
  transition: transform .15s;
}
a.tool-card:hover .tool-card-arrow { transform: translateX(4px); }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .guides-grid { grid-template-columns: 1fr; }
  .tool-header-title h1 { font-size: 1.25rem; }
}
