@import url("./reset.css");

:root {
  --brand-cream: rgb(249, 235, 204);
  --brand-blue: rgb(111, 171, 196);
  --brand-red: rgb(230, 59, 38);
  --brand-green: rgb(0, 166, 156);
  --brand-black: rgb(65, 64, 66);
  --brand-orange: #de6750;
  --brand-yellow: #FFA547;
  --off-white: #f4f3f2;
}

/* @font-face {
  font-family: Lakuna;
  src: url("../assets/fonts/Lakuna.otf") format("opentype");
} */

@font-face {
  font-family: SuperNaive;
  src: url("../assets/fonts/SuperNaive.ttf") format("truetype");
}

.border {
  border: 1px solid black;
}

.brand-font {
  font-family: SuperNaive;
}

.uppercase {
  text-transform: uppercase;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-red);
  color: var(--brand-cream);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Navigation Bar - Mobile First */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--off-white);
  color: var(--brand-black);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001;
}

.nav-logo img {
  width: 40px;
  height: auto;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--brand-black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger Animation when Open */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Navigation Menu - Dropdown Style */
.nav-menu {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--off-white);
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.nav-menu.active {
  max-height: calc(100svh - 64px);
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.nav-item {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(65, 64, 66, 0.1);
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-link {
  display: block;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--brand-black);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: var(--brand-cream);
  color: var(--brand-red);
  padding-left: 28px;
}

.nav-link:active {
  background-color: var(--brand-blue);
  color: var(--brand-cream);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  background-color: var(--brand-cream);
  min-height: 100svh; /* Use dynamic viewport height for mobile browsers */
  padding-top: 64px; /* Account for fixed navbar */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("/assets/images/leaf-bottom-mobile.png");
  background-position: bottom;

  background-repeat: no-repeat;
  background-size: contain;
  /* opacity: 0.8; */

  /* --- Interaction & Blending --- */
  pointer-events: none; /* Let clicks pass through */
  z-index: 1; /* Ensure it sits on top of sections */
}

.hero > * {
  position: relative;
  z-index: 2; /* Lifts the text higher than the leaves */
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  align-items: center;
}

.hero-content img {
  width: 200px;
  grid-column: 1 / -1;
  margin: 0 auto;
}

.hero-content > div {
  font-size: 1.5rem;
  color: var(--brand-black);
}

.hero-content div > p:first-of-type {
  font-size: 2rem;
}

/* Container for the two text divs on mobile */
.hero-content > div:first-of-type,
.hero-content > div:last-of-type {
  display: inline-block;
  margin: 0 16px;
}

main {
  position: relative;
  /* Ensure the main container stretches to fit content */
  overflow: hidden;
}

main::after {
  content: "";
  position: absolute;
  inset: 0; /* Fills the whole main container */

  /* --- KEY PART: Multiple Backgrounds --- */

  /* 1. Define the images (First one is on top, order matters less here since they are side-by-side) */
  background-image:
    url("/assets/images/daun-samping-kiri.png"),
    url("/assets/images/daun-samping-kanan.png");

  /* 2. Position them: One to the left, one to the right */
  background-position:
    left top,
    right top;

  /* 3. Repeat them vertically (top to bottom) but not horizontally */
  background-repeat: repeat-y, repeat-y;

  /* 4. Size them (Optional: Adjust width, keep height auto) */
  background-size:
    80px auto,
    76px auto;

  /* opacity: 0.8; */

  /* --- Interaction & Blending --- */
  pointer-events: none; /* Let clicks pass through */
  z-index: 1;
}

section {
  padding: 2rem 0;
}

section > * {
  position: relative;
  z-index: 2;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  gap: 28px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
}

h2 span {
  display: inline-block;
}

#ticket {
  background-color: var(--brand-blue);
}

#ticket {
  color: var(--brand-cream);
}

.ticket-partner {
  display: flex;
  font-family: "Open Sans";
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.ticket-partner img {
  width: 80px;
  align-self: flex-end;
}

.ticket-partner-text {
  font-size: 0.5rem;
}

.ticket-partner-text span {
  display: block;
}

.ticket-cards-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
  align-items: center;
}

