:root {
  --bg: #1b1c1f;
  --card: #2a2b2f;
  --text: #e5e5e5;
  --accent: #3e9cff;
  --border: #3a3b3f;
}

/* ---------- Сброс ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: 100%;
  max-width: 1000px;
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* ---------- HEADER ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #1a1b1d;
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  font-family: 'Russo One', sans-serif;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

/* ---------- НАВИГАЦИЯ ---------- */
.top-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: #1a1b1d;
  padding: 10px 0;
}

.nav_btn {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav_btn:hover {
  color: var(--accent);
}

/* ---------- BURGER ---------- */
.burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 75%;
  max-width: 320px;
  height: 200vh;
  background: var(--card);
  border-right: 1px solid var(--border);
  transition: left 0.3s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  left: 0;
}

.sidebar-inner {
  padding: 20px;
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--accent);
}

.side-link {
  display: flex;
  align-items: center;
  color: #b0b0b0; /* темно-серая, нейтральная */
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  transition: color 0.3s ease, background 0.3s ease;
}

.side-link i {
  color: #9a9a9a; /* серо-стальной оттенок иконок */
  margin-right: 10px;
  font-size: 17px;
  width: 18px;
  text-align: center;
  transition: color 0.3s ease;
}

.side-link:hover {
  color: #fff;
  
  background: rgba(255, 255, 255, 0.05);
  
}

.side-link:hover i {
  color: var(--accent);
}


