/* ============================================================
   ulu_anket_meta.css — anket alt sitesi, Instagram/Meta dili.
   Ana sitedeki modern.css ve galerideki ulu_galeri_meta.css ile aynı:
   sistem fontu, siyah metin, #737373 ikincil, ince gri çizgiler,
   mor yalnız vurgu. Eski style.css'in yerini alır.
   ============================================================ */

body#anketbody {
    --a-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --a-bg: #fafafa;
    --a-kart: #fff;
    --a-metin: #000;
    --a-ikincil: #737373;
    --a-cizgi: #dbdbdb;
    --a-ayrac: #efefef;
    --a-hover: #f2f2f2;
    --a-input: #fafafa;
    --a-mor: #5b3cc4;
    --a-mor-hover: #4a2fae;
    --a-mor-acik: rgba(91, 60, 196, .14);
    --a-dolgu: #efefef;
    --a-golge: 0 8px 24px rgba(20, 16, 40, .10), 0 1px 3px rgba(20, 16, 40, .06);
    --a-logo: linear-gradient(90deg, #4f3bbd 0%, #8a3cc4 55%, #d6457f 100%);

    background: var(--a-bg);
    color: var(--a-metin);
    font-family: var(--a-font);
    font-size: 14px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body#anketbody.dark-theme {
    --a-bg: #282828;
    --a-kart: #2f2f2f;
    --a-metin: #f5f5f5;
    --a-ikincil: #a8a8a8;
    --a-cizgi: #3a3a3a;
    --a-ayrac: #383838;
    --a-hover: #363636;
    --a-input: #282828;
    --a-mor: #987eff;
    --a-mor-hover: #a993ff;
    --a-mor-acik: rgba(152, 126, 255, .22);
    --a-dolgu: #3a3a3a;
    --a-golge: 0 8px 24px rgba(0, 0, 0, .45);
    /* gece logosu: renkli değil, hafif ışıltılı beyaz (ana siteyle aynı karar) */
    --a-logo: linear-gradient(90deg, #ece6ff 0%, #f5f5f5 55%, #ffe8f1 100%);
}

html:has(> body#anketbody) { background: #fafafa; }
html:has(> body#anketbody.dark-theme) { background: #282828; }

body#anketbody *,
body#anketbody *::before,
body#anketbody *::after { box-sizing: border-box; }

body#anketbody input,
body#anketbody button,
body#anketbody textarea { font-family: var(--a-font); }

body#anketbody a { color: var(--a-mor); text-decoration: none; }
body#anketbody a:hover { text-decoration: underline; }

/* ---------- üst bar: logo · ikonlar ---------- */
#ank-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--a-kart);
    border-bottom: 1px solid var(--a-cizgi);
}

#ank-bar-ic {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 975px;
    height: 60px;
    margin: 0 auto;
    padding: 0 20px;
}

body#anketbody #ank-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
}

#ank-logo-yazi {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    background: var(--a-logo);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

#ank-logo-alt {
    font-size: 22px;
    letter-spacing: -.02em;
    color: var(--a-ikincil);
    line-height: 1.2;
}

#ank-bar-sag {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

body#anketbody .ank-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--a-metin);
    cursor: pointer;
    transition: background-color .15s;
}

body#anketbody .ank-ikon:hover { background: var(--a-hover); text-decoration: none; }

.ank-ikon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#uah-dropdown-wrap { position: relative; display: inline-flex; }

#uahMenuDropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    padding: 8px;
    background: var(--a-kart);
    border: 1px solid var(--a-cizgi);
    border-radius: 16px;
    box-shadow: var(--a-golge);
    z-index: 1002;
}

#uahMenuDropdown.uah-open { display: block; }

body#anketbody .uah-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--a-metin);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

body#anketbody .uah-dropdown-item:hover { background: var(--a-hover); text-decoration: none; }
.uah-ben { font-weight: 600; }
.uah-dropdown-divider { height: 1px; margin: 6px -8px; background: var(--a-ayrac); }

/* gece modu anahtarı — açık/kapalı body.dark-theme'den gelir */
.uah-tema-switch {
    position: relative;
    flex: none;
    width: 34px;
    height: 20px;
    margin-left: auto;
    border-radius: 999px;
    background: var(--a-cizgi);
    transition: background-color .2s;
}

.uah-tema-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    transition: transform .2s;
}

body#anketbody.dark-theme .uah-tema-switch { background: var(--a-mor); }
body#anketbody.dark-theme .uah-tema-switch::after { transform: translateX(14px); }

/* ---------- sayfa kabuğu ---------- */
body#anketbody .container { flex: 1; }

.ankettumu {
    max-width: 600px;
    margin: 32px auto 48px;
    padding: 0 16px;
}

.ank-form { margin: 0; }

.ank-kart {
    background: var(--a-kart);
    border: 1px solid var(--a-cizgi);
    border-radius: 12px;
    padding: 24px;
}

.ank-bas { margin-bottom: 20px; }

