/* ==========================================================================
   Post
   ========================================================================== */

.post main .container {
  padding-block-start: 4.5rem;
  padding-inline: 0;
}

.post .post-content {
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-area: post-content;
  padding: 1rem;
}

.post .post-body h2 {
  font-size: 1.8rem;
  line-height: 2rem;
  margin-bottom: 0;
  padding-bottom: 0;
}

.post .post-body h2::after {
  display: none;
}

.post .post-content ul li {
  padding-inline-start: 1rem;
  position: relative;
}

.post .post-content ul li::before {
  background-color: var(--color-primary-dark);
  border-radius: var(--radius-md);
  content: '';
  height: .5rem;
  inset-inline-start: 0;
  position: absolute;
  top: .6rem;
  width: .5rem;
}

.post .post-content ol {
  counter-reset: item;
  list-style: none;
  padding: 0;
}

.post .post-content ol li {
  counter-increment: item;
  padding-inline-start: 1.5rem;
  position: relative;
}

.post .post-content ol li::before {
  color: var(--color-primary-dark);
  content: counter(item) '.';
  font-weight: 600;
  inset-inline-start: 0;
  position: absolute;
  top: 0;
}

.post .post-body a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  transition: background-color var(--transition-normal), color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.post .post-body a:hover,
.post .post-body a:focus-visible {
  color: var(--color-primary-dark);
}

.post .post-header .post-lead {
  padding-bottom: 1rem;
}

.post .post-header .post-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.2rem;
  gap: 1rem 1.5rem;
  justify-content: flex-start;
  padding-bottom: .5rem;
}

.post .post-header .post-meta .date,
.post .post-header .post-meta .reading-time {
  align-items: center;
  display: flex;
  gap: .5rem;
  justify-content: flex-start;
}

.post .post-header .post-meta svg {
  color: var(--color-gray-600);
  flex-shrink: 0;
}

.post .post-header .post-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post .post-header .post-cover img {
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.post .post-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post .post-body img {
  background-color: var(--color-gray-100);
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  padding: .5rem;
  width: auto;
  box-sizing: border-box;
}



/* ==========================================================================
   Destination Box
   ========================================================================== */

.post .post-content .destination-box {
  background-color: color-mix(in srgb, var(--color-primary) 15%, var(--color-white));
  border: .1rem solid color-mix(in srgb, var(--color-primary-darker) 15%, var(--color-white));
  border-radius: var(--radius-md);
  padding: 1rem;
  width: 100%;
}

.post .post-content .destination-box svg {
  color: var(--color-primary);
}

.post .post-content .destination-box a.btn svg {
  color: var(--color-white);
  flex-shrink: 0;
}

.post .post-content .destination-box h3 {
  color: var(--color-primary-darker);
  text-transform: uppercase;
}

.post .post-content .destination-box a {
  text-decoration: none;
}

.post .post-content .destination-box a.btn {
  color: var(--color-white);
  margin-block: .5rem 0;
}

.post .post-content .destination-box .destination-header {
  align-items: center;
  display: flex;
  gap: .5rem;
  padding-bottom: .5rem;
}

.post .post-content .destination-box .destination-section-header {
  align-items: center;
  border-top: .1rem dashed color-mix(in srgb, var(--color-primary-darker) 25%, var(--color-white));
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  padding-block: 1rem .5rem;
}

.post .post-content .destination-box .destination-body section:last-of-type {
  border-bottom: .1rem dashed color-mix(in srgb, var(--color-primary-darker) 25%, var(--color-white));
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.post .post-content .destination-box .destination-attention {
  align-items: center;
  background-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-white));
  border: .1rem solid color-mix(in srgb, var(--color-primary-darker) 20%, var(--color-white));
  border-radius: var(--radius-md);
  display: flex;
  gap: .5rem;
  margin-block: .5rem;
  padding: .5rem;
}

.post .post-content .destination-box .destination-attention > div {
  flex: 1;
}

.post .post-content .destination-box .destination-attention p {
  font-size: 1.2rem;
  line-height: 1.4rem;
}

.post .post-content .destination-box .destination-tip {
  align-items: center;
  background-color: var(--color-yellow-lightest);
  border: .1rem solid var(--color-yellow-light);
  border-radius: var(--radius-md);
  display: flex;
  gap: .5rem;
  padding: .5rem;
}

.post .post-content .destination-box .destination-tip svg {
  color: var(--color-yellow);
  font-weight: 800;
  text-transform: uppercase;
  flex: 0 0 3.2rem;
  height: 3.2rem;
  width: 3.2rem;
}

.post .post-content .destination-box .destination-tip p {
  color: var(--color-yellow-dark);
  font-size: 1.2rem;
  line-height: 1.4rem;
}

