:root {
  --color-black: #000000;
  --color-main: #e44445;
  --color-grey: #bdbdbd;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

.wrapper {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.wrapper--extended {
  max-width: 1440px;
}

.wrapper--reduced {
  max-width: 780px;
}

a:active,
a:focus,
form input {
  outline: 0;
  border: none;
  -moz-outline-style: none;
}

form input[type="text"],
form input[type="password"],
form input[type="mail"],
form select,
form textarea {
  border: 1px solid hsla(0, 0%, 60.8%, 0.4);
  border-radius: 3px;
  background-color: #fff;
  font-size: 16px;
  padding: 15px 20px;
  font-family: "Space Mono", monospace;
}

form input:not(:first-child),
form textarea {
  margin-top: 20px;
}

form input[type="submit"] {
  margin-top: 60px;
  padding: 15px 20px;
  font-size: 16px;
  cursor: pointer;
  color: #ffffff;
  background: var(--color-main);
  font-family: "Space Mono", monospace;
  border-radius: 3px;
}

.form__checkbox {
  font-family: "Space Mono", monospace;
  margin-top: 30px;
}

.form__checkbox input,
.form__checkbox label {
  cursor: pointer;
}

.form__checkbox label {
  padding-left: 10px;
}

.form__checkbox label a {
  color: var(--color-black);
}

.form--errors {
  margin-top: 20px;
  color: var(--color-main);
  padding-left: 20px;
}

.form--submitted {
  background: rgb(7, 163, 7);
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 0;
  display: none;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 200;
}

.form--submitted--show {
  display: flex;
  opacity: 1;
  transition: opacity 0.5s;
}

.form--submitted p {
  text-align: center;
  color: #ffffff;
  font-family: "Space Mono", monospace;
}

form .spinnder-loader {
  height: fit-content;
  margin-top: 40px;
  font-family: "Space Mono", monospace;
}

form p {
  margin-top: 20px;
  font-weight: bold;
}

form textarea {
  font-family: monospace;
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.btn-primary {
  padding: 15px 20px;
  font-size: 16px;
  cursor: pointer;
  color: #ffffff;
  background: var(--color-main);
  font-family: "Space Mono", monospace;
  border-radius: 3px;
  text-decoration: none;
}

a {
  justify-content: center;
  width: fit-content;
}

.btn-primary svg {
  margin-right: 10px;
  fill: #ffffff;
  width: 20px;
  vertical-align: bottom;
}

.user-sidebar {
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  z-index: 200;
}

.user-sidebar__wrapper {
  width: 100%;
  max-width: 760px;
  background: var(--color-main);
  height: 100vh;
  padding: 40px;
  position: fixed;
  z-index: 200;
  color: #ffffff;
}

.user-sidebar__user-data {
  display: flex;
  flex-direction: row-reverse;
}

.user-sidebar__user-data img {
  width: 100px;
}

.user-sidebar__data {
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-self: center;
}

.user-sidebar__data h1 {
  font-size: 30px;
  font-family: "Space Mono", monospace;
}

.user-sidebar__data h1,
.user-sidebar__data p {
  text-align: right;
}

.user-sidebar__data-actions {
  display: flex;
  flex-direction: row-reverse;
  color: white;
}

.user-sidebar__data-actions a {
  text-decoration: none;
  color: white;
  margin-right: 10px;
}

.user-sidebar__social,
.user-sidebar__recommended,
.user-sidebar__logo {
  display: flex;
  flex-direction: column;
  text-align: right;
  margin-top: 40px;
}

.user-sidebar__social a,
.user-sidebar__recommended a {
  text-decoration: none;
  color: #ffffff;
}

.user-sidebar__social a {
  font-size: 46px;
  font-weight: bold;
}

.user-sidebar__social p,
.user-sidebar__recommended p {
  font-family: "Space Mono", monospace;
  margin-bottom: 20px;
  font-weight: bold;
}

.user-sidebar__recommended {
  padding-bottom: 40px;
  border-bottom: 1px solid #ec6060;
}

.user-sidebar__recommended a,
.user-sidebar__social a {
  width: inherit;
}

.user-sidebar__logo {
  justify-content: flex-end;
  flex-direction: row;
}

.user-sidebar__logo svg {
  width: 150px;
}

.user-sidebar__close {
  position: absolute;
  display: none;
}

.user-sidebar__close svg {
  width: 15px;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .user-sidebar__wrapper {
    width: 80%;
  }
}

@media (max-width: 800px) {
  .user-sidebar__user-data img {
    width: 70px;
  }

  .user-sidebar__data h1 {
    font-size: 20px;
  }

  .user-sidebar__data p {
    font-size: 14px;
  }
}

@media (max-width: 680px) {
  .user-sidebar__wrapper {
    width: 100%;
    padding: 20px;
  }

  .user-sidebar__close {
    display: block;
  }
}

.user-settings {
  padding: 160px 0;
}

.user-settings h1 {
  font-family: "Space Mono", monospace;
}

.user-settings form {
  margin-top: 40px;
}

.user-settings__avatar {
  display: flex;
}

.user-settings__avatar img {
  width: 100px;
}

.user-settings__avatar p {
  font-weight: normal;
  font-family: "Space Mono", monospace;
  text-decoration: underline;
  display: flex;
  align-self: center;
  margin-top: 0;
  margin-left: 20px;
  cursor: pointer;
}

.user-settings__unlockables {
  margin-top: 48px;
  border-top: 1px solid var(--color-grey);
  padding-top: 32px;
}

.user-settings__unlockables h2 {
  font-family: "Space Mono", monospace;
  font-size: 20px;
  margin-bottom: 6px;
}

.user-settings__unlockables > p {
  color: #888;
  margin-bottom: 28px;
}

.user-settings__no-unlocks {
  font-style: italic;
  color: #aaa;
}

.user-settings__unlock-group {
  margin-bottom: 28px;
}

.user-settings__unlock-group h3 {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 12px;
}

.user-settings__unlock-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-settings__unlock-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--color-grey);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text);
  transition: border-color 0.15s, color 0.15s;
}

.user-settings__unlock-item:hover {
  border-color: var(--color-main);
  color: var(--color-main);
}

.user-settings__unlock-item--active {
  font-weight: 600;
}

.unlock-item__emoji {
  font-size: 18px;
  line-height: 1;
}

.unlock-item__check {
  font-size: 12px;
  font-weight: 700;
}

