/* ================================================================
   projects/style.css
   Стили страницы проектов.
   Зависит от: ../../style.css (CSS-переменные --cyan, --violet, и т.д.)
   ================================================================ */
 
/* ── Общий layout страницы ───────────────────────────────────────── */
body {
  /* Фон — просто цвет из глобального style.css, без паттернов */
  background: var(--bg);
}
 
.proj-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 52px 24px 120px;
}
 
/* ── Кнопка "назад" ─────────────────────────────────────────────── */
.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  background: rgba(179, 136, 255, 0.05);
  border: 1px solid rgba(179, 136, 255, 0.22);
  border-radius: 11px;
  text-decoration: none;
  color: var(--violet);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  margin-bottom: 48px;
  animation: fadeUp 0.5s 0.05s both;
}
.proj-back:hover {
  border-color: var(--violet);
  box-shadow: 0 0 14px rgba(179, 136, 255, 0.28);
  background: rgba(179, 136, 255, 0.08);
}
 
.proj-back-arr {
  font-size: 9px;
  color: var(--violet);
  line-height: 1;
  transition: transform 0.2s;
  display: inline-block;
}
.proj-back:hover .proj-back-arr {
  transform: translateX(-2px);
}
 
.proj-back-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}
 
/* ── Заголовок секции ───────────────────────────────────────────── */
.proj-label {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.5s 0.15s both;
}
.proj-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--card-br), transparent);
}
 
/* ── Аккордеон: обёртка ─────────────────────────────────────────── */
.acc {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  margin-bottom: 7px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  animation: fadeUp 0.45s both;
}
.acc.open {
  border-color: rgba(0, 229, 255, 0.22);
}
 
/* ── Аккордеон: шапка ───────────────────────────────────────────── */
.acc-hd {
  display: flex;
  align-items: flex-start;
  padding: 13px 16px;
  gap: 11px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s;
  user-select: none;
}
.acc-hd:hover {
  background: rgba(255, 255, 255, 0.04);
}
.acc.open .acc-hd {
  background: rgba(0, 229, 255, 0.04);
}
 
/* Стрелка */
.acc-arr {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
  flex-shrink: 0;
  transition: transform 0.22s, color 0.2s;
  display: inline-block;
  line-height: 1;
}
.acc.open .acc-arr {
  transform: rotate(90deg);
  color: var(--cyan);
}
 
/* Мета-информация в шапке */
.acc-meta  { flex: 1; min-width: 0; }
.acc-name  { font-size: 12px; font-weight: 700; color: var(--cyan); margin-bottom: 3px; }
.acc-prev  {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  transition: opacity 0.15s, max-height 0.2s;
  max-height: 18px;
}
.acc.open .acc-prev {
  opacity: 0;
  max-height: 0;
}
 
/* ── Аккордеон: тело ────────────────────────────────────────────── */
.acc-bd {
  height: 0;
  overflow: hidden;
  transition: height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-ct {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 16px 18px;
  background: rgba(0, 0, 0, 0.2);
}
 
/* ── Типографика внутри контента (рендер Markdown) ──────────────── */
.acc-ct h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
}
.acc-ct h2 {
  font-size: 10px;
  font-weight: 700;
  color: var(--violet);
  margin: 12px 0 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.acc-ct h3 {
  font-size: 10px;
  color: var(--pink);
  margin: 10px 0 4px;
}
.acc-ct img {
  max-width: 100%;
  border-radius: 7px;
  display: block;
  margin-bottom: 10px;
}
.acc-ct p {
  font-size: 10px;
  color: rgba(240, 238, 255, 0.62);
  line-height: 1.8;
  margin-bottom: 7px;
}
.acc-ct ul, .acc-ct ol {
  padding-left: 1.2em;
  margin-bottom: 7px;
}
.acc-ct li {
  font-size: 10px;
  color: rgba(240, 238, 255, 0.62);
  line-height: 1.8;
}
.acc-ct code {
  background: rgba(179, 136, 255, 0.12);
  color: var(--violet);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-family: 'Space Mono', monospace;
}
.acc-ct pre {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 10px 14px;
  overflow-x: auto;
  margin-bottom: 8px;
}
.acc-ct pre code {
  background: none;
  padding: 0;
  color: var(--cyan);
}
.acc-ct a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  font-size: 10px;
  transition: border-color 0.15s;
}
.acc-ct a:hover {
  border-color: var(--cyan);
}
.acc-ct blockquote {
  border-left: 2px solid var(--violet);
  padding: 6px 12px;
  color: var(--muted);
  background: rgba(179, 136, 255, 0.05);
  border-radius: 0 6px 6px 0;
  margin-bottom: 7px;
}
 
/* ── Ссылки на проект ───────────────────────────────────────────── */
.proj-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.proj-link-btn {
  font-size: 9px;
  font-family: 'Space Mono', monospace;
  padding: 3px 10px;
  border-radius: 5px;
  line-height: 1.6;
  text-decoration: none;
  transition: filter 0.2s;
  /* цвет задаётся inline через hex */
}
.proj-link-btn:hover {
  filter: brightness(1.3);
}
 
/* ── Теги ───────────────────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.tag {
  font-size: 9px;
  font-family: 'Space Mono', monospace;
  padding: 2px 9px;
  border-radius: 5px;
  line-height: 1.6;
  /* цвет задаётся inline через hex */
}
 
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 229, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
 
/* ── Адаптив ────────────────────────────────────────────────────── */
@media (max-width: 500px) {
  .proj-wrap { padding: 36px 16px 72px; }
  .proj-back { margin-bottom: 32px; }
}