@font-face {
  font-family: 'Fraunces Italic';
  src: url(/assets/fonts/fraunces/Fraunces-Italic-VariableFont_SOFT\,WONK\,opsz\,wght.ttf);
}

@font-face {
  font-family: 'Fraunces';
  src: url(/assets/fonts/fraunces/Fraunces-VariableFont_SOFT\,WONK\,opsz\,wght.ttf);
}

@font-face {
  font-family: 'Dmmono medium';
  src: url(/assets/fonts/dm-mono/DMMono-Medium.ttf);
}

@font-face {
  font-family: 'Dmmono regular';
  src: url(/assets/fonts/dm-mono/DMMono-Regular.ttf);
}

@font-face {
  font-family: 'Dm sans';
  src: url(/assets/fonts/dm-sans/DMSans-VariableFont_opsz\,wght.ttf);
}

*,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: hsl(35, 60%, 96%);
}

.page-container {
  display: grid;
  grid-template-columns: 1fr 5fr;
}

/* === Navigation Styling === */
aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 20px 12px;
}

.logo-section > div {
  display: flex;
  align-items: center;
  gap: 10px;

  position: relative;

  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
}

.logo-section .logo-icon {
  width: 35px;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo span:first-child {
  font-family: 'Fraunces italic', 'Gill Sans', 'Gill Sans MT';
  font-size: 20px;
  color: hsl(15, 74%, 41%);
}

.logo span:last-child {
  font-family: 'Fraunces', 'Gill Sans', 'Gill Sans MT';
  font-size: 20px;
  font-weight: 600;
  margin-top: -2px;
}

#close-icon {
  display: none;
}

#menu-icon {
  display: none;
}

nav .menu-section {
  display: flex;
  flex-direction: column;

  padding-top: 15px;
  font-family: 'Dm sans';
}

.menu-section div:not(.icon-container) {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

/* Active state - only when span has content */
.menu-section div:not(.icon-container).active {
  border: 2px solid hsl(15, 69%, 37%);
  background-color: white;
}

/* Hover state */
.menu-section div:not(.icon-container):hover {
  background-color: white;
}

/* When hovering but NOT active, keep border transparent */
.menu-section div:not(.icon-container):hover:not(.active) {
  border-color: transparent;
}

/* When hovering AND active, keep the border */
.menu-section div:not(.icon-container).active:hover {
  border: 2px solid hsl(15, 69%, 37%);
  background-color: white;
}

/* Items with content (span has text) - always white background */
.menu-section div:not(.icon-container).has-content {
  background-color: white;
}

/* Active state - only the last clicked item gets the border */
.menu-section div:not(.icon-container).active {
  border: 2px solid hsl(15, 69%, 37%);
  background-color: white;
}

/* When hovering but NOT active, keep border transparent */
.menu-section div:not(.icon-container):hover:not(.active) {
  border-color: transparent;
}

/* When hovering AND active, keep the border */
.menu-section div:not(.icon-container).active:hover {
  border: 2px solid hsl(15, 69%, 37%);
  background-color: white;
}

/* Hover state for items with content (no border change) */
.menu-section div:not(.icon-container).has-content:hover {
  background-color: white;
}

.menu-section .icon-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-section .icon-container img {
  width: 20px;
}

.menu-section .icon-container h3 {
  font-size: 14px;
  font-weight: 500;
  color: hsl(32, 20%, 29%);
}

.menu-section div span {
  background-color: hsl(15, 69%, 37%);
  color: white;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
}

.menu-section div span:empty {
  display: none;
}

/* === Navigation Bottom Styling ===*/

.aside-bottom {
  display: block;
}

.weather-card {
  padding: 10px 15px;
  border-radius: 10px;
  background-color: hsl(44, 84%, 75%);

  position: relative;
  overflow: hidden;
  margin-bottom: 20px;

  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);
}

.weather-card p {
  font-family: 'Dmmono regular', 'Gill Sans', 'Gill Sans MT';
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: hsl(32, 20%, 29%);
}

.weather-card h1 {
  font-family: 'Fraunces', 'Gill Sans', 'Gill Sans MT';
  font-weight: 500;
  margin-block: 5px;
}

.weather-card h5 {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 12px;
  color: hsl(33, 17%, 41%);
}

.weather-card img {
  position: absolute;
  top: -30px;
  right: -20px;
}