.avatars-modal {
  background: white;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  overflow: auto;
}

.avatars-modal__wrap {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
}

.avatars-modal__wrap img {
  width: 15%;
  padding: 10px;
  cursor: pointer;
}

@media (max-width: 800px) {
  .user-settings {
    padding: 60px 0;
  }

  .user-settings h1 {
    font-size: 24px;
  }

  .avatars-modal {
    padding: 60px 0;
  }

  .avatars-modal__wrap img {
    width: 20%;
  }
}

@media (max-width: 680px) {
  .avatars-modal__wrap img {
    width: 33%;
  }
}

.user-comments {
  padding: 160px 0;
}

.user-comments__activity span {
  font-weight: bold;
}

.user-comments__verb {
  font-weight: bold;
  color: var(--color-text);
}

.user-comments__verb--like {
  color: var(--color-main);
}

.user-comments__activity a {
  font-weight: bold;
  color: var(--color-main);
  text-decoration: none;
}

.user-comments__wrap {
  margin-top: 0;
}

.user-comments__day-group {
  margin-top: 40px;
}

.user-comments__day-label {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  border-bottom: 1px solid var(--color-grey);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.user-comments__activity {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
}

.user-comments__time {
  font-size: 12px;
  color: #aaa;
  font-family: "Space Mono", monospace;
  width: 44px;
  flex-shrink: 0;
}

.user-comments__activity-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 800px) {
  .user-comments {
    padding: 60px 0;
  }

  .user-comments h1 {
    font-size: 24px;
  }
}

.user-banner {
  background: var(--color-main);
  color: white;
}

.user-banner__wrap {
  display: flex;
  padding: 60px 0;
  justify-content: center;
}

.user-banner__wrap img {
  width: 140px;
}

.user-banner__data {
  margin-left: 20px;
}

.user-banner__data {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-self: center;
}

.user-banner__actions {
  display: flex;
  justify-content: center;
  padding-bottom: 10px;
}

.user-banner__actions button {
  color: white;
  font-weight: bold;
  font-family: "Space Mono", monospace;
  padding: 10px 20px;
}

@media (max-width: 800px) {
  .user-banner__wrap {
    flex-direction: column;
  }

  .user-banner__img {
    display: flex;
    justify-content: center;
  }

  .user-banner__data {
    margin-left: 0;
    margin-top: 20px;
    text-align: center;
  }
}

.textarea-buttons {
  position: relative;
}

.textarea-buttons button {
  background: none;
  border: none;
  display: flex;
  justify-content: center;
  padding: 5px;
  width: 25px;
  border-right: 1px solid hsla(0, 0%, 60.8%, 0.4);
}

.textarea-buttons svg {
  align-items: center;
  display: flex;
  width: 10px;
  max-height: 100%;
}

.textarea-buttons button:last-child {
  border-right: none;
}

.textarea-buttons button:hover {
  background: hsla(0, 0%, 60.8%, 0.4);
}

.textarea-buttons__wrap {
  border: 1px solid hsla(0, 0%, 60.8%, 0.4);
  border-radius: 5px;
  display: inline-flex;
  overflow: hidden;
}

.textarea-buttons__wrap:not(:last-child) {
  margin-right: 5px;
}

.textarea-buttons svg {
  height: 100%;
}

.textarea-buttons hr {
  margin: 5px 0 0;
}

.textarea {
  margin: 40px 0;
}

.textarea__wrap {
  background: white;
  border: 1px solid hsla(0, 0%, 60.8%, 0.4);
  padding: 5px;
  position: relative;
}

.textarea__visualization-options {
  position: absolute;
  right: -1px;
  top: -24px;
}

.textarea__visualization-options span {
  cursor: pointer;
  border: 1px solid hsla(0, 0%, 60.8%, 0.4);
  font-size: 12px;
  background: white;
  padding: 2px 5px;
}

.textarea__visualization-options .active {
  border-bottom: 1px solid white;
}

.textarea__visualization-options span:first-child {
  margin-right: -1px;
}

.textarea__wrap-content {
  margin-top: 10px;
  position: relative;
}

.textarea__wrap-content div {
  background: white;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.textarea__wrap-content div:focus {
  outline: none;
}

.textarea__wrap textarea {
  border: none;
  padding: 0;
  font-size: 14px;
  min-height: 250px;
  width: 100%;
}

.textarea__wrap textarea:focus {
  outline: none;
}

.textarea__content-editable {
  font-size: 14px;
  white-space: pre-wrap;
}

.textarea__separator {
  margin-bottom: 5px;
  margin-top: 5px;
}

.textarea__data {
  display: flex;
  justify-content: flex-end;
}

.textarea__data span {
  font-size: 12px;
  margin-left: 10px;
}

.spinnder-loader {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.96);
  left: 0;
  top: 0;
  z-index: 100;
  justify-content: center;
  padding-top: 250px;
  -webkit-transition: opacity 0.5s;
  -moz-transition: opacity 0.5s;
  transition: opacity 0.5s linear;
}

.search-box--hidden {
  display: none;
  opacity: 0;
  -webkit-transition: opacity 0.5s;
  -moz-transition: opacity 0.5s;
  transition: opacity 0.5s linear;
}

.search-box--show {
  display: flex;
  opacity: 1;
  -webkit-transition: opacity 0.5s;
  -moz-transition: opacity 0.5s;
  transition: opacity 0.5s linear;
}

.search-box__form {
  width: 100%;
  max-width: 600px;
  color: #ffffff;
  position: relative;
}

.search-box__form input {
  width: 100%;
  background: none !important;
  border: none !important;
  font-size: 44px !important;
  padding-bottom: 20px !important;
  border-bottom: 2px solid #ffffff !important;
  color: #ffffff;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.search-box__form-wrap {
  padding-top: 40px;
}

.search-box__form-wrap div {
  padding: 20px 0;
}

.search-box__form-wrap a {
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
}

.search-box__form-wrap div:not(:last-child) {
  border-bottom: 1px solid #ffffff66;
}

.search-box__show-all {
  margin-top: 20px;
}

.search-box__form .logo-close {
  position: absolute;
  top: -60px;
  right: 0;
  cursor: pointer;
}

.search-box__form-wrap .spinnder-loader {
  height: initial;
}