.post .post-content .destination-box .destination-tip p .title {
  color: var(--color-yellow);
  font-weight: 700;
  text-transform: uppercase;
}



/* ==========================================================================
   Vídeo
   ========================================================================== */

.post .post-content .video {
  margin: 0 auto;
  max-width: 60rem;
}

.post .post-content .video > a {
  background-color: var(--color-white);
  border: .1rem solid var(--color-gray-100);
  border-radius: var(--radius-md);
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.post .post-content .video > a:hover,
.post .post-content .video > a:focus-visible {
  box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .25);
  color: inherit;
  transform: translateY(-.3rem);
}

.post .post-content .video .video-media {
  aspect-ratio: 16 / 9;
  inline-size: 100%;
  overflow: hidden;
  position: relative;
}

.post .post-content .video .video-media img {
  block-size: 100%;
  inline-size: 100%;
  object-fit: cover;
  padding: 0;
}

.post .post-content .video .video-media::after {
  background: url('../images/brands/youtube-icon.svg') no-repeat center;
  background-size: 8.4rem 6rem;
  content: '';
  height: 6rem;
  inline-size: 8.4rem;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.post .post-content .video .video-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: .5rem;
  text-align: center;
}

.post .post-content .video .video-content .video-header {
  align-items: center;
  display: flex;
  gap: .5rem;
  justify-content: center;
}

.post .post-content .video .video-content .video-header .video-title {
  font-size: 1.4rem;
  line-height: 1.6rem;
}



/* ==========================================================================
   Post Tags
   ========================================================================== */

.post-tags {
  border-block: .1rem solid var(--color-gray-100);
  margin-block: 1rem;
  padding-block: 2rem;
}

.post .post-content .post-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post .post-content .post-tags li {
  font-size: 1.2rem;
  margin: 0;
  padding-inline-start: 0;
}

.post .post-content .post-tags li::before {
  display: none;
}

.post .post-content .post-tags a {
  background-color: color-mix(in srgb, var(--color-primary) 15%, var(--color-white));
  color: var(--color-primary-darker);
  display: inline-block;
  padding: .3rem;
  text-decoration: none;
  transition: background-color var(--transition-normal);
}

.post .post-content .post-tags a:hover,
.post .post-content .post-tags a:focus-visible {
  background-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-white));
}



/* ==========================================================================
   Post Comments
   ========================================================================== */

.post .post-content .post-comments .post-comments-header {
  align-items: center;
  border-top: .1rem solid var(--color-gray-100);
  color: var(--color-primary-dark);
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  padding-block: 2rem 1rem;
}

.post .post-content .post-comments .comments-list,
.post .post-content .post-comments .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post .post-content .post-comments ol li::before {
  display: none;
}

.post .post-content .post-comments .comment {
  margin: 0;
  padding: 0;
}

.post .post-content .post-comments .comment-body {
  display: grid;
  gap: 0 .5rem;
  grid-template-columns: 5rem minmax(0, 1fr);
  margin-block: 1rem;
}

.post .post-content .post-comments .comment-author {
  display: contents;
}

.post .post-content .post-comments .comment-author .avatar {
  background-color: transparent;
  border-radius: 50%;
  display: block;
  grid-column: 1;
  grid-row: span 3;
  height: 5rem;
  margin: 0;
  object-fit: cover;
  padding: 0;
  width: 5rem;
}

.post .post-content .post-comments .comment-author .fn {
  color: var(--color-primary-dark);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 700;
  min-width: 0;
}

.post .post-content .post-comments .comment-author .fn a {
  color: inherit;
}

.post .post-content .post-comments .says {
  font-size: 1.2rem;
  line-height: 1.4rem;
}

.post .post-content .post-comments .comment-meta {
  grid-column: 2;
  min-width: 0;
}

.post .post-content .post-comments .comment-meta a {
  color: var(--color-gray-300);
  font-size: 1rem;
  text-decoration: none;
}

.post .post-content .post-comments .comment-body > p {
  font-size: 1.4rem;
  grid-column: 2;
  line-height: 1.6rem;
}

.post .post-content .post-comments .comment-body .reply {
  display: none;
}

.post .post-content .post-comments .children {
  margin-inline-start: 4rem;
  position: relative;
}

.post .post-content .post-comments .children::before {
  background-color: var(--color-gray-100);
  content: '';
  height: 4rem;
  inset-inline-start: -4rem;
  position: absolute;
  top: -2rem;
  width: 4rem;
  mask: url('../images/icons/reply.svg') center / contain no-repeat;
  -webkit-mask: url('../images/icons/reply.svg') center / contain no-repeat;
  transform: rotate(180deg);
}

.post .post-content .post-comments .post-comments-form {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
}

