/* One flower in each corner for program and helyszin sections */
.flower-corner {
  position: absolute;
  width: 88px;
  height: auto;
  z-index: 9;
  pointer-events: none;
}
.flower-top-left {
  top: 24px;
  left: 32px;
}
.flower-top-right {
  top: 24px;
  right: 32px;
}
.flower-bottom-left {
  bottom: 24px;
  left: 32px;
}
.flower-bottom-right {
  bottom: 24px;
  right: 32px;
}
@media (max-width: 900px) {
  .flower-corner {
    width: 28px !important;
  }
  .flower-top-left {
    top: 8px;
    left: 8px;
  }
  .flower-top-right {
    top: 8px;
    right: 8px;
  }
  .flower-bottom-left {
    bottom: 8px;
    left: 8px;
  }
  .flower-bottom-right {
    bottom: 8px;
    right: 8px;
  }
}
/* Decorative flowers in corners */
.flowers-corner {
  position: absolute;
  top: 24px;
  z-index: 9;
  display: flex;
  gap: 0.2em;
}
.flowers-corner-right {
  right: 32px;
  flex-direction: row;
}
.flowers-corner-left {
  left: 32px;
  flex-direction: row-reverse;
}
.flower-img {
  width: 44px;
  height: auto;
  pointer-events: none;
}
@media (max-width: 900px) {
  .flowers-corner {
    top: 8px;
    gap: 0.1em;
  }
  .flowers-corner-right {
    right: 8px;
  }
  .flowers-corner-left {
    left: 8px;
  }
  .flower-img {
    width: 28px;
  }
}
@media (max-width: 900px) {
  .emberek-corner {
    width: 120px !important;
    height: auto !important;
  }
}
/* Decorative emberek images in corners */
.emberek-corner {
  position: absolute;
  width: 180px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}
.emberek-corner-left {
  top: -1vw;
  left: 8px;
}
.emberek-corner-right {
  right: 4px;
}
/* Font */

/* Scroll Down Indicator */
.scroll-indicator {
  position: fixed;
  left: 50%;
  bottom: 2vh;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.scroll-indicator svg {
  display: block;
}

/* Section styles*/
/* Offset for anchor navigation to account for sticky navbar */
#program, .program-bands, #helyszin, .helyszin, #jegyek, .jegyek-section {
  scroll-margin-top: 110px;
}
/* Program */

.program-bands {
  position: relative;
  text-align: center;
  z-index: 1001;
  background: none;
  margin: 0.2em auto 0 auto;
  max-width: 900px;
  padding: 0.5em 3em;
  font-size: 1.3rem;
  line-height: 1.6;
  border-radius: 2em;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 24px #0001;
}
.program-bands::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #7FA878;
  border-radius: 2em;
  opacity: 0.88;
  z-index: -1;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2em;
  margin: 2em 0 0 0;
}

.band-tile {
  background: #7FA878;
  border-radius: 1.2em;
  box-shadow: 0 2px 12px #0002;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1/1;
  min-width: 0;
  min-height: 0;
  position: relative;
}

.band-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  flex: 1 1 auto;
  transition: transform 0.25s cubic-bezier(.4,1.6,.6,1);
}

.band-tile:hover img {
  transform: scale(1.07);
  z-index: 1;
}

.band-tile-name {
  background: rgba(0,0,0,0.65);
  color: #ffeede;
  font-size: 0.9em;
  font-weight: 200;
  text-align: center;
  padding: 0.2em 0.1em;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom-left-radius: 1.2em;
  border-bottom-right-radius: 1.2em;
  z-index: 2;
}
.band-tile:hover .band-tile-name {
  transition: opacity 0.2s;
  opacity: 0;
}