.aside-bottom-bottom {
  border-top: 2px dashed rgba(0, 0, 0, 0.1);
  padding-top: 20px;
}

.aside-bottom-bottom p {
  font-family: 'Dmmono regular', 'Gill Sans', 'Gill Sans MT';
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: hsl(32, 20%, 29%);
}

.aside-bottom-bottom p:nth-child(2) {
  margin-block: 10px;
}

/* === Main Page Styling ===*/
main {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding: 30px;
}

main div {
  cursor: pointer;
}

/* === Header Styling === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 70px;
}

.header-left p {
  font-family: 'Dmmono regular', 'Gill Sans', 'Gill Sans MT';
  font-size: 12px;
  font-weight: 500;
  color: hsl(33, 17%, 41%);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header-left h1 {
  font-family: 'Fraunces', 'Gill Sans', 'Gill Sans MT';
  font-size: 40px;
  font-weight: 400;
}

.header-left h1 span {
  font-family: 'Fraunces italic', 'Gill Sans', 'Gill Sans MT';
  color: hsl(15, 74%, 41%);
}

.header-right {
  display: flex;
  justify-content: end;
  gap: 15px;

  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 14px;
  font-weight: 500;
}

.header-black-text {
  background-color: transparent;
  padding: 8px 15px;
  border: 2px solid hsl(36, 22%, 86%);
  border-radius: 20px;
  outline-offset: 2px;
  outline: 2px solid hsl(15, 69%, 37%);
  color: hsl(33, 15%, 15%);
  cursor: pointer;
}

.header-white-text {
  background-color: hsl(33, 15%, 15%);
  padding: 10px 15px;
  border-radius: 20px;
  outline-offset: 2px;
  outline: 2px solid hsl(15, 69%, 37%);
  color: hsl(30, 24%, 93%);
  cursor: pointer;
}

/* === Receipt & Host Note Styling ===*/
.receipt-note-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 30px;
}

.receipt-card {
  box-shadow: 0px 5px 40px 2px rgba(0, 0, 0, 0.1);
  width: 400px;
  border-radius: 20px;
  padding: 20px 20px;
  transform: translateX(1px) rotate(-5deg);
}

.receipt-top-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  font-size: 10px;
  color: hsl(33, 17%, 41%);

  font-weight: 600;
  font-family: 'Dmmono regular', 'Gill Sans', 'Gill Sans MT';
  letter-spacing: 1px;
}

.receipt-top-top-text {
  text-transform: uppercase;
}

.receipt-top-top div p:last-child {
  text-align: right;
}

.receipt-top-middle .receipt-top-middle-flex h2 {
  font-family: 'Fraunces', 'Gill Sans', 'Gill Sans MT';
  font-size: 20px;
  font-weight: 500;
}

.receipt-top-middle-flex-dash {
  border-block: 1px dashed rgba(0, 0, 0, 0.1);
}

.receipt-top-middle-flex div {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 10px;
  margin-bottom: 10px;
}

.receipt-top-middle-flex div div {
  display: flex;
  flex-direction: column;
  padding-block: 10px;
}

