/* =========================
   WP-Polls Premium UI v2
   ========================= */

.wp-polls {
  background: #ffffff;
  border: 1px solid #e7edf3;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  max-width: 760px;
  margin: 0 auto 32px;
}

.wp-polls p {
  margin: 0 0 20px;
}

.wp-polls p:first-child {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: #1d2d44;
  letter-spacing: -0.02em;
}

.wp-polls ul,
.wp-polls ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-polls li {
  margin-bottom: 14px;
  position: relative;
}

/* Label artık premium kart */
.wp-polls label {
  position: relative;
  display: block;
  padding: 18px 20px 18px 22px;
  border: 1px solid #d9e3ee;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  color: #23384d;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

/* Sol vurgu çizgisi */
.wp-polls label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: transparent;
  transition: all 0.25s ease;
}

/* Sağ tik alanı */
.wp-polls label::after {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef3f8;
  color: transparent;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s ease;
}

/* Hover */
.wp-polls label:hover {
  border-color: #c5d3e1;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7fb 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.wp-polls label:hover::before {
  background: #b21f2d;
}

/* Radio görünmesin ama çalışsın */
.wp-polls input[type="radio"],
.wp-polls input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Seçili durum */
.wp-polls li:has(input[type="radio"]:checked) label,
.wp-polls li:has(input[type="checkbox"]:checked) label {
  border-color: #b21f2d;
  background: linear-gradient(180deg, #fff8f8 0%, #fff1f2 100%);
  color: #7f1620;
  box-shadow: 0 12px 28px rgba(178, 31, 45, 0.12);
}

.wp-polls li:has(input[type="radio"]:checked) label::before,
.wp-polls li:has(input[type="checkbox"]:checked) label::before {
  background: #b21f2d;
}

.wp-polls li:has(input[type="radio"]:checked) label::after,
.wp-polls li:has(input[type="checkbox"]:checked) label::after {
  background: #b21f2d;
  color: #ffffff;
  transform: translateY(-50%) scale(1);
}

/* Buton alanı */
.wp-polls input[type="button"],
.wp-polls input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 54px;
  margin-top: 14px;
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #c61f2f 0%, #a71826 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 14px 28px rgba(178, 31, 45, 0.22);
}

.wp-polls input[type="button"]:hover,
.wp-polls input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(178, 31, 45, 0.28);
}

/* Sonuç linki */
.wp-polls a {
  display: inline-block;
  margin-top: 14px;
  color: #1e9ae6;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wp-polls a:hover {
  color: #167fc0;
  text-decoration: underline;
}

/* Sonuç görünümü */
.wp-polls .pollbar {
  height: 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #c61f2f 0%, #e84d5f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.wp-polls small,
.wp-polls-users,
.wp-polls-ans {
  color: #617487;
  font-size: 14px;
}

.wp-polls-users {
  display: block;
  margin-top: 18px;
}

/* Mobil */
@media (max-width: 767px) {
  .wp-polls {
    padding: 22px;
    border-radius: 18px;
  }

  .wp-polls p:first-child {
    font-size: 22px;
  }

  .wp-polls label {
    padding: 16px 18px;
    padding-right: 48px;
    font-size: 15px;
  }

  .wp-polls input[type="button"],
  .wp-polls input[type="submit"] {
    width: 100%;
  }
}

/* WP-Polls input gizleme - güçlü override */
.wp-polls input[type="radio"],
.wp-polls input[type="checkbox"],
.wp-polls-form input[type="radio"],
.wp-polls-form input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* Bazı temalar input'u span/div gibi gösterebiliyor, onları da temizleyelim */
.wp-polls input[type="radio"] + *,
.wp-polls input[type="checkbox"] + * {
  margin-left: 0 !important;
}

/* Şıklar arasındaki düzen */
.wp-polls ul,
.wp-polls ol,
.wp-polls .wp-polls-ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wp-polls li {
  position: relative;
  margin-bottom: 14px !important;
  padding: 0 !important;
}

/* Label kart gibi görünsün */
.wp-polls li label {
  position: relative;
  display: block !important;
  width: 100%;
  padding: 18px 22px !important;
  border: 1px solid #d9e3ee;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  color: #23384d;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

/* Hover */
.wp-polls li label:hover {
  border-color: #c5d3e1;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7fb 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* Sol vurgu çizgisi */
.wp-polls li label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: transparent;
  transition: all 0.25s ease;
}

/* Sağ tik */
.wp-polls li label::after {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef3f8;
  color: transparent;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s ease;
}

/* input checked ise label'ı boyayalım */
.wp-polls li:has(input[type="radio"]:checked) label,
.wp-polls li:has(input[type="checkbox"]:checked) label {
  border-color: #b21f2d;
  background: linear-gradient(180deg, #fff8f8 0%, #fff1f2 100%);
  color: #7f1620;
  box-shadow: 0 12px 28px rgba(178, 31, 45, 0.12);
}

.wp-polls li:has(input[type="radio"]:checked) label::before,
.wp-polls li:has(input[type="checkbox"]:checked) label::before {
  background: #b21f2d;
}

.wp-polls li:has(input[type="radio"]:checked) label::after,
.wp-polls li:has(input[type="checkbox"]:checked) label::after {
  background: #b21f2d;
  color: #fff;
  transform: translateY(-50%) scale(1);
}

/* Anket Üst Başlık Alanı */
.anket-ust-alan {
  max-width: 720px;
  margin: 0 auto 18px;
  text-align: center;
}

.anket-ust-alan h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  color: #1b2b44;
}

.anket-ust-alan p {
  margin: 0;
  font-size: 16px;
  color: #5b6b7c;
}

@media (max-width: 767px) {
  .anket-ust-alan h2 {
    font-size: 24px;
  }

  .anket-ust-alan p {
    font-size: 14px;
  }
}