.helyszin {
  position: relative;
  text-align: center;
  z-index: 1001;
  background: none;
  margin: 0.2em auto 0 auto;
  max-width: 900px;
  padding: 0.5em 3em;
  font-size: 1.3rem;
  line-height: 1.6;
  border-radius: 2em;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 24px #0001;
}
.helyszin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #FFA161;
  border-radius: 2em;
  opacity: 0.88;
  z-index: -1;
}
.helyszin iframe {
  width: 100%;
  height: min(60vw, 450px);
  max-height: 450px;
  border: 0;
}
@media (max-width: 600px) {
  .helyszin iframe {
    height: 60vw;
    min-height: 240px;
  }
}
@media (max-width: 1200px) {
  .band-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .program-bands,
  .helyszin,
  .jegyek-section {
    padding: 0.8em 1.2em;
  }
  .band-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .band-tile {
    min-height: 140px;
  }
  /* Removed fixed height for .band-tile img to allow image to fill tile */
}

/* Jegyek section styles */
#jegyek,
.jegyek-section {
  background: none;
  color: #fff;
  max-width: 900px;
  margin: calc(100vh + 40px) auto 0 auto;
  padding: 0.5em 2em 1.2em;
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 600;
  border-radius: 2em;
  box-shadow: 0 4px 24px #0002;
  text-align: center;
  position: relative;
  z-index: 900;
}
.jegyek-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #564137;
  border-radius: 2em;
  opacity: 0.88;
  z-index: -1;
}
#jegyek h2,
.jegyek-section h2 {
  margin-bottom: 1em;
  color: #fff;
}
.ticat-order-widget-container,
#ticat_order_widget {
  width: 100%;
}
.jegyek-widget {
  width: 100%;
  display: flex;
  justify-content: center;
}
#ticat_order_widget {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
#ticat_ticket_list_container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #ffeede;
  font-family: Verdana, sans-serif;
  color: #fff;
  overflow-x: hidden;
}
a {
  color: inherit;
}

/* Header Layout */
.title-header {
  width: 100vw;
  box-sizing: border-box;
  background: #534239;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
  min-height: 100px;
  position: sticky;
  top: 0;
  z-index: 3000;
}
.title-header img {
  max-height: 90px;
  width: auto;
  max-width: 40vw;
  margin: 0;
  user-select: none;
  display: block;
}

/* Hamburger menu */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  margin-left: 1vw;
  z-index: 200;
}
.nav-toggle-label span {
  display: block;
  width: 32px;
  height: 4px;
  margin: 5px 0;
  background: #F96A4E;
  border-radius: 2px;
  transition: 0.3s;
  position: relative;
}

/* Navbar */
.main-navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  position: static;
  width: auto;
  margin: 0;
  flex: 1 1 auto;
}
.main-navbar ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: clamp(220px, 26vw, 360px);
  gap: 0;
  margin: 0;
  padding: 0;
}
.main-navbar li {
  margin: 0;
}
.main-navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.15em;
  padding: 0.5em 0.2em;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.main-navbar a:hover, .main-navbar a:focus {
  background: #3b2e1a;
  color: #fff;
}

/* Ticket Button */
.ticket-btn {
  background: #7FA878;
  color: #ffffff;
  font-size: 1.2rem;
  font-family: inherit;
  font-weight: bold;
  border: none;
  border-radius: 18px;
  padding: 0.2em 1.2em;
  cursor: pointer;
  height: 56px;
  min-width: 120px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 0;
  text-decoration: none;
}
.ticket-btn:hover, .ticket-btn:focus {
  background: #A36CB7;
  color: #fff;
  box-shadow: 0 4px 16px #0003;
}

