/**
 * YZ Visit Mode Modal — Giriş Sorusu Overlay
 *
 * Tasarım hedefleri:
 *   - Full-page overlay, samimi sıcak ton
 *   - 2 adım: mod seçimi + kişi sayısı
 *   - Mobil-first responsive
 *   - Akıcı animasyonlar (fade + scale)
 *   - Tema CSS değişkenlerine sadık (--primary, --bg-card, vb.)
 */

.yz-vm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.yz-vm-overlay.is-open {
    opacity: 1;
}

.yz-vm-modal {
    background: var(--bg-card, #ffffff);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px;
    transform: scale(0.95);
    transition: transform 0.25s ease-out;
    position: relative;
}

.yz-vm-overlay.is-open .yz-vm-modal {
    transform: scale(1);
}

/* ─── Adım kontrolü ─── */
.yz-vm-step {
    display: none;
    animation: yzVmFadeIn 0.25s ease-out;
}
.yz-vm-step.is-active {
    display: block;
}
.yz-vm-step.is-leaving {
    display: block;
    animation: yzVmFadeOut 0.2s ease-out forwards;
}

@keyframes yzVmFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes yzVmFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
}

/* ─── Başlık ─── */
.yz-vm-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text, #1f2937);
    text-align: center;
    line-height: 1.3;
}

.yz-vm-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted, #6b7280);
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.5;
}

/* ─── Adım 1: Mod kartları ─── */
.yz-vm-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0;
}

.yz-vm-mode-card {
    background: var(--bg-soft, #f9fafb);
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.18s ease-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.yz-vm-mode-card:hover {
    border-color: var(--primary, #2563eb);
    background: var(--bg-card, #fff);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.yz-vm-mode-card:active {
    transform: translateY(0);
}

.yz-vm-mode-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.yz-vm-mode-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #1f2937);
    margin: 0;
}

.yz-vm-mode-desc {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.4;
    margin: 0;
}

/* ─── Adım 2: Stepper ─── */
.yz-vm-stepper-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 28px 0 20px;
}

.yz-vm-stepper-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border, #e5e7eb);
    background: var(--bg-card, #fff);
    color: var(--text, #1f2937);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-out;
    font-family: inherit;
    padding: 0;
}

.yz-vm-stepper-btn:hover:not(:disabled) {
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
    transform: scale(1.05);
}

.yz-vm-stepper-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.yz-vm-stepper-input {
    width: 80px;
    height: 56px;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 12px;
    background: var(--bg-soft, #f9fafb);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text, #1f2937);
    font-family: inherit;
    -moz-appearance: textfield;
}

.yz-vm-stepper-input::-webkit-outer-spin-button,
.yz-vm-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.yz-vm-stepper-input:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
}

/* ─── Devam butonu ─── */
.yz-vm-continue-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-out;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.yz-vm-continue-btn:hover {
    background: var(--primary-dk, #1d4ed8);
    color: var(--primary-on, #fff);
    transform: translateY(-1px);
}

.yz-vm-continue-btn svg {
    width: 18px;
    height: 18px;
}

/* ─── Mobil responsive ─── */
@media (max-width: 480px) {
    .yz-vm-modal {
        padding: 24px 20px;
        border-radius: 16px;
    }
    .yz-vm-title {
        font-size: 1.25rem;
    }
    .yz-vm-mode-grid {
        grid-template-columns: 1fr;
    }
    .yz-vm-mode-card {
        padding: 20px 16px;
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }
    .yz-vm-mode-icon {
        font-size: 2rem;
    }
    .yz-vm-mode-label {
        font-size: 0.95rem;
    }
    .yz-vm-stepper-btn {
        width: 52px;
        height: 52px;
    }
    .yz-vm-stepper-input {
        width: 72px;
        height: 52px;
    }
}

/* ─── RTL (Arapça) ─── */
[dir="rtl"] .yz-vm-mode-card {
    text-align: center;
}
[dir="rtl"] .yz-vm-continue-btn svg {
    transform: scaleX(-1);
}
