*,
:after,
:before {
  border: 0 solid #e5e7eb;
  box-sizing: border-box;
}

html {
  font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji,
    Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  line-height: inherit;
  font-family: "Geometria", sans-serif;
  font-weight: 400;
  color: rgba(33, 33, 33, 1);
  background-color: rgba(255, 255, 255, 1);
  margin: 0;
  padding: 0;
}

.link {
  color: rgba(71, 96, 255, 1);
}

a {
  color: inherit;
  text-decoration: inherit;
}

strong {
  font-weight: bolder;
}

button,
input {
  color: inherit;
  font-feature-settings: inherit;
  font-size: 100%;
  font-variation-settings: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
}

button {
  background-color: transparent;
  background-image: none;
  text-transform: none;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

blockquote,
ul {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

input::-moz-placeholder {
  color: #9ca3af;
  opacity: 1;
}

input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  vertical-align: middle;
}

img {
  height: auto;
  max-width: 100%;
}

em {
  font-style: italic;
}

[hidden] {
  display: none;
}

.container {
  width: 100%;
  max-width: 1660px;
  padding: 0px 20px;
  margin: 0 auto;
}

.wrapper {
  display: flex;
  flex-direction: row;
  gap: 50px;
}

.main-btn {
  border-radius: 20px;
  border: 1px solid rgba(33, 33, 33, 1);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.main-btn:hover {
  background-color: rgba(71, 96, 255, 1);
  color: rgba(255, 255, 255, 1);
  border: 1px solid rgba(71, 96, 255, 1);
}

/* HEADER */
.header {
  padding: 25px 0px;
  border-bottom: 1px solid rgba(160, 160, 160, 1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-width: 155px;
  height: 30px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 30px;
}

.sign-in {
  text-transform: uppercase;
  font-weight: 700;
}

/* ARTICLE */
.article-info {
  width: 600px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.article {
  flex: 1;
}

.article-title {
  font-size: 48px;
  font-weight: 700;
  padding-top: 100px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  object-fit: cover;
}

.author-name {
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}

.author-date {
  font-size: 14px;
  color: rgba(81, 81, 81, 1);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions div {
  display: flex;
  align-items: center;
  gap: 30px;
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background-color: rgba(240, 240, 240, 1);
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
  position: relative;
}

.action img {
  transition: filter 0.1s ease;
}

.action:hover {
  background-color: rgba(71, 96, 255, 1);
  color: rgba(255, 255, 255, 1);
}

.action:hover img {
  filter: brightness(0) invert(1);
}

.article p {
  font-size: 18px;
}

.article h3 {
  font-size: 20px;
  margin: 50px 0px;
}

.article-image img {
  margin: 50px 0px;
}

/* COMMENTS */
.comments {
  padding-bottom: 40px;
}

.comment-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 600px;
}

.comment-title {
  font-size: 48px;
  font-weight: 700;
  padding-top: 100px;
  margin: 0;
}

.comment-form__wrapper {
  position: relative;
  padding: 10px;
}

.comment-form {
  display: flex;
  gap: 7px;
}

.form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
}

.comment-box {
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  width: 100%;
}

.comment-avatar {
  width: 43px;
  height: 43px;
}

.comment-input {
  flex-grow: 1;
  padding: 10px 16px 40px 16px;
  font-size: 18px;
  line-height: 24px;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(160, 160, 160, 1);
}

.comment-signin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 99;
}

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 10px;
}

.icon-button {
  background: rgba(240, 240, 240, 1);
  border: none;
  border-radius: 20px;
  cursor: not-allowed;
  transition: background-color 0.3s ease;
}

.icon-button--icon {
  padding: 0;
}

.icon-button--text {
  padding: 10px 15px;
}

.comment-body {
  padding-top: 100px;
  flex: 1;
}

.comment-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
}

.comment-sort:hover {
  opacity: 0.8;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment {
  display: flex;
  gap: 10px;
  padding: 10px 0px;
}

.comment-user-avatar img {
  min-width: 50px;
  height: 50px;
  border-radius: 999px;
}

.comment-content {
  flex-grow: 1;
  line-height: 24px;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-author {
  font-weight: 700;
  font-size: 18px;
}

.comment-date {
  font-size: 14px;
  color: rgba(160, 160, 160, 1);
}

.comment-text {
  font-size: 16px;
  margin: 10px 0px;
}

.comment-footer {
  display: flex;
  gap: 37px;
  font-size: 14px;
  color: rgba(160, 160, 160, 1);
}

.likes {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(160, 160, 160, 1);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
}

.likes img {
  filter: brightness(0) saturate(100%) invert(46%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(96%) contrast(91%);
  width: 20px;
  height: 20px;
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(160, 160, 160, 1);
  padding: 30px 0px;
  font-size: 18px;
  line-height: 24px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.footer-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  text-decoration: underline;
  flex-wrap: wrap;
}

.footer-legal p {
  margin: 0;
}

@media (max-width: 1024px) {
  .wrapper {
    flex-direction: column;
    gap: 50px;
  }

  .article-info,
  .comment-info {
    gap: 50px;
    width: 100%;
  }

  .article-title,
  .comment-title {
    padding-top: 50px;
  }

  .comment-body {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0px 10px;
  }

  .logo {
    width: 129px;
    height: 25px;
  }
  .header-controls {
    gap: 25px;
  }

  .article-info,
  .comment-info {
    gap: 30px;
  }

  .article-title {
    font-size: 32px;
  }
}
