/* MTG Deck Analyzer (plan 4c4069) — self-contained styles (dark theme, accent #a2e7ee). */

.an-wrap { max-width: 900px; margin: 0 auto; padding: 24px 16px 60px; color: #e8eef0; }

.an-hero { text-align: center; margin-bottom: 22px; }
.an-hero h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 10px; color: #fff; }
.an-hero p.an-lead { font-size: 1.05rem; color: #b9c7cc; max-width: 680px; margin: 0 auto; }

.an-tool {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(162, 231, 238, 0.18);
  border-radius: 14px;
  padding: 18px;
  margin: 22px 0;
}
.an-tool-label { display: block; font-weight: 600; margin-bottom: 8px; color: #cfeef2; }
#an-input {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  box-sizing: border-box;
  background: #0e1a1d;
  color: #e8eef0;
  border: 1px solid rgba(162, 231, 238, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.5;
}
#an-input:focus { outline: none; border-color: #a2e7ee; box-shadow: 0 0 0 2px rgba(162, 231, 238, 0.2); }

.an-tool-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }

.an-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.an-btn-primary { background: linear-gradient(90deg, #4196e0, #a2e7ee); color: #06222a; }
.an-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(65, 150, 224, 0.35); }
.an-btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

.an-example { color: #a2e7ee; font-size: 0.92rem; text-decoration: underline; cursor: pointer; background: none; border: none; }

.an-status { margin-top: 12px; color: #a2e7ee; font-size: 0.95rem; }

/* results */
.an-results { margin-top: 8px; }
.an-muted { color: #9fb0b6; }
.an-fineprint { font-size: 0.82rem; margin-top: 14px; }
.an-h3 { color: #fff; font-size: 1.2rem; margin: 0 0 12px; }
.an-section { margin: 26px 0; }

.an-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.an-stat {
  flex: 1 1 120px;
  background: rgba(162, 231, 238, 0.08);
  border: 1px solid rgba(162, 231, 238, 0.16);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.an-stat-val { font-size: 1.5rem; font-weight: 800; color: #a2e7ee; }
.an-stat-lbl { font-size: 0.8rem; color: #b9c7cc; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }

/* color breakdown */
.an-colors { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.an-color-row { display: flex; align-items: center; gap: 10px; }
.an-color-pip {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; color: #1a1a1a;
}
.an-pip-W { background: #f8f6d8; }
.an-pip-U { background: #b3ceea; }
.an-pip-B { background: #b0a8a6; }
.an-pip-R { background: #eaa392; }
.an-pip-G { background: #a3c9a8; }
.an-pip-C { background: #cdd5d8; }
.an-color-bar-wrap { flex: 1 1 auto; background: rgba(255, 255, 255, 0.06); border-radius: 6px; height: 14px; overflow: hidden; }
.an-color-bar { height: 100%; border-radius: 6px; }
.an-bar-W { background: #f1edb0; } .an-bar-U { background: #6fa8dc; } .an-bar-B { background: #8a8480; }
.an-bar-R { background: #e06c54; } .an-bar-G { background: #6fb07a; } .an-bar-C { background: #b6c0c4; }
.an-color-num { flex: 0 0 auto; color: #cfd9dc; font-size: 0.88rem; min-width: 84px; }

/* mana curve — same classes as deck-view ff3cc5 so it matches the rest of the site */
.mana-curve-container { display: flex; justify-content: center; align-items: flex-end; gap: 12px; max-width: 700px; height: 180px; margin: 16px auto 0; }
.mana-curve-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1 1 0; max-width: 70px; height: 100%; }
.mana-curve-count { color: #a2e7ee; font-weight: bold; font-size: 0.9rem; margin-bottom: 6px; }
.mana-curve-bar-wrap { display: flex; align-items: flex-end; width: 100%; flex: 1 1 auto; }
.mana-curve-bar { width: 100%; min-height: 2px; background: linear-gradient(to top, #4196e0, #a2e7ee); border-radius: 4px 4px 0 0; transition: height 0.3s ease; }
.mana-curve-label { color: #fff; font-size: 0.9rem; margin-top: 8px; }

/* ratios (full analysis) */
.an-ratios { display: flex; flex-direction: column; gap: 12px; }
.an-ratio { border: 1px solid rgba(255, 255, 255, 0.1); border-left-width: 4px; border-radius: 10px; padding: 12px 14px; background: rgba(255, 255, 255, 0.03); }
.an-ratio.an-good { border-left-color: #5ec98a; }
.an-ratio.an-low { border-left-color: #e6b34a; }
.an-ratio.an-high { border-left-color: #6fa8dc; }
.an-ratio-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.an-ratio-name { font-weight: 700; color: #fff; }
.an-ratio-count { font-size: 1.25rem; font-weight: 800; color: #a2e7ee; }
.an-ratio-rec { color: #9fb0b6; font-size: 0.85rem; margin-left: auto; }
.an-badge { font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.an-badge-good { background: rgba(94, 201, 138, 0.18); color: #8fe3b1; }
.an-badge-low { background: rgba(230, 179, 74, 0.18); color: #f0cd86; }
.an-badge-high { background: rgba(111, 168, 220, 0.18); color: #aacdf0; }
.an-ratio-tip { margin: 8px 0 0; color: #c2ced2; font-size: 0.9rem; }
.an-fix { display: inline-block; margin-top: 10px; color: #a2e7ee; font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.an-fix:hover { text-decoration: underline; }

.an-summary { margin: 18px 0; }
.an-summary-good { color: #8fe3b1; font-weight: 600; }
.an-summary-warn { color: #f0cd86; font-weight: 600; }
.an-full .an-btn-primary { margin-top: 12px; }

/* gate (logged-out) */
.an-gate { margin: 26px 0; border: 1px dashed rgba(162, 231, 238, 0.4); border-radius: 14px; padding: 22px; text-align: center; background: rgba(162, 231, 238, 0.06); }
.an-gate-text { color: #c2ced2; max-width: 620px; margin: 0 auto 16px; }

/* unmatched */
.an-unmatched { margin-top: 18px; }
.an-unmatched summary { cursor: pointer; color: #9fb0b6; font-size: 0.9rem; }
.an-unmatched-list { margin: 10px 0 0; padding-left: 20px; color: #b9c7cc; font-size: 0.88rem; }

/* SEO copy */
.an-copy { margin: 40px 0 0; line-height: 1.65; color: #c7d2d6; }
.an-copy h2 { color: #fff; font-size: 1.4rem; margin: 30px 0 10px; }
.an-copy h3 { color: #dff3f6; font-size: 1.1rem; margin: 22px 0 8px; }
.an-copy p { margin: 0 0 14px; }
.an-copy ul { margin: 0 0 14px; padding-left: 22px; }
.an-copy li { margin-bottom: 6px; }
.an-copy a { color: #a2e7ee; }
.an-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.an-links a { display: inline-block; padding: 9px 16px; border: 1px solid rgba(162, 231, 238, 0.3); border-radius: 999px; color: #a2e7ee; text-decoration: none; font-size: 0.92rem; }
.an-links a:hover { background: rgba(162, 231, 238, 0.1); }

@media (max-width: 600px) {
  .an-hero h1 { font-size: 1.55rem; }
  .an-stat { flex-basis: 40%; }
  .mana-curve-container { gap: 6px; height: 150px; }
}
