/* ============================================================
   SURVEY SLIDER V2 — Temiz sıfırdan CSS
   ============================================================ */

.ncx2-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: #ffffff;
}

/* ── Form Alanı ──────────────────────────────────────────── */
.ncx2-form-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.ncx2-survey-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ncx2-survey-desc {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ── Soru ────────────────────────────────────────────────── */
.ncx2-question-item {
    padding: 12px 0;
}

.ncx2-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 4px 0;
}

.ncx2-question-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ncx2-q-num {
    margin-right: 4px;
    opacity: 0.6;
}

/* ── Balon ───────────────────────────────────────────────── */
.ncx2-bubble-wrapper {
    position: relative;
    height: 32px;
    margin-bottom: 4px;
}

.ncx2-bubble {
    position: absolute;
    transform: translateX(-50%);
    background: #6366f1;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    transition: left 0.05s;
    line-height: 1.4;
}

.ncx2-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: inherit;
}

/* ── Track ───────────────────────────────────────────────── */
.ncx2-track-wrapper {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}

.ncx2-track-bg,
.ncx2-track-fill {
    position: absolute;
    left: 0;
    height: 6px;
    border-radius: 50px;
    pointer-events: none;
}

.ncx2-track-bg {
    width: 100%;
    background: #e2e8f0;
}

.ncx2-track-fill {
    width: 50%;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    transition: width 0.05s;
}

/* ── Range Input ─────────────────────────────────────────── */
.ncx2-slider-input {
    position: relative;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    height: 20px;
    margin: 0;
}

.ncx2-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.1s;
}

.ncx2-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.ncx2-slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.ncx2-slider-input::-webkit-slider-track { background: transparent; }
.ncx2-slider-input::-moz-range-track     { background: transparent; }

/* ── Etiketler ───────────────────────────────────────────── */
.ncx2-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ── Buton ───────────────────────────────────────────────── */
.ncx2-btn-wrapper {
    margin-top: 20px;
}

.ncx2-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: block;
}

.ncx2-submit-btn:hover  { opacity: 0.9; }
.ncx2-submit-btn:active { transform: scale(0.98); }
.ncx2-submit-btn:disabled,
.ncx2-submit-btn.ncx2-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── After-vote Alanları (ortak) ─────────────────────────── */
.ncx2-success-area,
.ncx2-results-area,
.ncx2-custom-area {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    animation: ncx2FadeIn 0.4s ease;
}

/* Gösterilince override */
.ncx2-success-area[style*="display:flex"],
.ncx2-success-area[style*="display: flex"],
.ncx2-results-area[style*="display:flex"],
.ncx2-results-area[style*="display: flex"],
.ncx2-custom-area[style*="display:flex"],
.ncx2-custom-area[style*="display: flex"] {
    display: flex !important;
    visibility: visible;
    pointer-events: auto;
}

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

/* Oy sonrası form gizlenir */
.ncx2-wrapper.ncx2-voted .ncx2-form-area {
    display: none !important;
}

/* ── Başarı ──────────────────────────────────────────────── */
.ncx2-success-icon {
    font-size: 52px;
    margin-bottom: 16px;
    color: #22c55e;
}

.ncx2-success-icon i,
.ncx2-success-icon svg {
    font-size: inherit;
    color: inherit;
    width: 1em;
    height: 1em;
}

.ncx2-success-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ncx2-success-desc {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.5;
}

/* ── Sonuçlar ────────────────────────────────────────────── */
.ncx2-results-area {
    align-items: stretch;
    text-align: left;
    justify-content: flex-start;
    overflow-y: auto;
}

.ncx2-results-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.ncx2-result-row {
    margin-bottom: 18px;
}

.ncx2-result-q-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ncx2-result-avg {
    font-size: 30px;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
    margin-bottom: 8px;
}

.ncx2-result-count {
    font-size: 12px;
    opacity: 0.65;
    margin-bottom: 8px;
}

.ncx2-result-bar-track {
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 4px;
}

.ncx2-result-bar-fill {
    width: 0%;
    height: 100%;
    border-radius: 50px;
    transition: width 1s ease;
}

.ncx2-result-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.55;
    margin-top: 2px;
}

/* ── Footer ──────────────────────────────────────────────── */
.ncx2-results-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 6px;
}

/* ── Özel Mesaj ──────────────────────────────────────────── */
.ncx2-custom-area {
    align-items: stretch;
    justify-content: center;
    text-align: left;
}

/* ============================================================
   ARKA PLAN — Video & Slideshow katmanları
   ============================================================ */

