﻿/* ==================================================== */
/*  ANA SAYFA ANKETI - anket.css (21.10.2026, v5)        */
/*  Kutu /js/anket.js ile doldurulur. Dolmadan once ya   */
/*  da aktif anket yoksa gorunmez.                       */
/*  Gorunum: ustte mavi "Anket" seridi, altinda soru ve  */
/*  ikonlu kutucuklar. Oy vermeden once her secenek      */
/*  tiklanabilir kutucuk; oy verdikten sonra ayni        */
/*  kutucuklarda yuzde ve cubuk.                         */
/*  v5: secenek adi her kutucukta iki satirlik sabit     */
/*  yer kaplar; ikon, ad, yuzde ve cubuk tum             */
/*  kutucuklarda ayni hizada durur.                      */
/* ==================================================== */

.anket-kutu {
    display: none;
}

.anket-kutu.ank-hazir {
    display: block;
    margin: 16px 0 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d6e2ea;
    border-radius: 10px;
}

/* Ustteki mavi serit (sol menudeki kutu basliklariyla ayni dil) */
.anket-kutu .ank-serit {
    padding: 10px 18px;
    color: #fff;
    background: #1695d5;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.anket-kutu .ank-serit .fa {
    margin-right: 8px;
}

.anket-kutu .ank-govde {
    padding: 14px 18px 18px;
}

.anket-kutu .ank-soru {
    margin: 0 0 14px;
    color: #12263a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* ===== KUTUCUK IZGARASI (secenekler ve sonuclar ortak) ===== */
.anket-kutu .ank-izgara {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

/* ===== SECENEKLER (oy vermeden once) ===== */
.anket-kutu .ank-secenek {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 16px 8px 14px;
    color: #12263a;
    background: #fff;
    border: 1px solid #d6e2ea;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.anket-kutu .ank-secenek .fa {
    color: #1695d5;
    font-size: 26px;
    line-height: 1;
    transition: color .15s ease;
}

/* Secenek adi: tek satirlik ad da iki satirlik yer kaplar ve bu alanda
   dikeyde ortalanir. Boylece ikonlar ve altindaki her sey ayni hizada kalir. */
.anket-kutu .ank-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5em;
}

.anket-kutu .ank-secenek:hover,
.anket-kutu .ank-secenek:focus,
.anket-kutu .ank-secenek.ank-secildi {
    color: #fff;
    background: #1695d5;
    border-color: #1695d5;
    outline: none;
}

.anket-kutu .ank-secenek:hover {
    transform: translateY(-2px);
}

.anket-kutu .ank-secenek:hover .fa,
.anket-kutu .ank-secenek:focus .fa,
.anket-kutu .ank-secenek.ank-secildi .fa {
    color: #fff;
}

.anket-kutu .ank-secenek:focus-visible {
    box-shadow: 0 0 0 3px rgba(22, 149, 213, .3);
}

.anket-kutu .ank-secenek:disabled {
    cursor: wait;
    opacity: .6;
    transform: none;
}

.anket-kutu .ank-secenek.ank-secildi {
    opacity: 1;
}

/* ===== SONUCLAR (oy verdikten sonra) ===== */
.anket-kutu .ank-sonuc {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 14px 10px 12px;
    color: #33434f;
    background: #fff;
    border: 1px solid #d6e2ea;
    border-radius: 8px;
    text-align: center;
}

.anket-kutu .ank-sonuc .fa {
    color: #1695d5;
    font-size: 22px;
    line-height: 1;
}

.anket-kutu .ank-sonuc .ank-ad {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.anket-kutu .ank-yuzde {
    color: #12263a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

/* Cubuk her zaman kutucugun en altinda */
.anket-kutu .ank-cubuk {
    display: block;
    width: 100%;
    margin-top: auto;
    height: 6px;
    overflow: hidden;
    background: #e6f0f7;
    border-radius: 3px;
}

.anket-kutu .ank-cubuk-ic {
    display: block;
    width: 0;
    height: 100%;
    background: #1695d5;
    border-radius: 3px;
    transition: width .6s ease;
}

/* Ziyaretcinin kendi oyu: mavi zemin + sag ustte yesil tik */
.anket-kutu .ank-benim {
    background: #eaf6fc;
    border-color: #1695d5;
}

.anket-kutu .ank-tik {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #27ae60;
    border-radius: 50%;
}

.anket-kutu .ank-tik .fa {
    color: #fff;
    font-size: 11px;
}

.anket-kutu .ank-alt {
    margin: 12px 0 0;
    color: #6b7b88;
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    .anket-kutu .ank-cubuk-ic,
    .anket-kutu .ank-secenek,
    .anket-kutu .ank-secenek .fa {
        transition: none;
    }

    .anket-kutu .ank-secenek:hover {
        transform: none;
    }
}

/* ===== TELEFON: iki sutun ===== */
@media (max-width: 575.98px) {
    .anket-kutu .ank-serit {
        padding: 9px 14px;
        font-size: 16px;
    }

    .anket-kutu .ank-govde {
        padding: 12px 14px 16px;
    }

    .anket-kutu .ank-soru {
        font-size: 16px;
    }

    .anket-kutu .ank-izgara {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}