/* Warped background */
.warped-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #ffeede;
}
.warped-bg-main {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60vw;
  max-width: 600px;
  min-width: 320px;
  height: auto;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: url(#organic-warp);
  opacity: 0.66;
  display: block;
  background: #ffeede;
  border-radius: 12px;
}
.warped-bg-flower {
  position: absolute;
  top: 75%;
  width: 500px;
  height: auto;
  max-height: 200vh;
  opacity: 0.66;
  filter: url(#organic-warp);
  z-index: 1;
}
.warped-bg-flower-lila {
  left: 15vw;
  transform: translateY(-50%) rotate(-180deg);
}
.warped-bg-flower-zold {
  right: 15vw;
  transform: translateY(-50%) rotate(-180deg);
}
.warped-bg-flower-narancs1 {
  left: -1vw;
  transform: translateY(-50%) rotate(-90deg);
}
.warped-bg-flower-narancs2 {
  right: -1vw;
  transform: translateY(-50%) rotate(-180deg);
}

/* Corner Labels */
.corner-label {
  position: absolute;
  top: 16vW;
  font-family: inherit;
  font-size: 2.2rem;
  font-weight: bold;
  color: #111;
  z-index: 1001;
  background: none;
  pointer-events: none;
  letter-spacing: 0.01em;
}
.corner-label-left {
  left: 18vw;
  text-align: left;
}
.corner-label-right {
  right: 18vw;
  text-align: right;
}

/* Responsive styles */
@media (max-width: 900px) {
  .warped-bg-main,  
  .warped-bg-flower {
      filter: none;
    }
  .title-header {
    flex-direction: row;
    align-items: center;
    min-height: unset;
    height: auto;
    padding-left: 2vw;
    padding-right: 2vw;
    gap: 0.5em;
    position: sticky;
    top: 0;
    z-index: 2000;
  }
  .title-header img {
    max-height: 56px;
    max-width: 150vw;
  }
  .ticket-btn {
    font-size: 1rem;
    height: 40px;
    min-width: 80px;
    max-width: 120px;
    padding: 0.1em 0.5em;
    display: none;
  }
  .main-navbar .ticket-btn {
    display: flex;
  }
  .nav-toggle-label {
    display: flex;
  }
  .main-navbar {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #534239;
    flex-direction: column;
    align-items: flex-end;
    width: 100vw;
    box-shadow: 0 4px 16px #0002;
    transition: max-height 0.3s;
    max-height: 0;
    overflow: hidden;
    z-index: 2001;
    margin: 0;
  }
  .main-navbar ul {
    flex-direction: column;
    width: 100vw;
    align-items: flex-end;
    gap: 0.5em;
    padding: 1em 2vw;
  }
  .main-navbar li {
    margin: 0.5em 0;
  }
  .main-navbar .ticket-btn {
    width: 100%;
    margin-top: 0.5em;
    align-self: flex-end;
  }
  .nav-toggle:checked ~ .nav-toggle-label span {
    background: #F96A4E;
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(0, 20px);
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.3);
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(0, -20px);
  }
  .nav-toggle:checked ~ .main-navbar {
    max-height: 500px;
    transition: max-height 0.3s;
  }
}

@media (max-width: 900px) {
  .warped-bg-flower{
    display: none;
  }
  .mobile-corner-flower {
    display: block;
    position: fixed;
    width: 32vw;
    min-width: 100px;
    max-width: 180px;
    height: auto;
    z-index: 2;
    opacity: 0.66;
    pointer-events: none;
  }
  .mobile-corner-flower.tl {
    top: 16vw;
    left: 8vw;
  }
  .mobile-corner-flower.tr {
    top: 16vw;
    right: 8vw;
  }
  .mobile-corner-flower.bl {
    bottom: 4vw;
    left: 4vw;
  }
  .mobile-corner-flower.br {
    bottom: 4vw;
    right: 4vw;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .mobile-corner-flower.tl {
    top: 2vw;
    left: 8vw;
  }
  .mobile-corner-flower.tr {
    top: 2vw;
    right: 8vw;
  }
  .mobile-corner-flower.bl {
    bottom: 24vw;
    left: 4vw;
  }
  .mobile-corner-flower.br {
    bottom: 24vw;
    right: 4vw;
  }
}

@media (min-width: 901px) {
  .main-navbar .ticket-btn {
    display: none !important;
  }
  .mobile-corner-flower {
    display: none;
  }
}

@media (max-width: 900px) {
  .corner-label {
    display: none;
  }
  .mobile-label {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: bold;
    color: #111;
    text-align: center;
    z-index: 1001;
    background: none;
    pointer-events: none;
    letter-spacing: 0.01em;
  }
  .mobile-label-top {
    top: 28vh;
  }
  .mobile-label-bottom {
    top: auto;
    bottom: 20vh;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  .mobile-label {
    position: absolute;
    top: 50%;
    width: auto;
    font-size: 1.2rem;
    text-align: center;
    left: unset;
    right: unset;
  }
  .mobile-label-top {
    left: 24vw;
    right: unset;
  }
  .mobile-label-bottom {
    right: 8vw;
    left: unset;
  }
}