.ank-baslik {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.ank-aciklama {
    margin: 4px 0 0;
    color: var(--a-ikincil);
    font-size: 14px;
}

.ank-ust {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

body#anketbody .ank-etiket {
    display: block;
    margin: 0 0 8px;
    color: var(--a-ikincil);
    font-size: 12px;
    font-weight: 600;
}

.ank-ust .ank-etiket { margin: 0; }

.ank-islem { display: flex; gap: 14px; }
body#anketbody .ank-islem a { color: var(--a-ikincil); font-size: 13px; }
body#anketbody .ank-islem a:hover { color: var(--a-metin); text-decoration: none; }

.ank-soru {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

body#anketbody .ank-soru a,
body#anketbody .ank-metin a { color: inherit; text-decoration: underline; text-decoration-color: var(--a-cizgi); }

/* ---------- form alanları ---------- */
.ank-girdi {
    width: 100%;
    padding: 11px 12px;
    background: var(--a-input);
    border: 1px solid var(--a-cizgi);
    border-radius: 8px;
    color: var(--a-metin);
    font-size: 15px;
    outline: 0;
    transition: border-color .15s;
}

.ank-girdi::placeholder { color: var(--a-ikincil); }
.ank-girdi:focus { border-color: var(--a-ikincil); }

textarea.ank-girdi {
    display: block;
    min-height: 64px;
    margin-bottom: 20px;
    resize: vertical;
    line-height: 1.4;
}

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

.ank-sik { position: relative; }
.ank-sik.ank-gizli { display: none; }

.ank-no {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--a-ikincil);
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}

.ank-sik .ank-girdi { padding-left: 40px; }

body#anketbody .ank-ekle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--a-mor);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ank-ekle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

body#anketbody .ank-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--a-mor);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .15s;
}

body#anketbody .ank-btn:hover { background: var(--a-mor-hover); }
body#anketbody .ank-btn:disabled { opacity: .5; cursor: default; }

body#anketbody .ank-ikincil-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    color: var(--a-metin);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- oylama: Threads anket seçenekleri ---------- */
.ank-secenekler {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ank-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ank-secenek {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--a-cizgi);
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
    overflow-wrap: anywhere;
}

.ank-secenek:hover { background: var(--a-hover); }

.ank-isaret {
    flex: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--a-cizgi);
    border-radius: 50%;
    transition: border-color .15s, background-color .15s;
}

body#anketbody.dark-theme .ank-isaret { border-color: #5a5a5a; }

.ank-radio:checked + .ank-secenek {
    border-color: var(--a-mor);
    background: var(--a-mor-acik);
    font-weight: 600;
}

body#anketbody .ank-radio:checked + .ank-secenek .ank-isaret {
    border-color: var(--a-mor);
    background: var(--a-mor) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ank-radio:focus-visible + .ank-secenek { outline: 2px solid var(--a-mor); outline-offset: 2px; }

/* ---------- sonuçlar: dolgulu çubuklar ---------- */
.ank-sonuclar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ank-sonuc {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--a-ayrac);
    overflow: hidden;
    font-size: 15px;
}

.ank-dolgu {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--a-cizgi);
    border-radius: 12px 0 0 12px;
    animation: ank-dol .6s ease-out;
}

body#anketbody.dark-theme .ank-dolgu { background: #4a4a4a; }

.ank-onde .ank-dolgu { background: var(--a-mor-acik) !important; }
.ank-onde { font-weight: 600; }

@keyframes ank-dol { from { width: 0; } }

.ank-sonuc > span:not(.ank-dolgu) { position: relative; }

.ank-metin { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.ank-oy {
    flex: none;
    color: var(--a-ikincil);
    font-size: 13px;
    font-weight: 400;
}

.ank-yuzde {
    flex: none;
    min-width: 40px;
    text-align: right;
    font-weight: 700;
}

.ank-onde .ank-yuzde { color: var(--a-mor); }

.ank-ozet {
    margin-top: 14px;
    color: var(--a-ikincil);
    font-size: 14px;
}

body#anketbody .ank-ozet a { color: var(--a-metin); font-weight: 600; }

.ank-grafik {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--a-ayrac);
}

#placeholder { width: 100%; }

body#anketbody #placeholder .tickLabel { color: var(--a-ikincil); font-size: 11px; }

#ank-lejant { margin-top: 12px; }
#ank-lejant table { border-collapse: collapse; }
body#anketbody #ank-lejant td { padding: 3px 6px 3px 0; color: var(--a-ikincil) !important; font-size: 12px; vertical-align: middle; }
#ank-lejant .legendColorBox > div { border: 0 !important; padding: 0 !important; }
#ank-lejant .legendColorBox > div > div { border-radius: 50%; }

/* ---------- uyarı + bilgi kutuları ---------- */
.ank-uyari {
    margin: 0 0 12px;
    padding: 12px 16px;
    background: var(--a-kart);
    border: 1px solid var(--a-cizgi);
    border-radius: 12px;
    font-size: 14px;
}

body#anketbody .ank-uyari a { font-weight: 600; }

.ank-bilgi { text-align: center; padding: 40px 24px; }
.ank-bilgi .ank-aciklama { margin-top: 8px; }

/* ---------- alt bilgi ---------- */
#ank-alt {
    padding: 24px 16px 32px;
    text-align: center;
    color: var(--a-ikincil);
    font-size: 12px;
}

body#anketbody #ank-alt a { color: var(--a-ikincil); }

/* ---------- mobil ---------- */
@media (max-width: 640px) {
    #ank-bar-ic { height: 54px; padding: 0 12px; gap: 8px; }
    #ank-logo-yazi, #ank-logo-alt { font-size: 19px; }
    #ank-bar-sag .ank-ikon[title="uludağ sözlük"] { display: none; }

    .ankettumu { margin: 0 auto 24px; padding: 0; }
    .ank-kart { border-width: 0 0 1px; border-radius: 0; padding: 20px 16px; }
    .ank-uyari { margin: 12px 16px; }
}