.receipt-top-middle-flex div div p:first-child {
  font-size: 10px;
  font-weight: 600;
  font-family: 'Dmmono regular', 'Gill Sans', 'Gill Sans MT';
  color: hsl(33, 17%, 41%);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.receipt-top-middle-flex div div h1 {
  font-family: 'Fraunces', 'Gill Sans', 'Gill Sans MT';
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 5px;
}

.receipt-top-middle-flex div div p:last-child {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 12px;
  font-weight: 500;
  color: hsl(33, 17%, 41%);
}

.receipt-top-bottom {
  padding: 0px 0px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-top-bottom h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;

  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 14px;
  font-weight: 600;
  color: hsl(32, 20%, 29%);
}

.receipt-top-bottom h3:last-child {
  color: hsl(33, 17%, 41%);
}

.receipt-top-bottom span {
  display: flex;
}

.receipt-top-bottom h3 span:last-child {
  font-family: 'Dmmono medium', 'Gill Sans', 'Gill Sans MT';
  font-weight: 400;
  font-size: 12px;
}

.receipt-bottom {
  border-top: 1px solid hsl(32, 20%, 29%);
  padding-top: 15px;
}

.receipt-bottom-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-bottom-top p {
  font-size: 12px;
  font-family: 'Dmmono regular', 'Gill Sans', 'Gill Sans MT';
  color: hsl(33, 17%, 41%);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.receipt-bottom-top h2 {
  font-family: 'Fraunces', 'Gill Sans', 'Gill Sans MT';
  font-size: 24px;
  font-weight: 400;
}

.receipt-bottom-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.receipt-bottom-bottom p {
  font-size: 10px;
  font-family: 'Dmmono regular', 'Gill Sans', 'Gill Sans MT';
  color: hsl(33, 17%, 41%);
  text-transform: uppercase;
}

.host-note-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px 20px;
  border-radius: 20px;
  background-image: linear-gradient(
    to top right,
    hsl(18, 62%, 47%),
    hsl(15, 69%, 37%),
    hsl(22, 72%, 56%)
  );
  width: 400px;
  transform: translateX(-1px) rotate(5deg);

  box-shadow: 0px 5px 40px 2px rgba(159, 62, 29, 0.3);
}

.host-note-top {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.host-note-top-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  padding-top: 15px;
}

.host-note-top-top p {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;

  color: white;
}

.host-note-top-middle {
  margin-block: 20px;
}

.host-note-top-middle p:first-child {
  color: hsl(45, 100%, 74%);
  font-family: 'Fraunces Italic', 'Gill Sans', 'Gill Sans MT';
  font-size: 20px;
}

.host-note-top-middle p:last-child {
  color: white;
  font-family: 'Fraunces Italic', 'Gill Sans', 'Gill Sans MT';
  font-size: 40px;
  margin-top: 10px;
  margin-bottom: 25px;
}

.host-note-top-bottom {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  color: white;
  font-size: 14px;
  font-weight: 300;
}

.host-note-bottom {
  margin-top: 80px;
}

.host-note-bottom p:first-child {
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-weight: 200;
  font-size: 9px;
}

.host-note-bottom p:last-child {
  color: white;
  font-family: 'Fraunces', 'Gill Sans', 'Gill Sans MT';
  font-size: 20px;
  margin-top: 10px;
}

.receipt-note-section ~ .hover-effect-card {
  margin-top: -20px;
  margin-bottom: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  z-index: 999;
}

.receipt-note-section .hover-effect-card p {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 10px;
  color: hsl(33, 17%, 41%);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === Guest Info Cards Styling */
.guest-info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.guest-info section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 20px 30px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);

  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);
}

.guest-info section div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arrival-top span {
  background-color: hsl(15, 74%, 41%);
  padding: 5px 7px;
  border-radius: 8px;
}

.wifi-top div span {
  background-color: hsl(230, 49%, 56%);
  padding: 5px 7px;
  border-radius: 8px;
}

.breakfast-top div span {
  background-color: hsl(340, 48%, 52%);
  padding: 5px 7px;
  border-radius: 8px;
}

.arrival-top img,
.wifi-top img,
.breakfast-top img {
  width: 25px;
}

.arrival-top div,
.wifi-top div,
.breakfast-top div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arrival-top div h5,
.wifi-top div h5,
.breakfast-top div h5 {
  font-family: 'Dmmono regular', 'Gill Sans', 'Gill Sans MT';
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.arrival-top div h5 {
  color: hsl(15, 74%, 41%);
}

.wifi-top div h5 {
  color: hsl(230, 49%, 56%);
}

.breakfast-top div h5 {
  color: hsl(340, 48%, 52%);
}

.arrival-top h3,
.wifi-top h3,
.breakfast-top h3 {
  font-family: 'Fraunces', 'Gill Sans', 'Gill Sans MT';
  font-size: 22px;
  font-weight: 500;
}

.arrival-top h3 {
  color: hsl(15, 74%, 41%);
}

.wifi-top h3 {
  color: hsl(230, 49%, 56%);
}

.breakfast-top h3 {
  color: hsl(340, 48%, 52%);
}

.arrival-middle {
  margin-top: 30px;
  margin-bottom: 15px;
}

.arrival-middle p:first-child,
.wifi-middle p:first-child,
.breakfast-middle p:first-child {
  font-family: 'Fraunces', 'Gill Sans', 'Gill Sans MT';
  font-size: 24px;
  font-weight: 500;
}

.arrival-middle p:last-child,
.wifi-middle p:last-child,
.breakfast-middle p:last-child {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 12px;
  font-weight: 400;
  color: hsl(33, 17%, 41%);
  margin-top: 10px;
}

.wifi-middle {
  margin-block: 20px;
}

.breakfast-middle {
  margin-block: 20px;
}

.arrival-bottom,
.breakfast-bottom {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 14px;
  font-weight: 600;
  color: hsl(32, 20%, 29%);
}

.wifi-bottom-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: hsl(36, 22%, 86%);
  padding: 5px 10px;
  border-radius: 10px;
}

