/* Esemény lista – modern dizájn */
.esl-event-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1rem;
  font-family: 'Montserrat', sans-serif;
}
.esl-band {
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 1px;
}

.esl-location {
  font-size: 1rem;
  margin-top: 0.25rem;
  text-align: center;
  color: #ccc;
}

.esl-event {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  background-color: #121212;
  padding: 1.5rem 2rem;
  color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.esl-date {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.esl-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(15px);
}

.esl-button a {
  background-color: #AE0C17;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.esl-button a:hover {
  background-color: #8e0a13;
  transform: scale(1.05);
  color:#ffffff;
}

.esl-load-more {
  display: flex;
  justify-content: center;
}



.esl-countdown-section {
    width: 100%; /* 100vw néha scrollt okoz, desktopon is biztonságosabb */
    position: relative;
    isolation: isolate;
    background-color: #474747;
    background-image:
            radial-gradient(1000px 400px at 40% 0%, rgba(0,0,0,.35), transparent 50%),
            linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.35)),
            url('../assets/firebg.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
}


.esl-countdown-wrapper {
  max-width: 2100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  color: #ffffff;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
    position: relative; z-index: 1;
}



.esl-countdown-wrapper h2 {
  font-size: 80px;
  letter-spacing: 0.5rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Bebas Neue', sans-serif;
}

#esl-countdown {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

#esl-countdown span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  transition: transform 0.3s ease;
  min-width: 90px;
}

#esl-countdown span:hover {
  transform: scale(1.08);
}

#esl-countdown strong {
  font-size: 70px;
  font-weight: 900;
  font-family: 'Bebas Neue', sans-serif;
  line-height: 1;
  display: block;
  color: #AE0C17;
}

#esl-countdown div {
  margin-top: 0.5rem;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: #AE0C17;
}
/* Tablet (<= 1024px): kicsit szűkebb, kétoszlopos fejlécrács */
@media (max-width: 1024px) {
    .esl-event {
        grid-template-columns: 120px 1fr auto;
        padding: 1.25rem 1.5rem;
        border-radius: 16px;
    }

    .esl-date {
        font-size: 1.05rem;
    }

    .esl-title {
        font-size: 1rem;
    }

    .esl-button a {
        padding: 0.55rem 1rem;
        border-radius: 14px;
        font-size: 0.9rem;
    }

    .esl-countdown-wrapper { padding: 3.5rem 1.25rem; }
    #esl-countdown { gap: 1.25rem; }

}

/* Mobil (<= 768px): egymás alá rendezés, nagy tap célok, középre zárt elemek */
@media (max-width: 768px) {
    .esl-event {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        row-gap: 0.75rem;
        padding: 1.25rem 1rem;
        text-align: center;
    }

    .esl-date {
        order: 1;
        font-size: 1rem;
    }

    .esl-title {
        order: 2;
        font-size: 1rem;
    }

    .esl-button {
        order: 3;
    }

    .esl-button a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.1rem;      /* nagyobb tap felület */
        min-height: 44px;             /* Apple HIG ajánlás */
        font-size: 1rem;
    }

    .esl-event-list {
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .esl-countdown-wrapper { padding: 3rem 1rem; }

    .esl-countdown-wrapper h2 {
        font-size: clamp(24px, 7.5vw, 36px);
        letter-spacing: .06em;          /* kisebb betűköz, hogy ne törjön ronda sorokra */
        line-height: 1.1;
        margin: 0 0 1.25rem;
        text-wrap: balance;             /* ahol támogatott, szebb tördelés */
    }

    /* 2 oszlopos rács, így nem marad egyedül a 'Másodperc' */
    #esl-countdown {
        display: grid;
        grid-template-columns: repeat(2, minmax(90px, 1fr));
        justify-items: center;
        align-items: start;
        gap: 1rem 1.5rem;               /* sor x oszlop hézag */
        max-width: 440px;
        margin-inline: auto;
    }

    #esl-countdown span {
        min-width: 0;                   /* engedjük szűkebbre */
        padding: .5rem .25rem;
    }

    #esl-countdown strong {
        font-size: clamp(26px, 10vw, 44px);
    }

    #esl-countdown div {
        font-size: clamp(12px, 3.6vw, 16px);
        margin-top: .35rem;
    }
}

