/*
 * chip.css — компоненты ChipMixer (форма миксера, order-страница, блог).
 * Дополняет донорский app.css. Палитра: primary #AA0000, тёмный #111, фон #fff.
 */

:root {
  --chip-red: #AA0000;
  --chip-dark: #111111;
  --chip-text: #444444;
  --chip-border: #DEDEDE;
  --chip-bg-soft: #FAFAFE;
}

* { box-sizing: border-box; }

/* ===== Общая секция-обёртка ===== */
.chip-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 15px 50px;
}
.chip-section h1,
.chip-section h2 {
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ===== Карточка миксера ===== */
.mixer-card {
  background: #fff;
  border: 1px solid var(--chip-border);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.07);
  padding: 30px 28px;
  margin: 0 auto;
  max-width: 720px;
}
.mixer-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--chip-border);
  padding-bottom: 16px;
  margin-bottom: 22px;
}
.mixer-card__title {
  font-size: 1.4em;
  font-weight: 800;
  margin: 0;
  color: var(--chip-dark);
}
.mixer-card__limits {
  font-size: 0.85em;
  color: #888;
}
.mixer-card__limits b { color: var(--chip-red); }

.mixer-field { margin-bottom: 18px; }
.mixer-field > label {
  display: block;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 7px;
}
.mixer-input,
.mixer-select {
  width: 100%;
  font-family: inherit;
  font-size: 0.95em;
  padding: 13px 14px;
  border: 1px solid #C9C9C9;
  background: #fff;
  color: var(--chip-text);
  transition: border-color 0.2s ease;
}
.mixer-input:focus,
.mixer-select:focus {
  outline: none;
  border-color: var(--chip-red);
}
.mixer-wallet-row { position: relative; margin-bottom: 10px; }
.mixer-wallet-row .mixer-remove {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: #bbb;
  font-size: 1.2em;
  cursor: pointer;
  line-height: 1;
}
.mixer-wallet-row .mixer-remove:hover { color: var(--chip-red); }

.mixer-add-btn {
  display: inline-block;
  background: none;
  border: 1px dashed #C9C9C9;
  color: #777;
  font-family: inherit;
  font-size: 0.85em;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mixer-add-btn:hover { border-color: var(--chip-red); color: var(--chip-red); }

.mixer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .mixer-grid { grid-template-columns: 1fr; } }

.mixer-fee-note {
  font-size: 0.85em;
  color: #888;
  margin: 4px 0 20px;
}
.mixer-fee-note b { color: var(--chip-red); }

.mixer-submit {
  display: block;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  background: var(--chip-red);
  color: #fff;
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.mixer-submit:hover { background: #000; }
.mixer-submit:disabled { background: #ccc; cursor: not-allowed; }

.mixer-error {
  display: none;
  background: var(--chip-red);
  color: #fff;
  padding: 11px 14px;
  font-size: 0.9em;
  margin-bottom: 16px;
}

/* ===== Order / Check-order ===== */
.order-card {
  background: #fff;
  border: 1px solid var(--chip-border);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.07);
  padding: 30px 28px;
  max-width: 720px;
  margin: 0 auto;
}
.order-row {
  padding: 16px 0;
  border-bottom: 1px solid #EEE;
}
.order-row:last-child { border-bottom: 0; }
.order-label {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 6px;
}
.order-deposit {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.order-deposit__qr {
  background: #fff;
  border: 1px solid var(--chip-border);
  padding: 6px;
  flex-shrink: 0;
}
.order-deposit__qr img { display: block; width: 150px; height: 150px; }
.order-addr {
  font-family: 'Lato', monospace;
  font-size: 0.95em;
  word-break: break-all;
  color: var(--chip-dark);
  cursor: pointer;
  user-select: all;
}
.order-code {
  font-family: 'Lato', monospace;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--chip-red);
}
.order-status {
  display: inline-block;
  padding: 7px 16px;
  background: #FFF3CD;
  color: #8a6d00;
  font-weight: 700;
  font-size: 0.9em;
}
.order-status[data-status="completed"] { background: #D4EDDA; color: #1c7430; }
.order-status[data-status="processing"],
.order-status[data-status="confirmed"] { background: #CCE5FF; color: #004085; }
.order-wallet {
  padding: 8px 0;
  font-size: 0.9em;
  border-bottom: 1px dashed #eee;
}
.order-wallet b { color: var(--chip-red); }

.check-form { max-width: 520px; margin: 0 auto; text-align: center; }
.check-form .mixer-input { text-align: center; margin-bottom: 16px; }

/* ===== Blog ===== */
.blog-wrap { max-width: 1000px; margin: 0 auto; padding: 40px 15px 60px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--chip-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.blog-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-3px); }
.blog-card__img { display: block; width: 100%; height: 180px; object-fit: cover; }
.blog-card__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { font-size: 0.75em; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.blog-card__title { font-size: 1.1em; font-weight: 700; line-height: 1.35; margin: 0 0 10px; }
.blog-card__title a { color: var(--chip-dark); text-decoration: none; }
.blog-card__title a:hover { color: var(--chip-red); }
.blog-card__excerpt { font-size: 0.88em; color: #666; line-height: 1.6; margin: 0; }

.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 40px 0 0; flex-wrap: wrap; }
.blog-pagination a, .blog-pagination span { padding: 9px 14px; text-decoration: none; color: #777; border: 1px solid var(--chip-border); font-size: 0.9em; }
.blog-pagination .current { background: var(--chip-red); color: #fff; border-color: var(--chip-red); }
.blog-pagination a:hover { border-color: var(--chip-red); color: var(--chip-red); }

/* Article */
.article-wrap { max-width: 800px; margin: 0 auto; padding: 40px 15px 60px; }
.article-wrap h1 { font-size: 2em; font-weight: 800; line-height: 1.25; color: var(--chip-dark); margin: 0 0 14px; }
.article-meta { font-size: 0.82em; color: #999; margin-bottom: 26px; }
.article-hero { width: 100%; max-height: 400px; object-fit: cover; margin-bottom: 28px; }
.article-body { font-size: 1.02em; line-height: 1.8; color: #3a3a3a; }
.article-body h2 { font-size: 1.5em; font-weight: 800; margin: 32px 0 12px; color: var(--chip-dark); }
.article-body h3 { font-size: 1.2em; font-weight: 700; margin: 26px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body img { max-width: 100%; height: auto; margin: 18px 0; }
.article-body a { color: var(--chip-red); }
.article-expert { background: var(--chip-bg-soft); border-left: 3px solid var(--chip-red); padding: 18px 22px; margin: 26px 0; }
.article-expert__name { font-weight: 700; color: var(--chip-dark); }
.article-expert__pos { font-size: 0.85em; color: #888; }

.copy-hint { font-size: 0.78em; color: #aaa; }