/* ---------- USER BLOCK ---------- */
.user-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.user-link:hover span {
  color: var(--accent);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-action {
  font-size: 13px;
  color: #9b9b9b;
  text-decoration: none;
}

.user-action:hover {
  color: var(--accent);
}

/* ---------- MAIN / ОСНОВНОЙ КОНТЕНТ ---------- */
main {
  padding: 12px 14px 50px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- ЗАГОЛОВОК СТРАНИЦЫ ---------- */
.page-title {
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(90deg, #ffffff, #cfcfcf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- ИНТРО-СЕКЦИЯ ---------- */
.intro {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.5s ease both;
}

.intro p {
  font-size: 14px;
  color: #d2d2d2;
  line-height: 1.6;
}

.intro strong {
  color: var(--accent);
}
strong.gray {
  color: rgb(233, 233, 233); /* мягкий серый */
  font-weight: 600; /* не жирнее стандартного strong */
  
  padding: 1px 3px;
  border-radius: 4px;
}

/* ---------- КАТЕГОРИИ ---------- */
.cat-list,
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-item,
.blog-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
  text-decoration: none;
  color: var(--text);
  transition: background 0.25s ease;
}

.cat-item:hover,
.blog-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cat-name,
.blog-title {
  font-weight: 500;
  font-size: 14px;
}

.cat-count,
.blog-meta {
  font-size: 12px;
  color: #aaa;
}

/* ---------- БЛОГ-КАРТОЧКА ---------- */
.blog-card {
  gap: 10px;
}

.blog-thumb {
  width: 90px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.blog-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.blog-desc {
  font-size: 13px;
  color: #bdbdbd;
  line-height: 1.4;
}

/* ---------- АДМИН-КНОПКИ ---------- */
.cat-admin {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

/* ---------- ПУСТОЙ БЛОК ---------- */
.empty {
  text-align: center;
  color: #9b9b9b;
  font-size: 14px;
  padding: 20px 0;
}

/* ---------- ССЫЛКИ ВНИЗУ ---------- */
.extra-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.extra-link {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s ease, background 0.2s ease;
}

.extra-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.home-link {
  text-align: center;
  font-weight: 500;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  font-size: 13px;
  color: #7a7a7a;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
}

/* ---------- АНИМАЦИЯ ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- МЕДИА ---------- */
@media (max-width: 480px) {
  .top-nav {
    justify-content: space-between;
    padding: 10px 16px;
  }
  .nav_btn:nth-child(3) {
    display: none;
  }
  .burger {
    display: flex;
  }
}
/* ---------- СТРАНИЦА СТАТЬИ ---------- */
.blog-page {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  animation: fadeIn 0.4s ease both;
}

.blog-attachments {
  margin: 40px 0;
}
.blog-attachments section {
  margin-bottom: 40px;
}
.blog-attachments h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

/* 🎥 Видео */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.video-card {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 🖼️ Скриншоты */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.screenshot-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.screenshot-item:hover {
  transform: scale(1.03);
}
.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* 📁 Файлы */
.file-list {
  list-style: none;
  padding-left: 0;
}
.file-list li {
  margin-bottom: 8px;
}
.file-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.file-list a:hover {
  text-decoration: underline;
}
.file-list small {
  color: #999;
  margin-left: 5px;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #ffffff, #bfbfbf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- уведомление о модерации --- */
.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffce5c;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 10px;
}

/* --- верхняя мета --- */
.blog-meta-top {
  font-size: 13px;
  color: #b5b5b5;
  margin-bottom: 10px;
}

/* --- постер --- */
.blog-cover {
  width: 100%;
  max-height: 1000px;
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
}

.blog-cover img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  max-height: 100%;
}

/* --- контент статьи --- */
.blog-content {
  color: #d2d2d2;
}

.blog-content h2 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.blog-content p {
  font-size: 14px;
  color: #cfcfcf;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* --- блок информации --- */
.blog-details {
  font-size: 13px;
  color: #a0a0a0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 14px 0;
  line-height: 1.6;
}

.blog-details i {
  color: #d4d4d4;
  width: 16px;
  margin-right: 6px;
}

.author-link {
  color: var(--accent);
  text-decoration: none;
}

.author-link:hover {
  text-decoration: underline;
}

/* --- разделитель --- */
.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 12px 0;
}

/* --- блок обсуждения --- */
.discussion h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.discussion p {
  font-size: 14px;
  color: #bcbcbc;
}

/* --- навигация --- */
.page-nav {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 10px;
  transition: background 0.25s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --- плавное появление --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 12px;
  color: #d2d2d2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs span {
  color: #888;
}

.breadcrumbs .current {
  color: #ccc;
  cursor: default;
}
.blog-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select,
.form-file {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #eaeaea;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  background: #a5a5a5;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.form-hint {
  font-size: 12px;
  color: #a5a5a5;
}

.form-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.form-section-title {
  font-size: 15px;
  color: var(--accent);
  margin-top: 4px;
}

.form-submit {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.25s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.form-submit:hover {
  opacity: 0.9;
}

.form-submit:active {
  transform: scale(0.97);
}

/* ---------- МЕТКА МОДЕРАЦИИ ---------- */
.moder-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

/* ---------- ПАГИНАЦИЯ ---------- */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0;
}

.page-link {
  display: inline-block;
  padding: 6px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.page-link:hover {
  background: var(--accent);
  color: #fff;
}

.page-link.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/*  Профиль  */
.profile-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s ease;
  color: #fff;
  overflow-x: hidden;
}

/* ==== ПРОФИЛЬ ==== */

.profile-page {
  width: 100%;
  margin: 0 auto;
  background: var(--card-bg, #181818);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  padding-bottom: 30px;
  position: relative;
}

/* Верхний баннер */
.profile-banner {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Аватарка поверх */
.profile-avatar {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid #1b1b1b;
  overflow: hidden;
  background: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 2;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Информация */
.profile-info {
  margin-top: 90px;
  text-align: center;
}

.profile-name {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.profile-role {
  font-size: 14px;
  color: #aaa;
}

/* Статистика */
.profile-stats {
  margin-top: 18px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ccc;
}

/* Кнопка */
.profile-actions {
  text-align: center;
  margin-top: 25px;
}

.btn-edit {
  display: inline-block;
  padding: 10px 18px;
  background: var(--accent, #2979ff);
  color: #fff;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.25s ease;
}

.btn-edit:hover {
  transform: scale(1.03);
  opacity: 0.9;
}
.profile-actions {
  margin-top: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- КНОПКИ ПРОФИЛЯ ---------- */
.btn-edit,
.btn-my,
.btn-follow,
.btn-message {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Эффект при наведении */
.btn-edit:hover,
.btn-my:hover,
.btn-follow:hover,
.btn-message:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* Цвета под стиль сайта */
.btn-edit {
  background: var(--accent);
}

.btn-my {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn-follow {
  background: linear-gradient(90deg, #1ed760, #24c96f);
  color: #fff;
}

.btn-message {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

/* Hover-эффекты под палитру */
.btn-my:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-follow:hover {
  background: linear-gradient(90deg, #24c96f, #1ed760);
}

.btn-message:hover {
  background: rgba(255, 255, 255, 0.18);
}

.comment {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  color: #ddd;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-author {
  font-weight: 600;
  color: #fff;
}

.comment-role {
  font-size: 12px;
  color: #999;
}

.comment-body {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.reply-to {
  color: var(--accent, #4ba3ff);
  font-size: 13px;
}

.comment-footer {
  text-align: right;
  margin-top: 5px;
}

.btn-reply {
  background: none;
  border: none;
  color: var(--accent, #4ba3ff);
  cursor: pointer;
  font-size: 13px;
}

.comment-form {
  margin-top: 14px;
}

.comment-form textarea {
  width: 100%;
  background: #101010;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 8px;
  padding: 8px;
}

.btn-send {
  margin-top: 8px;
  width: 100%;
  background: var(--accent, #4ba3ff);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 9px 0;
  cursor: pointer;
}
.comment-author-link {
  color: var(--accent, #4ba3ff);
  text-decoration: none;
  transition: color 0.2s ease;
}
.comment-author-link:hover {
  color: #7cb7ff;
}