.ticket-card {
  position: relative;
  height: 180px;
  width: 280px;
  border: 3px solid var(--brand-cream);
  border-radius: 20px;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-decoration: none;
  cursor: pointer;
  background-color: rgba(249, 235, 204, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  overflow: hidden;
}

.ticket-card.sold-out {
  filter: grayscale(100%);
  cursor: not-allowed;
  pointer-events: none;
}

.ticket-card.sold-out:hover {
  transform: translateY(0);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-width: 3px;
}

.sold-out-badge {
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  width: 220px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

.ticket-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  background-color: rgba(249, 235, 204, 0.15);
  border-color: var(--brand-cream);
  border-width: 4px;
}

.ticket-card:active {
  transform: translateY(-4px) scale(0.98);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticket-card:hover img {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.ticket-card img {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticket-card:hover .ticket-text {
  transform: scale(1.05);
}

.ticket-text {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cloud {
  width: 160px;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.yellow-cloud {
  top: -54px;
}

.pink-cloud {
  top: -80px;
}

.green-cloud {
  top: -56px;
}

.ticket-text {
  color: var(--brand-cream);
  text-align: center;
  font-size: 2rem;
}

.ticket-icon {
  width: 120px;
  height: auto;
  margin: 0 auto;
}

.ticket-cards-promo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-promo-text {
  color: var(--brand-black);
}

.be-quiet-text {
  text-transform: lowercase;
}

.ticket-promo-text span {
  display: block;
}

.ticket-card-promo {
  display: block;
  background-color: var(--brand-orange);
  border: 1px solid var(--brand-yellow);
  border-radius: 10px;
  padding: 10px 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.ticket-card-promo:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: color-mix(in srgb, var(--brand-orange) 90%, white);
}

.ticket-card-promo:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: color-mix(in srgb, var(--brand-orange) 85%, black);
}

.ticket-card-promo p span {
  font-family: 'Open Sans';
  font-weight: bold;
  font-size: 0.8rem;
  color: var(--brand-black);
  background-color: var(--brand-cream);
  border-radius: 4px;
  padding: 0 4px;
}

.ticket-promo-price {
  font-size: 1.5rem;
}

#line-up {
  background-color: var(--brand-red);
}

#line-up h2 {
  color: var(--brand-cream);
}

.artist-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.artist-card {
  border: 2px solid var(--brand-cream);
  border-radius: 8px;
  width: 280px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.artist-card img {
  width: 100%;
  min-height: 0;
  object-fit: cover;
  flex: 1;
}

.artist-placeholder {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--brand-cream);
  background-color: rgba(249, 235, 204, 0.1);
}

figcaption {
  margin-top: auto;
  text-align: center;
  background-color: var(--brand-cream);
  color: var(--brand-black);
  padding: 12px 0;
  font-size: 1rem;
}

#rundown {
  background-color: var(--brand-green);
}

#rundown h2 {
  color: var(--off-white);
}

.rundown-list {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rundown-item {
  display: flex;
  justify-content: space-between;
  color: var(--off-white);
  padding: 10px 32px;
}

.rundown-list li:not(.rundown-item-white-bg) {
  margin-top: -6px;
  margin-bottom: -6px;
}

.rundown-item-white-bg {
  background-color: var(--off-white);
  border-radius: 16px;
  color: var(--brand-green);
}

#location {
  background-color: var(--brand-cream);
  color: var(--brand-black);
}

.location-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.2rem;
}

.map-embed {
  width: 100%;
  max-width: 400px;
  height: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--brand-green);
  color: var(--brand-cream);
  text-decoration: none;
  border-radius: 12px;
  border: 3px solid var(--brand-cream);
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}

.button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  background-color: var(--brand-green);
  border-width: 4px;
}

.button:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

#location .button {
  margin: 10px 0;
}

#location .ticket-partner {
  font-size: 0.8rem;
}

#information {
  position: relative;
  z-index: 5;
  background-color: var(--off-white);
}

#information .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-wrapper a {
  font-family: "Open Sans";
  text-decoration: none;
  color: var(--brand-black);
  font-weight: 500;
}

.social-wrapper {
  display: flex;
  gap: 24px;
}

.social-wrapper a {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--brand-black);
}

.social-wrapper svg {
  fill: var(--brand-black);
  width: 28px;
  height: 28px;
}

.sponsor {
  position: relative;
  z-index: 3;
}

.partner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.logo-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.logo-container img {
  max-width: 50px;
}

.sponsor,
footer {
  background-color: var(--off-white);
  color: var(--brand-black);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.footer-container img {
  width: 160px;
  margin: 20px 0;
}

.footer-container p:last-of-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Open Sans";
  font-size: 0.8rem;
}