@media (max-width: 1200px) {
  .search-box__form {
    position: initial;
  }

  .search-box__form .logo-close {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 600px) {
  .search-box {
    background: rgba(0, 0, 0, 0.92);
    padding-top: 100px;
  }

  .search-box__form input {
    font-size: 30px !important;
    padding-bottom: 10px !important;
  }

  .search-box__form-wrap {
    padding-top: 20px;
  }

  .search-box .logo-close {
    width: 30px;
  }

  .search-box__show-all a {
    width: 100%;
    display: block;
    text-align: center;
  }
}

.search-banner {
  background: var(--color-main);
  padding: 60px 0;
  color: #ffffff;
  font-family: "Space Mono", monospace;
}

@media (max-width: 1200px) {
  .search-banner {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .search-banner h1 {
    font-size: 24px;
  }
}

.post-wrapper {
  margin-top: 100px;
  margin-bottom: 80px;
}

.post-wrapper__wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  margin-left: -10px;
  margin-right: -10px;
}

.post-wrapper__item {
  width: 33.33%;
  padding: 0 10px 20px 10px;
  color: #000000;
  text-decoration: none;
}

.post-wrapper__item-thumb {
  overflow: hidden;
  height: 0;
  padding-top: 56.25%;
  position: relative;
}

.post-wrapper__item-thumb,
.post-wrapper__item-thumb img {
  width: 100%;
}

.post-wrapper h2 {
  font-family: sans-serif;
  margin-top: 20px;
}

.hero-main__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  color: #ffffff;
}

@media (max-width: 1200px) {
  .post-wrapper__item h2 {
    font-size: 20px;
    padding: 0 10px;
  }
}

@media (max-width: 680px) {
  .post-wrapper__item {
    width: 100%;
    padding: 20px 0;
  }

  .post-wrapper__item:not(:last-child) {
    border-bottom: 1px solid var(--color-dusty-grey);
  }

  .post-wrapper__item-thumb {
    display: none;
  }

  .post-wrapper__item h2 {
    font-size: 24px;
    font-style: italic;
    margin-top: 0;
  }

  .hero-main__tag {
    display: none;
  }
}

:root {
  --color-dusty-grey: #9b9b9b;
  --color-twitter: #00acee;
  --color-facebook: #3b5998;
}

.post-share {
  position: absolute;
  left: -58px;
  bottom: -274px;
  display: flex;
  flex-direction: column;
}

.post-share a:hover,
.post-share p:hover {
  cursor: pointer;
}

.post-share svg {
  width: 28px;
  fill: var(--color-dusty-grey);
}

.post-share a:not(:last-child),
.post-share p:not(:last-child) {
  margin-bottom: 20px;
  display: block;
}

.post-share__twitter svg:hover {
  fill: var(--color-twitter);
}

.post-share__facebook svg:hover {
  fill: var(--color-facebook);
}

.post-share__share svg:hover {
  fill: #000000;
}

.post-share__heart svg:hover,
.post-share__heart--liked svg {
  fill: var(--color-main);
}

.post-share__share {
  position: relative;
}

.post-share__share-text {
  position: absolute;
  background: #000000;
  display: block;
  left: 41px;
  width: max-content;
  padding: 5px 10px;
  border-radius: 20px;
  color: white !important;
  cursor: auto;
}

.post-share__heart {
  margin-bottom: 0 !important;
}

.post-share__total-like {
  text-align: center;
}

.post-share__no-hover:hover svg {
  fill: var(--color-dusty-grey);
}

@media (max-width: 1200px) {
  .post-share {
    left: inherit;
    bottom: inherit;
    flex-direction: row;
    display: flex;
    align-items: center;
    margin-top: 20px;
    position: inherit;
  }

  .post-share a:not(:last-child),
  .post-share p:not(:last-child) {
    margin-right: 20px;
    margin-bottom: 0;
  }
}

:root {
  --post-max-width: 1440px;
  --post-title-max-width: 1180px;
  --post-content-max-width: 780px;

  --text-color: #2c2c2c;
  --post-data-color: #9b9b9b;
}

.post__title-block {
  margin: auto;
  margin-bottom: 40px;
  margin-top: 80px;
  width: 100%;
  max-width: var(--post-title-max-width);
  display: block;
}

.post__pretitle {
  margin-bottom: 20px;
  display: block;
  color: #e44445;
  font-size: 20px;
  font-weight: bold;
  font-family: "Space Mono", monospace;
}

.post__title {
  font-size: 64px;
  line-height: 1.15;
  color: var(--text-color);
  font-family: sans-serif;
}

.post__title-block--policy {
  width: 100%;
  max-width: var(--post-content-max-width);
  margin: auto;
  margin-top: 100px;
}

.post__image,
.post__thumb {
  width: 100%;
  max-width: var(--post-max-width);
  margin: auto;
  margin-bottom: 40px;
  display: block;
}

.post__thumb {
  margin-bottom: 40px;
}

.post__content {
  margin-top: 40px;
  margin-bottom: 120px;
  word-break: break-word;
}

.post__data {
  padding-top: 60px;
  position: relative;
}

.post__data--not-published {
  background: red;
  color: #ffffff;
  display: block;
  padding: 2px;
  margin-bottom: 20px;
}

.post__data-author {
  border-bottom: 3px solid var(--post-data-color);
}

.post__data a {
  text-decoration: none;
}

.post__data p,
.post__data a {
  color: var(--post-data-color);
  font-family: "Space Mono", monospace;
}

.post__data-tags {
  font-weight: bold;
  margin-top: 8px;
}

.post__data-tags a {
  display: inline-flex;
}

.post__data-tags a:not(:last-child) {
  margin-right: 10px;
}

.post_data-tags-main {
  color: var(--color-main) !important;
}

.post__data,
.post__content p,
.post__content h1,
.post__content h2,
.post__content h3,
.post__content ul,
.post__content .twitter-tweet,
.post__content table {
  width: 100%;
  max-width: var(--post-content-max-width);
  margin: auto;
}

.post__content .twitter-tweet {
  margin-bottom: 40px !important;
}

.post__content p,
.post__content ul {
  margin-bottom: 40px;
  font-size: 20px;
  line-height: 36px;
  color: var(--text-color);
  font-family: "Lora", serif;
}

.post__content ul {
  padding-left: 40px;
}

.post__content a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 5px solid #e4444566;
}

.post__content a:hover {
  border-bottom: 5px solid var(--color-main);
}

.post__content table {
  margin-bottom: 40px !important;
}