/* Wrapper pozisyon: video/slideshow için gerekli */
.ncx2-wrapper {
    position: relative;
    overflow: hidden;
}

/* İçerik katmanı her zaman üstte */
.ncx2-form-area,
.ncx2-success-area,
.ncx2-results-area,
.ncx2-custom-area {
    position: relative;
    z-index: 2;
}

/* ── Ortak overlay ───────────────────────────────────────── */
.ncx2-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── Video ───────────────────────────────────────────────── */
.ncx2-bg-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* iframe (YouTube / Vimeo) */
.ncx2-bg-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;  /* 16:9 oranı */
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

/* self-hosted <video> */
.ncx2-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

/* Ken Burns — video sarmalayıcı */
.ncx2-bg-video-wrap.ncx2-ken-burns {
    animation: ncx2KenBurnsWrap 20s ease-in-out infinite alternate;
}

/* ── Slideshow ───────────────────────────────────────────── */
.ncx2-bg-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ncx2-ss-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: none;
    transform: scale(1) translate(0, 0);
}

.ncx2-ss-slide.ncx2-ss-active {
    opacity: 1;
    z-index: 1;
}

.ncx2-ss-slide.ncx2-ss-entering {
    z-index: 2;
}

.ncx2-ss-slide.ncx2-ss-leaving {
    z-index: 1;
}

/* ── Ken Burns animasyonu (slideshow & video) ────────────── */
@keyframes ncx2KenBurns1 {
    0%   { transform: scale(1.0) translate(0%, 0%); }
    100% { transform: scale(1.15) translate(-3%, -2%); }
}
@keyframes ncx2KenBurns2 {
    0%   { transform: scale(1.1) translate(-2%, 1%); }
    100% { transform: scale(1.0) translate(3%, -1%); }
}
@keyframes ncx2KenBurns3 {
    0%   { transform: scale(1.05) translate(2%, -2%); }
    100% { transform: scale(1.15) translate(-2%, 2%); }
}
@keyframes ncx2KenBurns4 {
    0%   { transform: scale(1.15) translate(-3%, 2%); }
    100% { transform: scale(1.0) translate(2%, -3%); }
}
@keyframes ncx2KenBurnsWrap {
    0%   { transform: scale(1.0) translate(0, 0); }
    100% { transform: scale(1.08) translate(-2%, -1%); }
}

/* ── Geçiş animasyonları ─────────────────────────────────── */

/* fade */
.ncx2-ss-slide.ncx2-trans-fade-enter  { opacity: 0; }
.ncx2-ss-slide.ncx2-trans-fade-active { opacity: 1; }
.ncx2-ss-slide.ncx2-trans-fade-leave  { opacity: 0; }

/* slide-left */
.ncx2-ss-slide.ncx2-trans-slide-left-enter  { transform: translateX(100%); opacity: 1; }
.ncx2-ss-slide.ncx2-trans-slide-left-active { transform: translateX(0);    opacity: 1; }
.ncx2-ss-slide.ncx2-trans-slide-left-leave  { transform: translateX(-100%);opacity: 1; }

/* slide-right */
.ncx2-ss-slide.ncx2-trans-slide-right-enter  { transform: translateX(-100%); opacity: 1; }
.ncx2-ss-slide.ncx2-trans-slide-right-active { transform: translateX(0);     opacity: 1; }
.ncx2-ss-slide.ncx2-trans-slide-right-leave  { transform: translateX(100%);  opacity: 1; }

/* slide-up */
.ncx2-ss-slide.ncx2-trans-slide-up-enter  { transform: translateY(100%); opacity: 1; }
.ncx2-ss-slide.ncx2-trans-slide-up-active { transform: translateY(0);    opacity: 1; }
.ncx2-ss-slide.ncx2-trans-slide-up-leave  { transform: translateY(-100%);opacity: 1; }

/* zoom-in */
.ncx2-ss-slide.ncx2-trans-zoom-in-enter  { transform: scale(1.2); opacity: 0; }
.ncx2-ss-slide.ncx2-trans-zoom-in-active { transform: scale(1);   opacity: 1; }
.ncx2-ss-slide.ncx2-trans-zoom-in-leave  { transform: scale(0.9); opacity: 0; }

/* zoom-out */
.ncx2-ss-slide.ncx2-trans-zoom-out-enter  { transform: scale(0.8); opacity: 0; }
.ncx2-ss-slide.ncx2-trans-zoom-out-active { transform: scale(1);   opacity: 1; }
.ncx2-ss-slide.ncx2-trans-zoom-out-leave  { transform: scale(1.1); opacity: 0; }