/* Kis mobil (<= 480px): kompakt tipó, kisebb min-width a blokkoknál */
@media (max-width: 480px) {
    .esl-event {
        padding: 1rem 0.9rem;
        border-radius: 14px;
    }

    .esl-date {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .esl-band {
        font-size: 1rem;
    }

    .esl-location {
        font-size: 0.9rem;
    }

    #esl-countdown span {
        min-width: 74px; /* hogy elférjen 4 elem is tördelés nélkül */
        padding: 0.6rem 0.4rem;
    }
    .esl-countdown-wrapper { padding: 2.25rem .75rem; }
    #esl-countdown {
        grid-template-columns: repeat(2, minmax(80px, 1fr));
        gap: .75rem 1rem;
        max-width: 360px;
    }
    #esl-countdown strong { font-size: clamp(24px, 11vw, 38px); }
    #esl-countdown div    { font-size: 12px; letter-spacing: .5px; }
}

/* Mozgáscsökkentés tisztelete (hozzáférhetőség) */
@media (prefers-reduced-motion: reduce) {
    #esl-countdown span,
    .esl-button a {
        transition: none;
    }
    #esl-countdown span:hover {
        transform: none;
    }
}
/* ===== MOBIL COUNTDOWN – harmonizált hero ===== */
@media (max-width: 768px) {
    /* szekció: magasabb és kontrasztosabb */
    .esl-countdown-section {
        position: relative;
        width: 100%;
        min-height: 80vh;                 /* több vertikális tér */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        isolation: isolate;
    }
    .esl-countdown-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
                to bottom,
                rgba(0,0,0,.60) 0%,
                rgba(0,0,0,.45) 35%,
                rgba(0,0,0,.55) 100%
        );                                 /* kicsit erősebb overlay a lángra */
        z-index: 0;
    }

    .esl-countdown-wrapper {
        position: relative; z-index: 1;
        width: 100%;
        max-width: 640px;
        padding: 5rem 1.25rem 4rem;        /* több levegő felül/ alul */
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Cím: nagyobb, több „levegő”, rugalmas tördelés, középen */
    .esl-countdown-wrapper h2 {
        font-size: clamp(32px, 9.5vw, 52px);  /* + */
        letter-spacing: 0.20em;
        line-height: 1.08;
        margin: 0 0 2rem;                  /* + tér a cím alatt */
        padding: 0 .25rem;
        max-width: 92vw;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    /* Számláló: egymás alatt, kiegyensúlyozott ritmus */
    #esl-countdown {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;                         /* nagyobb függőleges ritmus */
        width: min(460px, 92vw);
        margin: 0 auto;
    }

    #esl-countdown span {
        width: 100%;
        padding: 0;                           /* tiszta, háttér nélküli */
        border: 0;
        background: none;
        box-shadow: none;
        min-width: 0;
    }

    /* Szám: kicsit nagyobb, de ne „ordítson” */
    #esl-countdown strong {
        display: block;
        font-weight: 900;
        text-align: center;
        font-size: clamp(42px, 14vw, 66px);   /* + */
        line-height: 1.06;
        margin-bottom: 0.15rem;
    }

    /* Felirat: olvasható, feszesebb caps */
    #esl-countdown div {
        text-align: center;
        font-size: clamp(13px, 3.8vw, 18px);
        letter-spacing: 0.07em;
        text-transform: uppercase;
        margin-top: 0.2rem;
    }
}

/* nagyon kis mobil: picit szűkebb tipó és padding */
@media (max-width: 420px) {
    .esl-countdown-wrapper { padding: 4rem .9rem 3.25rem; }
    .esl-countdown-wrapper h2 { font-size: clamp(30px, 10vw, 44px); margin-bottom: 1.5rem; }
    #esl-countdown { width: min(440px, 94vw); gap: 1.1rem; }
    #esl-countdown strong { font-size: clamp(38px, 15vw, 58px); }
    #esl-countdown div { font-size: 13px; }
}