.post__content table th {
  text-align: left;
  background: var(--color-main);
  color: white;
  padding: 5px;
  font-family: "Space Mono", monospace;
  min-width: 50px;
}

.post__content table td {
  font-family: "Lora", serif;
  padding: 5px;
}

.post__content table a {
  text-decoration: none;
  border-bottom: inherit;
}

.post__video {
  width: 100%;
  max-width: var(--post-max-width);
  margin: auto;
}

.video-responsive {
  height: 0;
  overflow: hidden;
  padding-bottom: 56.25%;
  padding-top: 30px;
  position: relative;
  margin-bottom: 40px;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.post__content h1,
.post__content h2,
.post__content h3 {
  color: var(--text-color);
  margin-bottom: 40px;
  font-family: "Lora", serif;
}

.post__content blockquote p {
  padding-left: 20px;
  border-left: 4px solid var(--color-main);
  font-weight: bold;
}

@media (max-width: 1200px) {
  .post__content {
    margin-top: 20px;
  }

  .post__title {
    font-size: 48px;
  }
}

@media (max-width: 680px) {
  .post__title {
    font-size: 38px;
  }

  .post__title-block {
    margin-top: 60px;
  }
}
:root {
  --form-width: 600px;
  --form-extended-witdth: 1200px;
}

.login-block {
  padding: 300px 0;
  margin: auto;
  position: relative;
}

.login-block form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--form-width);
  margin: auto;
}

.login-block--extended form {
  max-width: var(--form-extended-witdth);
}

.login-block h1 {
  width: 100%;
  max-width: var(--form-width);
  margin: auto;
  margin-bottom: 50px;
  font-size: 34px;
  font-family: "Space Mono", monospace;
}

.login-block--extended h1 {
  max-width: var(--form-extended-witdth);
}

.login-block__notify {
  font-size: 14px;
  margin: auto;
  margin-top: 20px;
  max-width: var(--form-width);
  text-align: center;
}

.login-block__notify a {
  color: var(--color-main);
}

@media (max-width: 800px) {
  .login-block {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .login-block h1 {
    font-size: 24px;
  }
}

.hero-main {
  display: flex;
}

.hero-main__wrap {
  width: 50%;
  height: 600px;
}

.hero-secondary__wrap,
.hero-main__wrap {
  width: 100%;
  background-size: cover;
  padding: 20px;
  display: flex;
  text-decoration: none;
  color: white;
  align-items: flex-end;
}

.hero-secondary__wrap .hero-main__tag,
.hero-main__wrap .hero-main__tag {
  position: inherit;
}

.hero-secondary a {
  justify-content: left;
}

.hero-main__wrap:first-child {
  margin-right: 2px;
}

.hero-main__tag {
  padding: 2px 6px;
  background: var(--color-main);
  display: inline-block;
  font-family: "Space Mono", monospace;
  margin-bottom: 10px;
  font-size: 16px;
}

.hero-main__wrap h1,
.hero-secondary__wrap h1 {
  font-family: sans-serif;
  mix-blend-mode: exclusion;
}

.hero-secondary__wrap {
  margin-top: 2px;
  height: 300px;
}

.hero-main__data {
  width: 100%;
}

.hero-main__data--compact {
  width: 50%;
}

@media (max-width: 680px) {
  .hero-main {
    flex-wrap: wrap;
  }

  .hero-main__wrap:first-child {
    margin-right: 0;
    margin-bottom: 2px;
  }

  .hero-main__data--compact {
    width: 100%;
  }

  .hero-main__wrap {
    width: 100%;
    height: 300px;
  }

  .hero-secondary__wrap .hero-main__tag,
  .hero-main__wrap .hero-main__tag {
    display: inline-block;
  }
}

header {
  background: var(--color-black);
}

.header__main {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
}

header .logo-main {
  width: 100px;
}

.header__data {
  padding: 300px 0 30px;
  width: 100%;
  max-width: 650px;
}

.header__data h1 {
  font-size: 56px;
}

.header__data-excerpt {
  font-size: 20px;
  line-height: 1.8;
  margin-top: 20px;
}

.header--extended {
  height: 980px;
}

.header__data-pretitle {
  font-family: "Space Mono", monospace;
  font-size: 20px;
  text-transform: italic;
  margin-bottom: 20px;
}

.header__data-anchor {
  margin-top: 20px;
  display: inline-block;
}

.header__wrap-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header__wrap-right img {
  width: 34px;
  height: 34px;
}

@media (max-width: 1200px) {
  .header__data {
    padding-top: 120px;
  }

  .header--extended {
    height: inherit;
    padding-bottom: 40px;
  }

  .header__wrap-right {
    align-items: center;
  }
}

@media (max-width: 680px) {
  header .logo-main {
    width: 60px;
  }

  .header__main {
    padding: 10px 0;
  }

  .header__data h1 {
    font-size: 34px !important;
  }

  .header__wrap-right {
    flex-direction: row-reverse;
  }

  .header__wrap-right img {
    margin-left: 20px;
  }

  header .logo-login {
    margin-left: 15px;
  }

  .header__wrap-right button {
    display: flex;
    align-self: center;
  }
}

footer {
  background: var(--color-main);
  padding: 60px 0;
  color: white;
}

.footer__main {
  display: flex;
}

.footer__main-left,
.footer__main-middle,
.footer__main-right {
  width: 33%;
}

.footer__main-left svg {
  width: 150px;
}

.footer__main-middle {
  flex-direction: column;
  display: flex;
}

.footer__main-middle a {
  font-size: 46px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-family: sans-serif;
}

.footer__main-right p {
  margin-bottom: 20px;
  font-weight: bold;
}

.footer__main-right {
  flex-direction: column;
  display: flex;
  font-family: "Space Mono", monospace;
}

.footer__main-right a,
.footer__bottom a,
.footer__main-middle a {
  color: white;
  text-decoration: none;
  width: 100%;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 60px;
  font-family: "Space Mono", monospace;
}

.footer__bottom-left,
.footer__bottom-right {
  width: 50%;
}

.footer__bottom-left {
  display: flex;
  flex-direction: column;
}

.footer__bottom-right {
  text-align: right;
}

@media (max-width: 1200px) {
  .footer__main-middle a {
    font-size: 28px;
  }
}

@media (max-width: 680px) {
  .footer__main,
  .footer__bottom {
    flex-direction: column;
  }

  .footer__main-left,
  .footer__main-middle,
  .footer__main-right,
  .footer__bottom-left,
  .footer__bottom-right {
    width: 100%;
    text-align: center;
  }

  .footer__main-left svg {
    width: 100px;
  }

  .footer__main div:not(:last-child),
  .footer__bottom div:not(:last-child) {
    margin-bottom: 20px;
  }

  .footer__main-middle a {
    font-size: 24px;
  }
}

.comment-form {
  width: 100%;
  max-width: var(--post-content-max-width);
  margin: auto;
  padding: 20px 0 60px;
  display: flex;
  flex-direction: column;
}

.comment-form__inner {
  display: flex;
}

.comment-form__user-blocked,
.comment-form__not-allowed {
  background: var(--color-main);
  color: #ffffff;
  padding: 10px 8px;
}

.comment-form form {
  position: relative;
  width: 100%;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-dusty-grey);
}

