@import url("variables.css");

/* =========================================
   BASE STYLES
   ========================================= */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  user-select: none;
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
  color: var(--textcolor);
  overflow-x: hidden;
}

a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-decoration: none;
  color: var(--textcolor);
  font-weight: 600;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.navbar {
  width: 100%;
  max-width: 87vw;
  margin: 0 auto;
  padding: 4vh 8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navlogo {
  max-width: 15vh;
  height: auto;
  display: block;
}

nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin-left: 4vh;
  font-size: 2.3vh;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  display: inline-block;
}

nav li::after {
  content: attr(data-after);
  display: inline-block;
  transform: translateY(20%);
  position: absolute;
  left: 0;
  transition: inherit;
}

nav a {
  display: inline-block;
  transform: translateY(0%);
  transition: transform 0.2s ease, color 0.3s ease;
}

nav li:hover a {
  transform: translateY(-20%);
  color: var(--primary);
}

nav li:hover::after {
  transform: translateY(0%);
}

/* =========================================
   ARTICLE LAYOUT
   ========================================= */
.content {
  padding-top: 15vh;
}

main {
  position: relative;
  display: flex;
}

.article {
  text-align: left;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 87vw;
  margin: 0 auto;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

.article-header {
  width: 100%;
  max-width: 50%;
  margin: 5rem auto 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1 {
  font-weight: bold;
  font-family: var(--font-primary);
  text-align: center;
  width: 100%;
  align-self: center;
  font-size: 40px;
  padding: 0;
  margin-bottom: 1rem;
}

/* =========================================
   COMPONENTS
   ========================================= */
/* Quote */
.quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: 2rem;
  padding: 0 8rem;
  box-sizing: border-box;
}

.quote i {
  color: var(--primary);
  font-size: 2em;
  margin-bottom: 1rem;
}

.quote h3 {
  font-family: var(--font-primary);
  font-size: 3.5vh;
  font-weight: bolder;
  margin: 0 0 1rem 0;
  color: var(--primary);
  width: 100%;
}

.quote h5 {
  font-family: var(--font-secondary);
  font-size: 2vh;
  font-weight: lighter;
  margin: 0;
}

.category {
  font-family: var(--font-secondary);
  font-size: 2vh;
  font-weight: lighter;
  margin: 0 0 1rem 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

.lineimg {
  width: 70px;
  height: 7.5px;
  margin: 4vh 0;
}

.article p {
  font-size: 3vh;
  padding: 0 8rem;
  width: 100%;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.first-letter {
  float: left;
  font-size: 5.5rem;
  line-height: 0.75;
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.08em;
  margin-top: 0.08em;
  margin-bottom: -0.15em;
  font-family: var(--font-primary);
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.artimg {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  height: 60vh;
  object-fit: cover;
  margin-top: 1rem;
  margin-bottom: 4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.menuicon {
  display: none;
  cursor: pointer;
  width: 25px;
  height: 20px;
  position: absolute;
  right: 50px;
  filter: brightness(0);
}

.mobileitems {
  display: none;
}

p a {
  color: var(--primary);
  text-decoration: underline;
}

/* Like Button */
.like-button {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  padding-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
  gap: 1rem;
  justify-content: center;
}

.like-button p {
  font-family: var(--font-secondary);
  font-weight: lighter;
  font-size: 3vh;
  margin: 0;
  width: auto;
  padding: 0;
}

.like-button i {
  font-size: 1.5rem;
}

.like-button span {
  font-family: var(--font-secondary);
  font-size: 3vh;
  transition: transform 0.3s ease-in-out;
}

.full {
  transform-origin: center bottom;
}

.clicked {
  animation: bounce 0.5s ease-in-out forwards;
}

@keyframes bounce {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(-10deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* =========================================
   RESPONSIVE
   ========================================= */
.nav-toggle {
  display: none;
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 5%;
    width: 90%;
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    border-radius: 20px;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
  }

  .nav-links.closing {
    display: flex;
    animation: slideUp 0.3s ease-in forwards;
    pointer-events: none;
  }

  .nav-links li {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-links li a {
    color: var(--textcolor);
    display: block;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links li a:hover {
    background-color: rgba(225, 108, 91, 0.08);
    color: var(--primary);
  }

  .nav-toggle {
    display: block;
    cursor: pointer;
    transition: transform 400ms;
    stroke: var(--primary);
    margin-right: -15px;
  }

  .nav-toggle.active {
    transform: rotate(45deg);
  }

  .nav-line {
    fill: none;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    stroke-width: 5.5;
    stroke-linecap: round;
  }

  .nav-animation .top {
    stroke-dasharray: 40 121;
  }

  .nav-animation .bottom {
    stroke-dasharray: 40 121;
  }

  .nav-animation.active .top {
    stroke-dashoffset: -68px;
  }

  .nav-animation.active .bottom {
    stroke-dashoffset: -68px;
  }

  .navlogo {
    padding-left: 0;
  }

  .navbar {
    padding: 1.2rem;
  }

  .article p,
  .quote h3 {
    padding: 0 2rem !important;
  }

  .quote {
    padding: 0 1rem !important;
    margin-bottom: 2rem;
  }

  .article-header {
    max-width: 90%;
    padding: 0 1rem;
  }

  h1 {
    font-size: 36px;
  }

  .article p {
    font-size: 2.5vh;
  }

  .like-button {
    padding-bottom: 20px;
  }

  .first-letter {
    font-size: 4.2rem;
    margin-right: 0.14em;
    margin-top: 0.15em;
    margin-bottom: -0.1em;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideUp {
    from {
      opacity: 1;
      transform: translateY(0);
    }

    to {
      opacity: 0;
      transform: translateY(-10px);
    }
  }
}