.wifi-bottom-top p {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 12px;
  color: hsl(33, 17%, 41%);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.wifi-bottom-top h5 {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 12px;
  font-weight: 500;
  color: hsl(33, 15%, 15%);
}

.wifi-bottom-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: hsl(36, 22%, 86%);
  padding: 5px 10px;
  border-radius: 10px;
  margin-top: 5px;
}

.wifi-bottom-bottom-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.wifi-bottom-bottom-right span {
  padding: 3px 5px;
  background-color: hsl(30, 24%, 93%);
  border-radius: 8px;
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: hsl(33, 17%, 41%);
  cursor: pointer;
}

.wifi-bottom-bottom p {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 12px;
  color: hsl(33, 17%, 41%);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.wifi-bottom-bottom h5 {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 12px;
  font-weight: 500;
  color: hsl(33, 15%, 15%);
}

.attribution {
  font-size: 0.6875rem;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

/*=== Hovering Effect Styling ===*/
.receipt-note-section-hover {
  display: none;
  justify-content: center;
  gap: 5px;
}

.receipt-note-section-hover .receipt-card {
  transform: rotate(5deg);
}

.receipt-note-section-hover .host-note-card {
  transform: rotate(-5deg);
}

.receipt-note-section-hover + .hover-effect-card {
  margin-top: 25px;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  z-index: 999;
}

.receipt-note-section-hover + .hover-effect-card p {
  font-family: 'Dm sans', 'Gill Sans', 'Gill Sans MT';
  font-size: 10px;
  color: hsl(33, 17%, 41%);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Sun icon animation - spinning fan effect */
.fan-animation {
  animation: fanSpin 0.8s ease-in-out infinite;
  transform-origin: center center;
}

/* ==== Keyframes for fan spinning ==== */
@keyframes fanSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(90deg) scale(1.1);
  }
  50% {
    transform: rotate(180deg) scale(1);
  }
  75% {
    transform: rotate(270deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* === Sparkle icons pulsing animation === */
.hover-effect-card img:first-child {
  animation: sparklePulse 1.5s ease-in-out infinite;
}

.hover-effect-card img:last-child {
  animation: sparklePulse 1.5s ease-in-out infinite 0.3s;
}

@keyframes sparklePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* === Text shimmer effect === */
.hover-effect-card p {
  position: relative;
  background: linear-gradient(
    90deg,
    hsl(33, 17%, 41%),
    hsl(15, 74%, 41%),
    hsl(33, 17%, 41%)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 2s linear infinite;
}

@keyframes shimmerText {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* === Mobile Screen Styling === */
@media screen and (max-width: 375px) {
  .page-container {
    grid-template-columns: auto;
  }

  aside {
    padding: 10px 15px;
  }

  #close-icon {
    display: none;
    position: fixed;
    top: 20px;
    right: 15px;
    width: 32px;
    padding: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
  }

  #menu-icon {
    display: inline;
    position: fixed;
    top: 20px;
    right: 15px;
    width: 32px;
    padding: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
  }

  nav .menu-section {
    display: none;
  }

  .aside-bottom {
    display: none;
    margin-top: 50px;
  }

  main {
    padding: 20px 15px;
  }

  header {
    flex-direction: column;
    align-items: start;
    gap: 20px;
    margin-bottom: 50px;
  }

  .header-left {
    padding: 0px;
  }

  .header-right {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .header-black-text {
    padding: 8px 30px;
  }

  .header-white-text {
    padding: 10px 30px;
  }

  .receipt-note-section {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: -40px;
  }

  .receipt-card {
    margin-top: 10px;
    width: 320px;
    transform: translateX(1px) translateY(0) rotate(-2deg);
  }

  .host-note-card {
    width: 320px;
    transform: translateX(-1px) rotate(2deg);
  }

  .receipt-note-section ~ .hover-effect-card {
    visibility: hidden;
  }

  .guest-info {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: auto;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
}