.comment-form textarea {
  overflow: hidden;
  outline: none;
  border: none;
  border-radius: 0;
  font-size: 14px;
  color: var(--color-dusty-grey);
  padding: 5px 20px;
  margin-top: 0;
  min-height: 80px;
  max-height: 300px;
  resize: none;
}

.comment-form input[type="submit"] {
  background: transparent;
  color: var(--color-dusty-grey);
  padding: 0;
  font-size: 14px;
  margin-top: 0;
}

.comment-form img {
  width: 40px;
  height: 40px;
}

.comment-form__actions {
  display: flex;
  justify-content: space-between;
}

.comment-form__actions .buttons {
  padding: 0 20px;
  display: flex;
}

.comment-form__actions .buttons svg {
  height: 10px;
  width: 10px;
}
/* =============================================
   Comment Block — Reddit-style
   ============================================= */

.comment-block {
  max-width: var(--post-content-max-width);
  width: 100%;
  margin: auto;
  padding-bottom: 100px;
}

.comment-block__title {
  color: var(--color-main);
  font-family: "Space Mono", monospace;
  margin: 40px 0 24px;
}

.comment-block__item {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment-block__item:last-child {
  border-bottom: none;
}

/* Columna izquierda: avatar + hilo vertical */
.comment-block__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}

.comment-block__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-block__thread-line {
  flex: 1;
  width: 2px;
  background: #e8e8e8;
  border-radius: 2px;
  margin-top: 8px;
  min-height: 16px;
  transition: background 0.15s;
}

.comment-block__item:hover .comment-block__thread-line {
  background: var(--color-main);
}

/* Columna derecha: cabecera, contenido, pie */
.comment-block__main {
  flex: 1;
  min-width: 0;
}

.comment-block__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.comment-block__username {
  font-family: "Space Mono", monospace;
  font-weight: bold;
  font-size: 14px;
  color: #000;
  text-decoration: none;
}

.comment-block__username:hover {
  color: var(--color-main);
}

.comment-block__date {
  font-size: 12px;
  color: var(--color-dusty-grey);
  font-family: "Space Mono", monospace;
}

.comment-block__edited {
  font-size: 11px;
  color: #bbb;
  font-style: italic;
}

/* Contenido del comentario */
.comment-block__content {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
}

.comment-block__content p,
.comment-block__content blockquote,
.comment-block__content ul {
  margin-bottom: 16px;
  color: var(--text-color);
}

.comment-block__content p:last-child,
.comment-block__content blockquote:last-child,
.comment-block__content ul:last-child {
  margin-bottom: 0;
}

.comment-block__content blockquote {
  padding-left: 16px;
  border-left: 3px solid var(--color-main);
  color: var(--color-dusty-grey);
}

.comment-block__content a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 2px solid #e4444566;
}

.comment-block__content a:hover {
  border-bottom-color: var(--color-main);
}

.comment-block__deleted {
  font-style: italic;
  color: #bbb !important;
  font-size: 13px;
}

/* Pie: like + reacciones + acciones */
.comment-block__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-block__footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-block__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-block__action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: var(--color-dusty-grey);
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.comment-block__action-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.comment-block__action-btn--danger:hover {
  background: #fdf0f0;
  color: var(--color-main);
}

.comment-form__actions .buttons div {
  cursor: pointer;
}

.comment-form__actions .buttons div:not(:last-child) {
  margin-right: 5px;
}

@media (max-width: 800px) {
  .comment-block__title {
    font-size: 20px;
  }

  .comment-block__side {
    width: 32px;
  }

  .comment-block__avatar {
    width: 32px;
    height: 32px;
  }
}

.posts {
  padding: 80px 0;
}

.posts__wrap-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}

.posts__wrap-role {
  background: var(--color-grey);
  padding: 2px 5px;
  border-radius: 10px;
  font-size: 14px;
}

.posts--blocked {
  background: rgb(255, 179, 179);
}

.posts--active {
  background: rgb(174, 241, 174);
}

.posts__wrap-form {
  margin-bottom: 20px;
}

.posts__wrap-form input {
  width: 100% !important;
}

.posts__wrap-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.posts__wrap-item:not(:last-child) {
  border-bottom: 1px solid #00000066;
}

.posts__wrap-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  display: flex;
  align-self: center;
}

.posts__wrap-title {
  flex: 1 1 100%;
  align-items: center;
  display: flex;
}

