/* ==========================================
   CUSTOM MOBILE MENU – Teatr Potem-o-tem
   Inspired by Badrutt's Palace & Shakespeare's Globe
   ========================================== */

/* Hide default WP nav content when our custom overlay is active */
.pot-mobile-overlay .wp-block-navigation__responsive-container-content {
    display: none !important;
}

/* ── Overlay ── */
.pot-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s cubic-bezier(.4,0,.2,1), visibility 0s .45s;
}

.pot-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .45s cubic-bezier(.4,0,.2,1), visibility 0s 0s;
}

/* ── Close button ── */
.pot-mobile-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s, transform .3s;
}
.pot-mobile-close:hover {
    border-color: rgba(255,255,255,.5);
    transform: rotate(90deg);
}
.pot-mobile-close svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
}

/* ── Logo at top ── */
.pot-mobile-logo {
    display: flex;
    justify-content: center;
    padding: 20px 28px 0;
    flex-shrink: 0;
}

.pot-mobile-logo img {
    height: 36px;
    width: auto;
    opacity: .85;
}

/* ── Main scrollable area ── */
.pot-mobile-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 24px 10px;
    gap: 0;
}

/* ── Regular nav links ── */
.pot-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pot-mobile-nav li {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .35s ease, transform .35s ease;
}

.pot-mobile-overlay.is-open .pot-mobile-nav li {
    opacity: 1;
    transform: translateY(0);
}

/* stagger */
.pot-mobile-overlay.is-open .pot-mobile-nav li:nth-child(1) { transition-delay: .06s; }
.pot-mobile-overlay.is-open .pot-mobile-nav li:nth-child(2) { transition-delay: .10s; }
.pot-mobile-overlay.is-open .pot-mobile-nav li:nth-child(3) { transition-delay: .14s; }
.pot-mobile-overlay.is-open .pot-mobile-nav li:nth-child(4) { transition-delay: .18s; }
.pot-mobile-overlay.is-open .pot-mobile-nav li:nth-child(5) { transition-delay: .22s; }
.pot-mobile-overlay.is-open .pot-mobile-nav li:nth-child(6) { transition-delay: .26s; }

.pot-mobile-nav a {
    display: block;
    padding: 5px 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 19px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: color .25s, padding-left .25s;
}

.pot-mobile-nav a:hover {
    color: #fff;
    padding-left: 8px;
}

/* ── SPEKTAKLE – highlight section ── */
.pot-mobile-spektakle {
    margin-top: 16px;
    padding: 14px 0 4px;
    border-top: 1px solid rgba(255,255,255,.1);
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .45s ease .3s, transform .45s ease .3s;
}

.pot-mobile-overlay.is-open .pot-mobile-spektakle {
    opacity: 1;
    transform: translateY(0);
}

.pot-mobile-spektakle__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: default;
}

.pot-mobile-spektakle__label {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
    position: relative;
}

/* Decorative accent line under SPEKTAKLE */
.pot-mobile-spektakle__label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ebb30b, #f5d44a, #ebb30b);
    border-radius: 1px;
}

.pot-mobile-spektakle__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ebb30b, #c99a00);
    color: #000;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 3px;
}

/* Sub-items */
.pot-mobile-spektakle__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pot-mobile-spektakle__list li {
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity .32s ease, transform .32s ease;
}

.pot-mobile-overlay.is-open .pot-mobile-spektakle__list li {
    opacity: 1;
    transform: translateX(0);
}

.pot-mobile-overlay.is-open .pot-mobile-spektakle__list li:nth-child(1) { transition-delay: .38s; }
.pot-mobile-overlay.is-open .pot-mobile-spektakle__list li:nth-child(2) { transition-delay: .42s; }
.pot-mobile-overlay.is-open .pot-mobile-spektakle__list li:nth-child(3) { transition-delay: .46s; }
.pot-mobile-overlay.is-open .pot-mobile-spektakle__list li:nth-child(4) { transition-delay: .50s; }
.pot-mobile-overlay.is-open .pot-mobile-spektakle__list li:nth-child(5) { transition-delay: .54s; }
.pot-mobile-overlay.is-open .pot-mobile-spektakle__list li:nth-child(6) { transition-delay: .58s; }
.pot-mobile-overlay.is-open .pot-mobile-spektakle__list li:nth-child(7) { transition-delay: .62s; }
.pot-mobile-overlay.is-open .pot-mobile-spektakle__list li:nth-child(8) { transition-delay: .66s; }
.pot-mobile-overlay.is-open .pot-mobile-spektakle__list li:nth-child(9) { transition-delay: .70s; }

.pot-mobile-spektakle__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 8px 4px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: color .25s, padding-left .25s, border-color .25s;
    position: relative;
}

/* Gold accent dot */
.pot-mobile-spektakle__list a::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ebb30b;
    opacity: .5;
    transition: opacity .25s, transform .25s;
}

.pot-mobile-spektakle__list a:hover {
    color: #f5d44a;
    padding-left: 12px;
    border-color: rgba(235,179,11,.15);
}

.pot-mobile-spektakle__list a:hover::before {
    opacity: 1;
    transform: scale(1.6);
}

/* ── Footer area (pinned bottom) ── */
.pot-mobile-footer {
    flex-shrink: 0;
    padding: 0 24px 16px;
    margin-top: auto;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .4s ease .55s, transform .4s ease .55s;
}

.pot-mobile-overlay.is-open .pot-mobile-footer {
    opacity: 1;
    transform: translateY(0);
}

/* ── Address & contact strip ── */
.pot-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.pot-mobile-contact__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pot-mobile-contact__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #ebb30b;
}

.pot-mobile-contact__icon svg {
    width: 100%;
    height: 100%;
}

.pot-mobile-contact__text {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,.55);
    margin: 0;
}

.pot-mobile-contact__text a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
}

.pot-mobile-contact__text a:hover {
    color: #fff;
}

/* Navigate button */
.pot-mobile-contact__nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    margin-left: 6px;
    background: transparent;
    border: 1px solid #ebb30b;
    border-radius: 20px;
    color: #ebb30b;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .25s, color .25s;
}

.pot-mobile-contact__nav-btn:hover {
    background: #ebb30b;
    color: #000;
}

.pot-mobile-contact__nav-btn svg {
    width: 12px;
    height: 12px;
}

/* Phone row */
.pot-mobile-contact__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color .2s;
}

.pot-mobile-contact__phone:hover {
    color: #ebb30b;
}

.pot-mobile-contact__phone svg {
    width: 16px;
    height: 16px;
    color: #ebb30b;
}

/* ── Social icons bar (very bottom) ── */
.pot-mobile-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.pot-mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .3s, border-color .3s, transform .3s, background .3s;
}

.pot-mobile-social a:hover {
    color: #ebb30b;
    border-color: #ebb30b;
    transform: translateY(-2px);
    background: rgba(235,179,11,.08);
}

.pot-mobile-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ── Desktop: hide the overlay completely ── */
@media (min-width: 769px) {
    .pot-mobile-overlay {
        display: none !important;
    }
}
