/* ============================================================
   Longevity Ticket Popup – Stílusok
   Verzió: 1.8.0 – Prémium, glassmorphism, Montserrat
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ── Overlay ── */
#ltp-overlay,
#ltp-workshop-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 35, 33, 0.80);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* ── Popup doboz ── */
#ltp-popup,
#ltp-workshop-popup {
    background: #424B48;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    margin: auto;
    position: relative;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: ltp-slide-in 0.22s ease;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

@keyframes ltp-slide-in {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Fejléc ── */
.ltp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 24px 16px;
}

.ltp-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.ltp-seat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 5px 0 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Bezárás gomb */
#ltp-close,
#ltp-workshop-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
#ltp-close:hover,
#ltp-workshop-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ── Opciók terület ── */
.ltp-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px;
}

/* ── Alap jegy kártya – világos glassmorphism ── */
.ltp-option-base {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: box-shadow 0.15s, background 0.15s;
    box-sizing: border-box;
}

.ltp-option-base:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ltp-option-base:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ltp-base-icon {
    width: 52px;
    height: 52px;
    background: #f0ede8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.ltp-base-info {
    flex: 1;
}

.ltp-base-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #444945;
    line-height: 1.3;
    margin: 0 0 4px;
}

.ltp-base-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #595554;
    margin: 0 0 5px;
}

.ltp-base-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    line-height: 1.5;
    display: block;
}

/* ── Synlab kártya – sötét glassmorphism + terrakotta ── */
.ltp-option-synlab {
    display: block;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid #E07A5F;
    border-radius: 14px;
    padding: 20px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: box-shadow 0.15s, background 0.15s;
    box-sizing: border-box;
    box-shadow: 0 0 0 0 rgba(224, 122, 95, 0);
}

.ltp-option-synlab:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 32px rgba(224, 122, 95, 0.25);
}

.ltp-option-synlab:disabled,
.ltp-option-synlab.ltp-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Synlab fejléc (logo + badge) */
.ltp-synlab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ltp-synlab-logo {
    height: 22px;
    width: auto;
    display: block;
    opacity: 0.95;
}

.ltp-synlab-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #E07A5F;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(224, 122, 95, 0.15);
    border: 1px solid rgba(224, 122, 95, 0.35);
    border-radius: 20px;
    padding: 3px 10px;
}

/* Synlab termék neve */
.ltp-synlab-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 14px;
}

/* TARTALMAZZA belső kártya */
.ltp-includes {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.ltp-includes-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #E07A5F;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.ltp-includes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ltp-includes-list li {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ltp-check {
    color: #E07A5F;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
    line-height: 1;
}

/* Synlab árak */
.ltp-synlab-price-wrap {
    margin-bottom: 10px;
}

.ltp-synlab-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.40);
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}

.ltp-synlab-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #E07A5F;
    display: block;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* Synlab készlet */
.ltp-stock {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #E07A5F;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
}

.ltp-stock-empty {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
}

/* ── Mégse gomb ── */
.ltp-footer {
    padding: 14px 16px 20px;
}

#ltp-cancel {
    width: 100%;
    background: none;
    border: none;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.40);
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.15s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#ltp-cancel:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   Workshop popup
   ============================================================ */

.ltp-workshop-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ltp-success-icon {
    font-size: 28px;
    color: #5fce8a;
    margin-bottom: 6px;
    line-height: 1;
    font-weight: 900;
}

/* Workshop alcím */
.ltp-workshop-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin: 10px 24px 0;
    line-height: 1.4;
}

/* Workshop kártya terület */
.ltp-workshop-body {
    padding: 16px 16px;
}

.ltp-workshop-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ltp-workshop-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ltp-workshop-card-info {
    flex: 1;
}

.ltp-workshop-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.ltp-workshop-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ltp-price-original {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: line-through;
}

.ltp-price-discounted {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

/* Idő és helyszín sor */
.ltp-workshop-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.ltp-workshop-meta span {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.4;
}

.ltp-workshop-meta-sep {
    color: rgba(255, 255, 255, 0.25) !important;
}

.ltp-discount-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Workshop gombok */
.ltp-workshop-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 20px;
}

.ltp-workshop-yes {
    background: #ffffff;
    color: #424B48;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ltp-workshop-yes:hover:not(:disabled) {
    background: #f0ede8;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.ltp-workshop-yes:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ltp-workshop-no {
    background: none;
    border: none;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.40);
    cursor: pointer;
    width: 100%;
    border-radius: 8px;
    transition: color 0.15s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ltp-workshop-no:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* Scroll lock */
body.ltp-open {
    overflow: hidden;
}

/* ── Reszponzív – mobil ── */
@media ( max-width: 500px ) {
    #ltp-popup,
    #ltp-workshop-popup {
        border-radius: 16px;
        max-height: calc(100dvh - 24px);
    }

    .ltp-title {
        font-size: 19px;
    }

    .ltp-header,
    .ltp-workshop-header {
        padding: 20px 18px 14px;
    }

    .ltp-options {
        padding: 0 12px;
    }

    .ltp-option-base,
    .ltp-option-synlab {
        padding: 15px;
    }

    .ltp-base-icon,
    .ltp-workshop-card-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .ltp-synlab-price {
        font-size: 24px;
    }

    .ltp-synlab-name {
        font-size: 15px;
    }

    .ltp-includes-list li {
        font-size: 12px;
    }

    .ltp-footer,
    .ltp-workshop-buttons {
        padding-left: 12px;
        padding-right: 12px;
    }
}