.posts__wrap-status {
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.posts__actions {
  width: 50px;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: 20px;
}

.posts__actions a:not(:last-child) {
  margin-right: 5px;
}

.posts__actions svg {
  width: 20px;
  height: 20px;
}

.posts__published {
  background: greenyellow;
  color: green;
  padding: 2px 5px;
  border-radius: 5px;
}

.posts__not-published {
  background: rgb(250, 169, 169);
  color: red;
  padding: 2px 5px;
  border-radius: 5px;
}

.form__two-columns {
  position: relative;
  display: flex;
  margin-top: 20px;
}

.form__two-columns input {
  margin-top: 0 !important;
}

.form__two-columns input,
.form__two-columns select {
  flex: 1 1 100%;
}

.form__two-columns--color {
  width: 100px;
  flex: initial !important;
  margin-left: 20px;
}

.rcp-fields div:nth-child(2) {
  display: none;
}

.rcp {
  position: absolute;
  right: 60px;
  top: -100px;
  z-index: 200;
}

.form--slug {
  display: flex;
}

.form--slug p {
  margin-right: 10px;
}

.form--slug input {
  flex: 1 1 100%;
  padding: 2px 5px !important;
  font-size: 14px !important;
}

.post-management .form--submitted {
  position: fixed;
}

.add-posts {
  background: #fff8df;
  height: 126px;
  display: flex;
  opacity: 1;
  cursor: pointer;
}

.add-posts p {
  color: var(--color-main);
  font-weight: bold;
  font-family: "Space Mono", monospace;
  font-size: 20px;
}

.add-posts--hide {
  opacity: 0;
  height: 0;
  transition: opacity 0.25s ease-in-out, height 0.5s ease-in-out;
  -webkit-transition-delay: 0.4s;
  -moz-transition-delay: 0.4s;
  -o-transition-delay: 0.4s;
  transition-delay: 0.4s;
}

.separator {
  margin-bottom: 40px;
}

.pagination {
  width: 100%;
  justify-content: center;
  display: flex;
  margin-top: 40px;
}

.pagination button {
  padding: 10px 20px;
  border: 2px solid var(--color-main);
  border-radius: 5px;
  margin: 0 10px;
}

.form-link {
  background: #f1f4f7;
  border-bottom: 1px solid hsla(0, 0%, 60.8%, 0.4);
  display: none;
  padding: 5px;
  position: absolute;
  width: 100%;
  z-index: 100;
}

.form-link--open {
  display: flex;
}

.form-link input {
  font-size: 14px;
  height: fit-content;
  margin-top: 0 !important;
}

.form-link input:not(:last-child) {
  margin-right: 5px;
}

.logo-close {
  fill: #ffffff;
  width: 30px;
}

.logo-login {
  width: 30px;
}

.st0 {
  fill: none;
}
.st1 {
  enable-background: new;
}

.post-anchor {
  stroke: var(--color-main);
  width: 22px;
  stroke-width: 4px;
}

.logo-search {
  width: 30px;
}

.admin__menu {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.admin__menu a {
  width: 33%;
  text-align: center;
}

.admin__menu .btn-primary {
  background: white !important;
  color: black !important;
}

.admin__menu .active {
  background: var(--color-grey) !important;
}

.validate-wrap {
  padding-top: 350px;
  padding-bottom: 350px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.validate-wrap h1 {
  font-size: 40px;
  color: var(--color-main);
  text-align: center;
  font-family: "Space Mono", monospace;
}

.validate-wrap p {
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 800px) {
  .validate-wrap {
    padding-top: 250px;
    padding-bottom: 250px;
  }
}

@media (max-width: 600px) {
  .validate-wrap {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .validate-wrap h1 {
    font-size: 24px;
  }
}

.custom-error {
  display: flex;
  justify-content: center;
  padding: 100px 0;
}

.custom-error h1 {
  font-size: 100px;
  font-family: "Space Mono", monospace;
  color: var(--color-main);
  text-align: center;
}

.custom-error a {
  display: flex;
  margin: 40px auto;
}

.custom-error p {
  text-align: center;
}

.cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookie-banner__wrap {
  background: #ffffff;
  color: #000000;
  padding: 20px;
}

.cookie-banner__list-wrap {
  height: 300px;
  overflow: auto;
  margin-top: 20px;
}

.cookie-banner__wrap h3 {
  margin-bottom: 15px;
  text-align: center;
}

.cookie-banner form p {
  font-weight: inherit;
  flex: 1 1 100%;
  font-size: 14px;
  line-height: 20px;
}

.cookie-banner__list {
  cursor: pointer;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  font-weight: bold !important;
  margin-top: 10px;
  margin-bottom: 10px;
  font-style: italic;
}

.cookie-banner .btn-primary {
  margin-top: 20px;
}

.cookie-banner__item {
  display: flex;
  cursor: pointer;
}

.cookie-banner__item input {
  display: none;
}

.cookie-banner__checkbox {
  border: 2px solid var(--color-main);
  width: 18px;
  height: 18px;
  display: block;
  position: relative;
  border-radius: 2px;
}

.cookie-banner__checkbox-check {
  position: absolute;
  left: 1px;
  top: -4.5px;
  width: 15px;
  height: 15px;
  font-weight: bold;
  color: #ffffff;
}

.cookier-banner__checkbox-wrap {
  width: 80px;
  display: flex;
  margin-top: 21px;
  justify-content: center;
}

.cookie-banner__checkbox--checked {
  background: var(--color-main);
}

.cookie-banner__cta {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.cookie-banner__cta .btn-primary {
  width: fit-content;
  flex: inherit;
}

@media (max-width: 1200px) {
  footer .wrapper,
  .post-wrapper .wrapper,
  #header,
  .post__data,
  .post__content p,
  .post__content ul,
  .post__content h1,
  .post__content h2,
  .post__content h3,
  .post__content table,
  .add-posts .wrapper,
  .search-banner .wrapper,
  .post__title-block,
  .search-box__form,
  .login-block,
  .comment-form,
  .comment-block,
  .separator .wrapper,
  .user-comments .wrapper,
  .user-settings .wrapper,
  .validate-wrap,
  .custom-error {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* =============================================
   AI Badge
   ============================================= */
.ai-badge {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  border: 1px solid var(--color-grey);
  color: var(--color-grey);
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 8px;
}

/* =============================================
   Post Data Meta (autor + badge IA)
   ============================================= */
.post__data-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

/* =============================================
   Comments Sort
   ============================================= */
.comments-sort {
  display: flex;
  gap: 10px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin: 20px auto;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.comments-sort__btn {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  background: transparent;
  border: 1px solid #e0e0e0;
  color: #666;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.comments-sort__btn:hover {
  border-color: var(--color-main);
  color: var(--color-main);
}

.comments-sort__btn--active {
  background: var(--color-main);
  border-color: var(--color-main);
  color: #fff;
}

/* =============================================
   Comment Footer (like + reactions)
   ============================================= */
.comment-block__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.comment-block__like-btn {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  background: transparent;
  border: none;
  color: var(--color-grey);
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.15s;
}

.comment-block__like-btn:hover,
.comment-block__like-btn--active {
  color: var(--color-main);
}

/* =============================================
   Comment Reactions
   ============================================= */
.comment-reactions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  position: relative;
}

.comment-reactions__pill {
  font-size: 13px;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 20px;
  cursor: default;
  font-family: "Space Mono", monospace;
}

.comment-reactions__add-wrapper {
  position: relative;
}

.comment-reactions__add-btn {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  background: transparent;
  border: 1px solid #e0e0e0;
  color: var(--color-grey);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
}

.comment-reactions__add-btn:hover {
  border-color: var(--color-main);
  color: var(--color-main);
}

.comment-reactions__picker {
  position: absolute;
  bottom: 32px;
  left: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  z-index: 100;
  min-width: 200px;
}

.comment-reactions__picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s, border-color 0.15s;
  min-width: 52px;
}

.comment-reactions__picker-item:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #e0e0e0;
}

.comment-reactions__picker-item--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.comment-reactions__picker-emoji {
  font-size: 20px;
}

.comment-reactions__picker-cost {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--color-grey);
  margin-top: 2px;
}

/* =============================================
   Points Display
   ============================================= */
.points-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  color: var(--color-grey);
  margin: 4px 0 8px;
}

.points-display__badge-inline {
  background: var(--color-main);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Expanded (perfil) */
.points-display--expanded {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 12px 0 4px;
  max-width: 320px;
}

.points-display__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.points-display__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.points-display__badge {
  background: #fff;
  color: var(--color-main);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

.points-display__name {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
}

.points-display__total {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.points-display__track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  overflow: hidden;
}

.points-display__fill {
  height: 100%;
  background: #fff;
  border-radius: 6px;
  transition: width 0.5s ease;
  min-width: 4px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.points-display__hint {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* =============================================
   Comment Like (rediseño)
   ============================================= */
.comment-like {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.comment-like__btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.comment-like__btn svg {
  width: 16px;
  height: 16px;
  fill: var(--color-grey);
  transition: fill 0.15s;
}

.comment-like__btn:hover svg {
  fill: var(--color-main);
}

.comment-like__btn--active svg {
  fill: var(--color-main);
}

.comment-like__btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.comment-like__btn--disabled:hover svg {
  fill: var(--color-grey);
}

.comment-like__info {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  cursor: default;
}

.comment-like__avatars {
  display: flex;
  align-items: center;
}

.comment-like__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  background: var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  font-weight: bold;
  color: #fff;
  margin-left: -7px;
  flex-shrink: 0;
}

.comment-like__avatar:first-child {
  margin-left: 0;
}

.comment-like__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-like__count {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  color: var(--color-grey);
}

.comment-like__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
  min-width: 90px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Post-share botones (X, Threads, LinkedIn) */
.post-share__btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  display: block;
}

.post-share__btn svg {
  width: 28px;
  fill: var(--color-dusty-grey);
  transition: fill 0.15s;
}

.post-share__twitter .post-share__btn svg:hover,
.post-share__btn.post-share__twitter svg:hover {
  fill: #000;
}

.post-share__btn.post-share__threads svg:hover {
  fill: #000;
}

.post-share__btn.post-share__linkedin svg:hover {
  fill: #0077b5;
}

.post-share__btn.post-share__facebook svg:hover {
  fill: var(--color-facebook);
}

@media (max-width: 1200px) {
  .post-share__btn {
    margin-bottom: 0;
    margin-right: 20px;
  }
}

/* =============================================
   Image Upload (CMS)
   ============================================= */
.image-upload {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.image-upload input[type="text"] {
  flex: 1;
}

.image-upload__btn {
  display: inline-block;
  background: var(--color-main);
  color: #fff;
  padding: 10px 16px;
  font-family: "Space Mono", monospace;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.image-upload__btn:hover {
  opacity: 0.85;
}

.image-upload__preview {
  max-width: 200px;
  max-height: 120px;
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  .comments-sort {
    padding-right: 20px;
    padding-left: 20px;
  }
  .image-upload {
    flex-direction: column;
    align-items: flex-start;
  }
  .image-upload input[type="text"] {
    width: 100%;
  }
}

/* =============================================
   User Achievements
   ============================================= */
.user-achievements {
  padding: 80px 0 120px;
}

.user-achievements__title {
  font-family: "Space Mono", monospace;
  font-size: 18px;
  margin-bottom: 28px;
}

.user-achievements__title--locked {
  margin-top: 60px;
  opacity: 0.5;
}

.user-achievements__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.achievement {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #f7f7f7;
  border: 2px solid #e8e8e8;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}

.achievement--unlocked {
  opacity: 1;
  border-color: #e0e0e0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.achievement__icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.achievement__body {
  flex: 1;
  min-width: 0;
}

.achievement__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.achievement__title {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: bold;
  color: var(--color-text);
}

.achievement__tier-badge {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: bold;
}

.achievement__desc {
  font-size: 12px;
  color: var(--color-grey);
  margin: 0 0 8px;
  line-height: 1.4;
}

.achievement__track {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.achievement__fill {
  height: 100%;
  background: var(--color-main);
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 3px;
}

.achievement__progress-text {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--color-grey);
  margin: 0 0 6px;
}

.achievement__maxed {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: #ffd700;
  margin: 4px 0;
}

.achievement__unlocks {
  font-size: 11px;
  color: #555;
  margin: 4px 0 0;
}

.achievement__unlocks--locked {
  color: #bbb;
}

@media (max-width: 800px) {
  .user-achievements {
    padding: 40px 0 80px;
  }

  .user-achievements__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Comment block (Anaitgames style) ───────────────────────────── */
.cb {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.cb__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
}

.cb__item {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.3s, background 0.3s;
}

.cb__item--highlighted {
  border-color: var(--color-main);
  background: #fff5f5;
}

.cb__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cb__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cb__meta {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.cb__username {
  font-weight: 700;
  font-size: 14px;
  color: #111;
  text-decoration: none;
}
.cb__username:hover { text-decoration: underline; }

.cb__date {
  font-size: 12px;
  color: #888;
}

.cb__edited {
  font-size: 12px;
  color: #aaa;
}

.cb__admin-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.cb__action-btn {
  font-size: 12px;
  font-family: inherit;
  padding: 4px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #f7f7f7;
  cursor: pointer;
  color: #333;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
}
.cb__action-btn:hover { background: #e8e8e8; border-color: #aaa; }

.cb__action-btn--danger {
  border-color: #e8b4b4;
  color: #c00;
  background: #fff5f5;
}
.cb__action-btn--danger:hover { background: #fee; border-color: #e55; }

/* Quote block inside a comment */
.cb__quote {
  margin: 0 0 10px;
  padding: 10px 14px;
  background: #f2f2f2;
  border-radius: 4px;
}

.cb__quote-user {
  font-size: 12px;
  font-weight: 700;
  color: #444;
  display: block;
  margin-bottom: 4px;
}

.cb__quote-text {
  font-size: 13px;
  color: #333;
  margin: 0;
  white-space: pre-wrap;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Content */
.cb__content {
  font-size: 15px;
  line-height: 1.6;
  color: #222;
  margin-bottom: 12px;
}

.cb__content p { margin: 0 0 8px; }
.cb__content p:last-child { margin-bottom: 0; }

.cb__deleted {
  color: #999;
  font-style: italic;
  font-size: 13px;
  margin: 0;
}

/* Footer */
.cb__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cb__footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Quote button */
.cb__quote-btn {
  font-size: 12px;
  font-family: inherit;
  padding: 4px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #f7f7f7;
  cursor: pointer;
  color: #555;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
}
.cb__quote-btn:hover { background: #e8e8e8; border-color: #aaa; color: #111; }

/* Like button */
.comment-like {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-like__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: #aaa;
  transition: color 0.15s;
}
.comment-like__btn:hover { color: #e55; }
.comment-like__btn--active { color: #e55; }
.comment-like__btn--disabled { cursor: default; opacity: 0.4; }
.comment-like__btn svg { width: 18px; height: 18px; }

/* Like avatars & tooltip */
.comment-like__info {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.comment-like__avatars {
  display: flex;
}

.comment-like__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  margin-left: -6px;
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  position: relative;
}
.comment-like__avatar:first-child { margin-left: 0; }
.comment-like__avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-like__count {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.comment-like__tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #111;
  color: #fff;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
  pointer-events: none;
}

/* Comment form quote preview */
.comment-form__quote-preview {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #f2f2f2;
  border-radius: 4px;
}

.comment-form__quote-user {
  font-size: 12px;
  font-weight: 700;
  color: #444;
  display: block;
  margin-bottom: 4px;
}

.comment-form__quote-text {
  font-size: 13px;
  color: #333;
  margin: 0 0 8px;
  white-space: pre-wrap;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.comment-form__quote-clear {
  background: none;
  border: none;
  font-size: 11px;
  color: #888;
  cursor: pointer;
  padding: 0;
}
.comment-form__quote-clear:hover { color: #c00; }

/* ─── Avatar wrap + notification badge ───────────────────────────── */
.header__avatar-wrap {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ─── Notification bell ───────────────────────────────────────────── */
.notif-bell {
  position: absolute;
  left: -8px;
  top: -6px;
  z-index: 10;
}

.notif-bell__badge-btn {
  background: #e00;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  padding: 2px 5px;
  min-width: 18px;
  text-align: center;
  cursor: pointer;
  display: block;
}

.notif-bell__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  z-index: 100;
  overflow: hidden;
}

.notif-bell__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}

.notif-bell__heading {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.notif-bell__read-all {
  background: none;
  border: none;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  padding: 0;
}
.notif-bell__read-all:hover { color: #111; }

.notif-bell__empty {
  padding: 20px 14px;
  font-size: 13px;
  color: #999;
  text-align: center;
  margin: 0;
}

.notif-bell__list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-bell__item {
  display: block;
  padding: 12px 14px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
  line-height: 1.4;
}
.notif-bell__item:last-child { border-bottom: none; }
.notif-bell__item:hover { background: #f7f7f7; }

.notif-bell__item--unread {
  background: #fff8f0;
}
.notif-bell__item--unread:hover { background: #fff0e0; }

.notif-bell__from {
  font-weight: 700;
  color: #111;
}

.notif-bell__post {
  color: #666;
  font-style: italic;
}

.notif-bell__preview {
  margin: 4px 0 0;
  color: #777;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-bell__time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #aaa;
}

.notif-bell__footer {
  padding: 10px 14px;
  border-top: 1px solid #eee;
  text-align: center;
}

.notif-bell__see-all {
  font-size: 12px;
  color: var(--color-main, #ec6060);
  text-decoration: none;
  font-weight: 600;
}
.notif-bell__see-all:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .notif-bell__dropdown {
    width: 290px;
    right: -60px;
  }

  .cb__admin-actions {
    flex-direction: column;
    gap: 4px;
  }
}

/* ─── Página de notificaciones ────────────────────────────────────── */
.notif-page {
  padding: 160px 0;
}

.notif-page__inner {
  max-width: 680px;
}

.notif-page__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.notif-page__header h1 {
  font-family: "Space Mono", monospace;
  font-size: 28px;
  margin: 0;
}

.notif-page__mark-all {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  padding: 6px 14px;
  border: 1px solid #111;
  background: transparent;
  cursor: pointer;
  color: #111;
  letter-spacing: 0.03em;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.15s, color 0.15s;
}
.notif-page__mark-all:hover {
  background: #111;
  color: #fff;
}

.notif-page__section {
  margin-bottom: 48px;
}

.notif-page__section-label {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-page__section-label--read {
  color: #bbb;
}

.notif-page__count {
  background: var(--color-main);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  font-family: "Space Mono", monospace;
}

.notif-page__empty {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  color: #aaa;
  margin: 60px 0;
  text-align: center;
}

.notif-page__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.12s;
}
.notif-page__item:first-child { border-top: 1px solid #eee; }
.notif-page__item:hover { opacity: 0.75; }

.notif-page__item--read .notif-page__item-main {
  color: #999;
}
.notif-page__item--read .notif-page__item-preview {
  color: #bbb;
}

.notif-page__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-main);
  flex-shrink: 0;
  margin-top: 7px;
}

.notif-page__item-text {
  flex: 1;
  min-width: 0;
}

.notif-page__item-main {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 4px;
  color: #111;
}

.notif-page__item-main strong {
  font-weight: 700;
}

.notif-page__item-main em {
  font-style: italic;
  color: #555;
}

.notif-page__item-preview {
  font-size: 13px;
  color: #888;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}

.notif-page__item-time {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: #bbb;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}

@media (max-width: 800px) {
  .notif-page {
    padding: 60px 0;
  }

  .notif-page__inner {
    padding: 0 20px;
  }

  .notif-page__header h1 {
    font-size: 22px;
  }

  .notif-page__item {
    flex-wrap: wrap;
  }

  .notif-page__item-time {
    width: 100%;
    margin-top: 2px;
  }
}