.post .post-content .post-comments .post-comments-form  input,
.post .post-content .post-comments .post-comments-form  textarea {
  background-color: var(--color-gray-100);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-gray-800);
  font-size: 1.6rem;
  padding: .75rem;
  width: 100%;
}

.post .post-content .post-comments .post-comments-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.post .post-content .post-comments .post-comments-form .btn {
  align-self: center;
}



/* ==========================================================================
   Post Navigation
   ========================================================================== */

.post .post-content .post-navigation {
  border-top: .1rem solid var(--color-gray-100);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding-top: 2rem;
}

.post .post-content .post-navigation .post-navigation-item {
  border: .1rem solid var(--color-gray-100);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.post .post-content .post-navigation .post-navigation-item:hover,
.post .post-content .post-navigation .post-navigation-item:focus-visible {
  box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .25);
  transform: translateY(-.3rem);
}

.post .post-content .post-navigation .post-navigation-item.next {
  text-align: end;
}

.post .post-navigation .post-navigation-item.next .post-navigation-content {
  align-items: flex-end;
}

.post .post-content .post-navigation .post-navigation-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: 100%;
}

.post .post-body .post-navigation .post-navigation-image img {
  background: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
  padding: 0;
  width: 100%;
}

.post .post-content .post-navigation .post-navigation-content {
  padding: 1rem;
}

.post .post-content .post-navigation .post-navigation-label {
  color: var(--color-primary-dark);
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2rem;
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.post .post-content .post-navigation .post-navigation-title {
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1.6rem;
  margin: 0;
}

.post .post-content .post-navigation .post-navigation-title::after {
  display: none;
}



/* ==========================================================================
   Post Sidebar
   ========================================================================== */

.post .post-sidebar {
  align-self: start;
  grid-area: post-sidebar;
  position: static;
}

.post .post-sidebar .related-articles {
  padding: 2rem 1rem 1rem;
}

.post .post-sidebar .related-articles .cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.post .post-sidebar .related-articles .card {
  flex: 0 0 60%;
  scroll-snap-align: start;
}

.post .post-sidebar .related-articles .card a {
  background-color: var(--color-white);
  border: .1rem solid var(--color-gray-100);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.post .post-sidebar .related-articles .card a:hover,
.post .post-sidebar .related-articles .card a:focus-visible {
  box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .25);
  transform: translateY(-.3rem);
}

.post .post-sidebar .related-articles .card .card-content {
  padding: .5rem;
}

.post .post-sidebar .related-articles .card h3 {
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  line-height: 1.6rem;
}



/* ==========================================================================
   Responsive Desktop
   ========================================================================== */
   
@media (min-width: 1024px) {

  .post main .container {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-areas:
      "post-content post-sidebar";
    grid-template-columns: minmax(0, 5fr) minmax(0, 1fr);
    padding-block-start: 5rem;
  }

  .post .post-content h2 {
    color: inherit;
    font-size: 2rem;
    line-height: 2.2rem;
  }

  .post .post-header .post-title {
    font-size: 2.2rem;
  }

  .post .post-content .destination-body {
    column-gap: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post .post-content .destination-body > aside {
    grid-column: 1 / -1;
  }

  .post .post-content .destination-box .destination-tip p {
    font-size: 1.4rem;
    line-height: 1.6rem;
  }

  .post .post-content .video .video-content .video-header .video-title {
    font-size: 1.6rem;
    line-height: 1.8rem;
  }

  .post .post-content .post-navigation {
    gap: 5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post .post-content .post-navigation .post-navigation-label {
    font-size: 1.2rem;
    line-height: 1.4rem;
  }

  .post .post-content .post-navigation .post-navigation-title {
    font-size: 1.6rem;
    line-height: 2rem;
  }

  .post .post-sidebar {
    position: sticky;
    top: 1rem;
  }

  .post .post-sidebar .related-articles {
    padding: .5rem;
  }

  .post .post-sidebar .related-articles h2 {
    font-size: 1.4rem;
    line-height: 1.6rem;
    padding-bottom: .5rem;
  }

  .post .post-sidebar .related-articles h2::after {
    height: .2rem;
    width: 3rem;
  }

  .post .post-sidebar .related-articles .cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .post .post-sidebar .related-articles .card {
    flex: none;
  }

  .post .post-content .post-comments p {
    font-size: 1.4rem;
    line-height: 1.8rem;
  }

}



/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .post .post-navigation .post-navigation-item,
  .post .post-sidebar .related-articles .card a,
  .post .post-content .video,
  .post .post-tags a,
  .post .post-navigation .post-navigation-item:hover,
  .post .post-navigation .post-navigation-item:focus-visible,
  .post .post-sidebar .related-articles .card:hover a,
  .post .post-sidebar .related-articles .card a:focus-visible {
    transform: none;
  }

}