/* --- Event Calendar PDF CTA Banner --- */
.event-pdf-cta-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.event-pdf-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.55);
    background: linear-gradient(135deg, rgba(28, 23, 15, 0.92), rgba(45, 36, 20, 0.94));
    color: #f8f2e1;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 232, 168, 0.16);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    text-align: center;
}

.event-pdf-cta:hover,
.event-pdf-cta:focus-visible {
    transform: translateY(-2px);
    border-color: #e2be4b;
    box-shadow: 0 12px 32px rgba(201, 162, 39, 0.25), 0 6px 20px rgba(0, 0, 0, 0.32);
    outline: none;
}

.event-pdf-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.18);
    color: #e6c153;
    flex-shrink: 0;
}

.event-pdf-cta-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c9a227, #e0be53);
    color: #17130c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* --- Flipbook Theater Modal --- */
.pdf-flipbook-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(14, 12, 9, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    color: #f5efe0;
    overflow: hidden;
}

.pdf-flipbook-modal[hidden] {
    display: none !important;
}

.pdf-fb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.22);
    background: rgba(20, 17, 12, 0.9);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.pdf-fb-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pdf-fb-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f6e7bd;
    white-space: nowrap;
}

.pdf-fb-counter {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.16);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: #e6c153;
    font-size: 0.84rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pdf-fb-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pdf-fb-zoom-group {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.pdf-fb-btn,
.pdf-fb-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #f5efe0;
    border-radius: 8px;
    height: 36px;
    padding: 0 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pdf-fb-zoom-group .pdf-fb-icon-btn {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 10px;
}

.pdf-fb-zoom-reset {
    min-width: 54px;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
}

.pdf-fb-btn:hover,
.pdf-fb-icon-btn:hover {
    background: rgba(201, 162, 39, 0.2);
    border-color: rgba(201, 162, 39, 0.55);
    color: #fff;
}

.pdf-fb-btn:disabled,
.pdf-fb-icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pdf-fb-icon-btn.is-muted {
    opacity: 0.6;
}

.pdf-fb-download {
    background: linear-gradient(135deg, #c9a227, #e0be53);
    border-color: #e0be53;
    color: #17130c;
}

.pdf-fb-download:hover {
    background: linear-gradient(135deg, #d6b136, #ebd073);
    border-color: #ebd073;
    color: #17130c;
}

.pdf-fb-close {
    width: 36px;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
}

/* --- Stage & Flipbook --- */
.pdf-fb-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 68px;
    overflow: hidden;
}

.pdf-fb-stage.is-zoomed {
    overflow: auto;
    scrollbar-gutter: stable;
}

.pdf-fb-zoom-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

.pdf-fb-book-host {
    flex: 0 0 auto;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.flipbook-page {
    background: #faf8f3;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.flipbook-page.--left {
    box-shadow: inset -18px 0 28px -18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.flipbook-page.--right {
    box-shadow: inset 18px 0 28px -18px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.flipbook-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.pdf-fb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.55);
    background: rgba(20, 17, 12, 0.82);
    color: #f3d783;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.pdf-fb-nav:hover:not(:disabled) {
    background: #c9a227;
    color: #17130c;
    transform: translateY(-50%) scale(1.06);
}

.pdf-fb-nav:disabled {
    opacity: 0.28;
    cursor: not-allowed;
}

.pdf-fb-nav--prev {
    left: 16px;
}

.pdf-fb-nav--next {
    right: 16px;
}

/* --- Loader & Error States --- */
.pdf-fb-loader,
.pdf-fb-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    z-index: 5;
}

.pdf-fb-loader[hidden],
.pdf-fb-error[hidden] {
    display: none !important;
}

.pdf-fb-progress-track {
    width: min(320px, 80vw);
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.pdf-fb-progress-bar {
    height: 100%;
    width: 8%;
    border-radius: 999px;
    background: linear-gradient(90deg, #c9a227, #f1d37a);
    transition: width 0.2s ease;
}

.pdf-fb-status-text {
    margin: 0;
    font-size: 0.95rem;
    color: #eadfc2;
}

.pdf-fb-error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* --- Footer --- */
.pdf-fb-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 18px;
    border-top: 1px solid rgba(201, 162, 39, 0.18);
    background: rgba(20, 17, 12, 0.9);
    flex-shrink: 0;
}

.pdf-fb-hint {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(245, 239, 224, 0.72);
    text-align: center;
}

.pdf-fb-mobile-nav {
    display: none;
    gap: 10px;
}

@media (max-width: 767px) {
    .event-pdf-cta {
        border-radius: 16px;
        padding: 12px 16px;
        font-size: 0.92rem;
    }

    .pdf-fb-toolbar {
        padding: 10px 12px;
    }

    .pdf-fb-stage {
        padding: 12px;
    }

    .pdf-fb-nav {
        display: none;
    }

    .pdf-fb-hint {
        display: none;
    }

    .pdf-fb-mobile-nav {
        display: inline-flex;
    }
}