@media (min-width: 576px) {
  .nav-container {
    padding: 14px 24px;
  }

  .nav-logo img {
    width: 44px;
  }

  .hero-content img {
    width: 300px;
  }

  .hero-content > div {
    font-size: 1.65rem;
  }

  .hero-content div > p:first-of-type {
    font-size: 2.25rem;
  }

  .hero::after {
    background-image: url("/assets/images/daun-bawah.png");
  }

  main::after {
    background-size: 140px auto;
  }

  section {
    padding: 56px 0;
  }

  .container {
    max-width: 540px;
  }

  h2 {
    font-size: 2rem;
  }

  .ticket-card {
    width: 300px;
    height: 200px;
    margin: 0;
  }

  .ticket-text {
    font-size: 2rem;
  }

  .ticket-partner-text {
    font-size: 0.7rem;
  }
  .ticket-partner-text span {
    display: inline;
  }

  .sold-out-badge {
    width: 260px;
  }

  #location .ticket-partner-text span {
    display: block;
  }

  .artist-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .artist-card {
    width: 240px;
  }


  .rundown-item {
    font-size: 1.5rem;
  }
  .rundown-item-white-bg {
    border-radius: 18px;
  }

  /* Location - 2 Column Grid Layout */
  .location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px 32px;
    width: 480px;
    margin: 0 auto;
    align-items: center;
  }

  /* H2 spans both columns */
  .location-container h2 {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  /* First column, second row - Date */
  .location-container > div:nth-of-type(1) {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }

  /* Second column - Map spans 2 rows */
  .location-container iframe {
    grid-column: 2;
    grid-row: 2 / 4;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 350px;
  }

  /* First column, third row - Ticket text */
  .location-container > div:nth-of-type(2) {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }

  .footer-container p:last-of-type {
    flex-direction: row;
    gap: 4px;
  }
}

/* Landscape Phone Styles - Horizontal Hero Layout */
@media (min-width: 568px) and (max-width: 767px) and (orientation: landscape) {
  /* Hero section - horizontal layout for landscape phones */
  .hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 700px;
  }

  .hero-content img {
    order: 2; /* Image in the middle */
    width: 200px;
    grid-column: auto;
    margin: 0;
  }

  .hero-content > div:nth-of-type(1) {
    order: 1; /* Date on the left */
  }

  .hero-content > div:nth-of-type(2) {
    order: 3; /* Place on the right */
  }

  .hero-content > div {
    flex: 1;
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .nav-container {
    padding: 16px 32px;
  }

  .hamburger {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    gap: 8px;
    height: auto;
    width: auto;
  }

  .nav-menu.active {
    box-shadow: none;
  }

  .nav-item {
    width: auto;
    border-bottom: none;
  }

  .nav-link {
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-link:hover {
    padding-left: 16px;
    transform: translateY(-2px);
  }

  .nav-logo img {
    width: 48px;
  }

  /* Hero section - horizontal layout for larger screens */
  .hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
  }

  .hero-content img {
    order: 2; /* Image in the middle */
    width: 280px;
    grid-column: auto;
    margin: 0;
  }

  .hero-content > div:nth-of-type(1) {
    order: 1; /* Date on the left */
  }

  .hero-content > div:nth-of-type(2) {
    order: 3; /* Place on the right */
  }

  .hero-content > div {
    font-size: 1.8rem;
    flex: 1;
  }

  .hero-content div > p:first-of-type {
    font-size: 2.5rem;
  }

  main::after {
    background-size: 180px auto;
    opacity: 1;
  }

  .container {
    max-width: 720px;
  }

  h2 {
    font-size: 3rem;
  }

  h2 span {
    display: block;
  }

  #rundown .container {
    gap: 40px;
  }

  .rundown-list {
    gap: 16px;
  }

  .rundown-item {
    font-size: 2rem;
  }

  .rundown-list li:not(.rundown-item-white-bg) {
    margin-top: -10px;
    margin-bottom: -10px;
  }

  .artist-container {
    justify-content: space-evenly;
  }

  .artist-card {
    width: 300px;
  }

  figcaption {
    font-size: 1.2rem;
  }

  #information {
    padding: 60px 0;
  }

  #information .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .contact-wrapper {
    flex-direction: row;
    gap: 36px;
  }

  .logo-container img {
    max-width: 100px;
  }
}

@media (min-width: 876px) {
  .location-container {
    width: 700px;
  }
}

@media (min-width: 1024px) {
  .nav-logo img {
    width: 56px;
  }
  .nav-link {
    font-size: 1.5rem;
  }

  section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  h2 span {
    display: inline;
  }

  .ticket-cards-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .artist-card {
    width: 320px;
  }

  #location .ticket-partner-text span {
    display: inline;
  }
}

/* Desktop Styles */
@media (min-width: 1280px) {
  .nav-container {
    padding: 20px 40px;
  }

  .nav-menu {
    gap: 12px;
  }

  .nav-link {
    padding: 10px 20px;
    font-size: 1.8rem;
  }

  .nav-logo img {
    width: 64px;
  }

  main::after {
    background-size: 220px auto;
  }

  .container {
    max-width: 1140px;
  }

  #ticket {
    padding-top: 160px;
    padding-bottom: 160px;
  }

  .ticket-partner-text {
    font-size: 1rem;
  }

  .artist-container {
    justify-content: space-evenly;
  }

  .artist-card {
    width: 352px;
  }

  figcaption {
    font-size: 1.5rem;
  }

  .location-container {
    width: 900px;
  }

  .location-container p:not(.ticket-partner p) {
    font-size: 1.8rem;
  }

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

@media (min-width: 1440px) {
  main::after {
    background-size: 300px auto;
    background-position: left top, right top -180px;
  }
}