/* Styles for the Python & Bash accordion cheat sheet. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  padding: 20px;
  line-height: 1.5;
}
.home-link { display: inline-block; font-size: 12px; color: #8b949e; text-decoration: none; border: 1px solid #21262d; border-radius: 6px; padding: 4px 9px; margin-bottom: 16px; transition: all .15s; }
.home-link:hover { color: #58a6ff; border-color: #58a6ff; }
h1 { color: #f0f6fc; font-size: 22px; margin-bottom: 4px; }
.subtitle { color: #8b949e; font-size: 13px; margin-bottom: 24px; }
.section { margin-bottom: 36px; border: 1px solid #21262d; border-radius: 8px; overflow: hidden; }
.section-header {
  background: #161b22;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-header:hover { background: #1c2128; }
.section-title { font-size: 15px; font-weight: 600; color: #f0f6fc; }
.section-hint { font-size: 12px; color: #f0883e; font-style: italic; margin-top: 2px; }
.section-body { display: none; padding: 16px; }
.section.open .section-body { display: block; }
.section.open .arrow { transform: rotate(90deg); }
.arrow { color: #8b949e; transition: transform 0.2s; font-size: 14px; }
.memorize {
  background: #1c1007;
  border: 1px solid rgba(240,136,62,0.25);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}
.memorize strong { color: #f0883e; }
.memorize code { color: #ffa657; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; }
.lang-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.lang-tab {
  padding: 4px 14px;
  border-radius: 4px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #21262d;
  color: #8b949e;
}
.lang-tab.active-py { background: #238636; color: #fff; }
.lang-tab.active-bash { background: #f0883e; color: #fff; }
pre {
  background: #010409;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 14px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: #c9d1d9;
}
.code-block { position: relative; }
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #21262d;
  border: 1px solid #30363d;
  color: #8b949e;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.copy-btn:hover { background: #30363d; color: #f0f6fc; }
.tips { margin-top: 28px; border-top: 1px solid #21262d; padding-top: 20px; }
.tips h2 { font-size: 16px; color: #f0f6fc; margin-bottom: 12px; }
.tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 12px;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}
.tip-icon { font-size: 16px; flex-shrink: 0; }
