/* ===== базовые настройки ===== */

body {
  margin: 0;
  padding: 20px;
  background-color: #000000;
  background-image: url("images/bg-tile.gif");
  font-family: "courier new", "Trebuchet MS", sans-serif;
  color: #d53d58;
  font-size: 15px;
  line-height: 1.6;
}

.page {
  max-width: 800px;
  margin: 0 auto;
  background-color: #000000;
  border: 2px solid #ffffff;
  border-radius: 12px;
  padding: 25px 35px;
  box-shadow: 3px 3px 0px #00e4f8;
}

/* ===== шапка ===== */

.header {
  text-align: center;
  border-bottom: 2px dashed #ffffff;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.user-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #00e4f8;
}

.nickname {
  font-weight: bold;
  color: #00e4f8;
  font-size: 16px;
}

.header h1 {
  font-size: 30px;
  color: #00e4f8;
  margin: 0 0 6px 0;
}

.subtitle {
  font-style: italic;
  color: #ffffff;
  margin: 0;
}

/* ===== навигация ===== */

.nav {
  text-align: center;
  margin-bottom: 25px;
}

.nav a {
  display: inline-block;
  margin: 0 10px;
  padding: 4px 12px;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #00e4f8;
  border-radius: 20px;
  background-color: #000000;
}

.nav a:hover {
  background-color: #d53d58;
  color: #ffffff;
}

/* ===== поиск по постам ===== */

.post-search {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.post-search-input {
  width: 100%;
  max-width: 400px;
  font-family: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid #00e4f8;
  border-radius: 20px;
  background-color: #ffffff;
  color: #000000;
}

.post-search-input:focus {
  outline: none;
  border-color: #d53d58;
}

/* ===== хэштеги под постом ===== */

.post-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-tag {
  font-size: 12px;
  color: #00e4f8;
  text-decoration: none;
  background-color: #000000;
  border: 1px solid #00e4f8;
  border-radius: 12px;
  padding: 2px 9px;
}

.post-tag:hover,
.post-tag.active {
  background-color: #d53d58;
  color: #ffffff;
  border-color: #d53d58;
}

.read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: bold;
  color: #00e4f8;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 13px;
  color: #00e4f8;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.post-loading {
  text-align: center;
  color: #d53d58;
  font-style: italic;
}

/* ===== записи блога ===== */

.post {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dotted #ffffff;
}

.post h2 {
  color: #00e4f8;
  margin-bottom: 3px;
}

.post-title-link {
  color: inherit;
  text-decoration: none;
}

.post-title-link:hover {
  text-decoration: underline;
}

.post-date {
  font-size: 12px;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 10px;
}

/* ===== переключатель "сколько показывать" ===== */

.limit-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  justify-content: center;
  margin-bottom: 10px;
}

/* ===== фильтры по тегам ===== */

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px;
  background-color: #ffffff;
  border: 1px dashed #00e4f8;
  border-radius: 10px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.filter-group-label {
  font-size: 12px;
  font-weight: bold;
  color: #d53d58;
  margin-right: 3px;
  text-transform: uppercase;
}

.tag-btn {
  font-family: inherit;
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid #00e4f8;
  border-radius: 12px;
  background-color: #000000;
  color: #00e4f8;
  cursor: pointer;
}

.tag-btn:hover {
  background-color: #d53d58;
}

.tag-btn.active {
  background-color: #d53d58;
  color: #ffffff;
  border-color: #00e4f8;
}

.reset-btn {
  border-style: dashed;
  color: #00e4f8;
}

.filter-count {
  text-align: center;
  font-size: 12px;
  color: #00e4f8;
  margin: 0 0 15px 0;
}

/* ===== галереи (стемпы / гифки) ===== */

.gallery-note {
  font-size: 13px;
  color: #8a6b75;
  text-align: center;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.stamp img {
  object-fit: cover;
  border: 1px solid #00e4f8;
}

.gif-item img {
  max-width: 200px;
  border: 2px solid #00e4f8;
  display: block;
}

figure {
  margin: 0;
  text-align: center;
}

figcaption {
  font-size: 11px;
  color: #d53d58;
  margin-top: 4px;
}

/* ===== пагинация (листание страниц) ===== */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pager-indicator {
  font-size: 12px;
  color: #8a6b75;
}

/* ===== подвал ===== */

.footer {
  text-align: center;
  font-size: 12px;
  color: #00e4f8;
  border-top: 2px dashed #ffffff;
  padding-top: 15px;
  margin-top: 20px;
}

.webring {
  margin-top: 10px;
}
