/* =====================================================================
   Panda Event Empty States — "Seans yok" 3 state UI
   Versiyon: 1.0.0
   Kaynak: pandasahne-design-lead/seans-yok-ui-state-plani.md
   Marka dili: "haber listesi", "ilk sen duy", "sahnede görüşürüz"
   ===================================================================== */

/* ----- 1) State badge varyantları (hero'da değil; içerik bölümünde) ----- */

.pnda-state-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    width: fit-content;
    margin: 0 0 16px 0;
}

.pnda-state-banner--coming-soon {
    background: #FBBF24;
    color: #1F2937;
}

.pnda-state-banner--cancelled-all {
    background: #FEE2E2;
    color: #991B1B;
}

.pnda-state-banner--completed {
    background: #6B7280;
    color: #FFFFFF;
}

/* ----- 2) Empty-state kartı (haber listesi) ----- */

.pnda-empty-state {
    max-width: 560px;
    margin: 0 auto 40px;
    padding: 32px 28px;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
    text-align: center;
}

.pnda-empty-state__emoji {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 16px;
}

.pnda-empty-state__title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.pnda-empty-state__desc {
    font-size: 15px;
    line-height: 1.5;
    color: #4B5563;
    margin: 0 0 24px 0;
}

/* ----- 3) Channel butonları ----- */

.pnda-empty-state__channels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.pnda-empty-state__channel-btn {
    flex: 1 1 200px;
    min-height: 48px;
    padding: 12px 20px;
    background: #1F2937;
    color: #FFFFFF;
    border: 1px solid #1F2937;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pnda-empty-state__channel-btn:hover {
    background: #111827;
}

.pnda-empty-state__channel-btn:active {
    transform: translateY(1px);
}

.pnda-empty-state__channel-btn:focus-visible {
    outline: 2px solid #FBBF24;
    outline-offset: 2px;
}

.pnda-empty-state__channel-btn--whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #FFFFFF;
}

.pnda-empty-state__channel-btn--whatsapp:hover {
    background: #1DA851;
}

/* ----- 4) Form panel (collapsed default) ----- */

.pnda-empty-state__form {
    display: none;
    margin-top: 16px;
    text-align: left;
}

.pnda-empty-state__form[data-open="1"] {
    display: block;
}

.pnda-empty-state__field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.pnda-empty-state__field-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pnda-empty-state__field-input:focus {
    outline: none;
    border-color: #FBBF24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.pnda-empty-state__field-input[aria-invalid="true"] {
    border-color: #DC2626;
}

.pnda-empty-state__field-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #DC2626;
}

.pnda-empty-state__field-error[data-visible="1"] {
    display: block;
}

/* ----- 5) Consent ----- */

.pnda-empty-state__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 16px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #4B5563;
    text-align: left;
}

.pnda-empty-state__consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #FBBF24;
}

.pnda-empty-state__consent a {
    color: #1F2937;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ----- 6) Submit button ----- */

.pnda-empty-state__submit {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    background: #FBBF24;
    color: #1F2937;
    border: 1px solid #FBBF24;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.pnda-empty-state__submit:hover {
    background: #F59E0B;
}

.pnda-empty-state__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pnda-empty-state__submit:focus-visible {
    outline: 2px solid #1F2937;
    outline-offset: 2px;
}

/* ----- 7) Success state ----- */

.pnda-empty-state__success {
    display: none;
    padding: 20px;
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    line-height: 1.4;
}

.pnda-empty-state__success[data-visible="1"] {
    display: block;
    animation: pnda-es-fade 0.4s ease;
}

.pnda-empty-state__honeypot {
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* ----- 8) Cancelled-partial toast ----- */

.pnda-cancelled-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px 0;
    padding: 14px 16px;
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.pnda-cancelled-toast__icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

/* Cancelled session pill */
.pnda-detail-time-btn.is-cancelled,
.panda-detail-time-btn.is-cancelled {
    text-decoration: line-through;
    opacity: 0.45;
    cursor: not-allowed;
    position: relative;
}

.pnda-detail-time-btn.is-cancelled::after,
.panda-detail-time-btn.is-cancelled::after {
    content: "İptal";
    position: absolute;
    top: -8px;
    right: -6px;
    background: #FEE2E2;
    color: #991B1B;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

/* ----- 9) Similar events (state B kullanır — mevcut grid'i yeniden tema) ----- */

.pnda-empty-state-similar {
    margin: 32px 0 24px 0;
}

.pnda-empty-state-similar__heading {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 16px 0;
    text-align: center;
}

/* ----- 10) Mobil responsive ----- */

@media (max-width: 480px) {
    .pnda-empty-state {
        padding: 24px 18px;
        margin: 0 12px 32px 12px;
        border-radius: 14px;
    }

    .pnda-empty-state__title {
        font-size: 19px;
    }

    .pnda-empty-state__desc {
        font-size: 14px;
    }

    .pnda-empty-state__channels {
        flex-direction: column;
        gap: 8px;
    }

    .pnda-empty-state__channel-btn {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* ----- 11) Reduced motion ----- */

@media (prefers-reduced-motion: reduce) {
    .pnda-empty-state__success[data-visible="1"] {
        animation: none;
    }
}

@keyframes pnda-es-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----- 12) "Seans yok" durumunda fixed bottom bar gizle (sayfa boştan ölü görünmesin) ----- */

body.pnda-event-empty-state #pnda-bottom-bar,
body.pnda-event-empty-state .panda-detail-bottombar,
body.pnda-event-empty-state #pnda-bar-sessions,
body.pnda-event-empty-state .panda-detail-bar-sessions {
    display: none !important;
}

body.pnda-event-empty-state .panda-detail {
    padding-bottom: 40px !important;
}
