
/*
 * Futbolcu Polls v0.3.1
 * Görsel yaklaşım: haber sitesi / editoryal.
 * Az kutu, az efekt, siyah + yeşil vurgu.
 */

:root {
  --fo-green: #0b7a2a;
  --fo-black: #111;
  --fo-text: #151515;
  --fo-muted: #666;
  --fo-line: #deded8;
  --fo-line-soft: #ecece7;
  --fo-paper: #fff;
  --fo-page: #f6f6f2;
}

/* ========== SAYFA MERKEZLEME ========== */

.fo-poll-theme-title-hidden {
  display: none !important;
}

body.fo-poll-center-page .post-edit-link,
body.fo-poll-center-page .edit-link {
  display: none !important;
}

/*
 * Tema parent'ındaki padding ne olursa olsun merkezi gerçek viewport'a göre
 * ortalar. Mobildeki sağa kaymanın ana çözümü bu.
 */
.fo-poll-center {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1064px, calc(100vw - 32px));
  margin: 34px 0 72px;
  box-sizing: border-box;
}

body.fo-poll-center-page .entry-content,
body.fo-poll-center-page .page-content {
  max-width: none !important;
}

/* ========== MERKEZ ÜST ALANI ========== */

.fo-poll-center__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 38px;
  padding: 20px 0 28px;
}

.fo-poll-center__eyebrow,
.fo-poll-hub__eyebrow,
.fo-poll__eyebrow,
.fo-poll__kicker,
.fo-poll__results-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fo-black);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.fo-poll-center__eyebrow::before,
.fo-poll-hub__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--fo-green);
}

.fo-poll-center__hero h1 {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--fo-black);
  font-size: clamp(38px, 4.6vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
}

.fo-poll-center__hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #555;
  font-size: 16px;
  line-height: 1.55;
}

/*
 * Önceki sürümdeki "dashboard kartları" kaldırıldı.
 * Sayılar artık haber sayfasındaki meta bilgi gibi duruyor.
 */
.fo-poll-center__stats {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  padding-bottom: 5px;
}

.fo-poll-center__stat {
  min-width: 0;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--fo-line);
  border-radius: 0;
  background: transparent;
}

.fo-poll-center__stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.fo-poll-center__stat:last-child {
  padding-right: 0;
}

.fo-poll-center__stat strong {
  display: block;
  color: var(--fo-black);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.fo-poll-center__stat span {
  display: block;
  margin-top: 6px;
  color: #777;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.fo-poll-center__rule {
  width: 100%;
  height: 1px;
  background: var(--fo-line);
}

/* ========== ANKET LİSTESİ ========== */

.fo-poll-hub {
  box-sizing: border-box;
  width: min(1064px, calc(100vw - 32px));
  margin: 42px auto 58px;
}

.fo-poll-center .fo-poll-hub {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.fo-poll-hub__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.fo-poll-hub__head h2 {
  margin: 7px 0 0;
  color: var(--fo-black);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.fo-poll-hub__count {
  padding-bottom: 3px;
  color: #777;
  font-size: 12px;
  font-weight: 600;
}

.fo-poll-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fo-poll-hub--single .fo-poll-card {
  grid-column: 1 / -1;
}

/* ========== ANKET KARTI ========== */

.fo-poll-card {
  overflow: hidden;
  border: 1px solid var(--fo-line);
  border-radius: 8px;
  background: var(--fo-paper);
  transition: border-color .15s ease;
}

.fo-poll-card:hover {
  border-color: #aaa;
}

.fo-poll-card.is-open {
  grid-column: 1 / -1;
}

.fo-poll-card__summary {
  display: grid;
  width: 100%;
  min-height: 175px;
  padding: 20px 20px 17px;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--fo-text);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.fo-poll-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #777;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.fo-poll-card__meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fo-green);
  font-weight: 800;
}

.fo-poll-card__meta span:first-child::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.fo-poll-card__question {
  align-self: center;
  max-width: 820px;
  color: var(--fo-black);
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 800;
}

.fo-poll-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  padding-top: 12px;
  border-top: 1px solid var(--fo-line-soft);
  color: var(--fo-black);
  font-size: 13px;
  font-weight: 750;
}

.fo-poll-card__cta span {
  transition: transform .15s ease;
}

.fo-poll-card:hover .fo-poll-card__cta span {
  transform: translateX(3px);
}

.fo-poll-card__panel {
  padding: 0 20px 20px;
  animation: fo-fade .2s ease both;
}

.fo-poll-card.is-open .fo-poll-card__summary {
  min-height: auto;
}

.fo-poll-card.is-open .fo-poll-card__question {
  color: #555;
  font-size: 17px;
}

/* ========== TEK ANKET / HABER İÇİ ========== */

.fo-poll {
  position: relative;
  box-sizing: border-box;
  max-width: 780px;
  margin: 28px auto;
  padding: 24px;
  overflow: hidden;
  color: var(--fo-text);
  background: var(--fo-paper);
  border: 1px solid var(--fo-line);
  border-radius: 8px;
}

.fo-poll *,
.fo-poll *::before,
.fo-poll *::after {
  box-sizing: border-box;
}

.fo-poll--compact {
  max-width: none;
  margin: 0;
  padding: 18px 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.fo-poll__topline,
.fo-poll__results-head,
.fo-poll__result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fo-poll__eyebrow {
  color: var(--fo-green);
}

.fo-poll__countdown,
.fo-poll__status-pill {
  color: #666;
  font-size: 12px;
  font-weight: 600;
}

.fo-poll__header {
  margin-top: 15px;
}

.fo-poll__kicker {
  margin-bottom: 8px;
  color: #777;
}

.fo-poll__question {
  max-width: 700px;
  margin: 0 0 20px;
  color: var(--fo-black);
  font-size: clamp(25px, 3.5vw, 34px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
}

.fo-poll--compact .fo-poll__question {
  font-size: clamp(21px, 3vw, 27px);
}

.fo-poll__message {
  display: inline-flex;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
}

.fo-poll__message:empty {
  display: none;
}

.fo-poll__message[data-type="error"] { color: #a32222; }
.fo-poll__message[data-type="success"] { color: var(--fo-green); }
.fo-poll__message[data-type="info"] { color: #666; }

.fo-poll__options {
  display: grid;
  gap: 8px;
}

.fo-poll__option {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid var(--fo-line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.fo-poll__option:hover {
  border-color: #999;
}

.fo-poll__option.is-selected {
  border-color: var(--fo-black);
  background: #f8f8f5;
}

.fo-poll__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fo-poll__option-check {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 1.5px solid #aaa;
  border-radius: 50%;
}

.fo-poll__option.is-selected .fo-poll__option-check {
  border-color: var(--fo-green);
}

.fo-poll__option.is-selected .fo-poll__option-check::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--fo-green);
}

.fo-poll__option-text {
  color: var(--fo-text);
  font-size: 15px;
  font-weight: 650;
}

.fo-poll__option-arrow {
  color: #888;
  font-size: 16px;
}

.fo-poll__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 18px;
  border: 1px solid var(--fo-black);
  border-radius: 4px;
  background: var(--fo-black);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease;
}

.fo-poll__submit:hover {
  background: #292929;
}

.fo-poll__submit:disabled {
  opacity: .6;
  cursor: wait;
}

.fo-poll__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fo-spin .7s linear infinite;
}

.fo-poll__form {
  transition: opacity .16s ease;
}

.fo-poll__form.is-leaving {
  opacity: 0;
}

/* ========== SONUÇLAR ========== */

.fo-poll__results {
  animation: fo-fade .22s ease both;
}

.fo-poll__results-head {
  margin: 6px 0 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--fo-line);
}

.fo-poll__results-head > div {
  display: grid;
  gap: 2px;
}

.fo-poll__results-head strong {
  color: var(--fo-black);
  font-size: 19px;
}

.fo-poll__results-kicker {
  color: #777;
  font-size: 10px;
}

.fo-poll__total {
  color: #777;
  font-size: 13px;
}

.fo-poll__total b {
  color: var(--fo-black);
}

.fo-poll__your-vote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fo-line-soft);
}

.fo-poll__your-vote span {
  color: #777;
  font-size: 11px;
  font-weight: 650;
}

.fo-poll__your-vote strong {
  text-align: right;
  color: var(--fo-black);
}

.fo-poll__result {
  padding: 10px 0;
}

.fo-poll__result + .fo-poll__result {
  border-top: 1px solid var(--fo-line-soft);
}

.fo-poll__result-meta {
  align-items: flex-end;
  margin-bottom: 7px;
}

.fo-poll__result-meta > strong {
  color: var(--fo-black);
  font-size: 18px;
  letter-spacing: -.02em;
}

.fo-poll__result-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fo-text);
  font-weight: 650;
}

.fo-poll__result-name em {
  color: var(--fo-green);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.fo-poll__bar {
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: #e5e5df;
}

.fo-poll__bar > span {
  display: block;
  height: 100%;
  background: var(--fo-black);
  transition: width .62s cubic-bezier(.2,.7,.2,1);
}

.fo-poll__result.is-leader .fo-poll__bar > span {
  background: var(--fo-green);
}

.fo-poll__result small {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 11px;
}

.fo-poll__closed {
  padding: 12px 0;
  color: #666;
  font-weight: 650;
  border-top: 1px solid var(--fo-line);
}

/* ========== HAREKET ========== */

@keyframes fo-spin {
  to { transform: rotate(360deg); }
}

@keyframes fo-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fo-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.fo-poll.is-shaking {
  animation: fo-shake .2s ease;
}

/* ========== MOBİL ========== */

@media (max-width: 820px) {
  .fo-poll-center {
    width: calc(100vw - 24px);
    margin-top: 16px;
    margin-bottom: 52px;
  }

  .fo-poll-center__hero {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 20px 0 23px;
  }

  .fo-poll-center__hero h1 {
    margin-top: 10px;
    font-size: clamp(34px, 10.2vw, 42px);
    line-height: 1.02;
  }

  .fo-poll-center__hero p {
    max-width: none;
    margin-top: 11px;
    font-size: 14px;
    line-height: 1.5;
  }

  .fo-poll-center__stats {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .fo-poll-center__stat {
    padding: 0 15px;
  }

  .fo-poll-center__stat strong {
    font-size: 21px;
  }

  .fo-poll-center .fo-poll-hub {
    margin-top: 32px;
    margin-bottom: 42px;
  }

  .fo-poll-hub {
    width: calc(100vw - 24px);
  }

  .fo-poll-hub__head {
    align-items: end;
    margin-bottom: 14px;
  }

  .fo-poll-hub__head h2 {
    font-size: 28px;
  }

  .fo-poll-hub__grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .fo-poll-card.is-open {
    grid-column: auto;
  }

  .fo-poll-card {
    border-radius: 7px;
  }

  .fo-poll-card__summary {
    min-height: 145px;
    padding: 16px 15px 14px;
    gap: 13px;
  }

  .fo-poll-card__question {
    max-width: 100%;
    font-size: 20px;
    line-height: 1.12;
  }

  .fo-poll-card__panel {
    padding: 0 15px 16px;
  }

  .fo-poll {
    margin: 16px auto;
    padding: 17px;
    border-radius: 7px;
  }

  .fo-poll--compact {
    margin: 0;
    padding: 15px 0 0;
    border: 0;
  }

  .fo-poll__question {
    font-size: 23px;
  }

  .fo-poll--compact .fo-poll__question {
    font-size: 21px;
  }

  .fo-poll__option {
    min-height: 49px;
    padding: 10px 11px;
  }

  .fo-poll__submit {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .fo-poll-center,
  .fo-poll-hub {
    width: calc(100vw - 20px);
  }

  .fo-poll-center__stats {
    width: 100%;
  }

  .fo-poll-center__stat {
    flex: 1 1 0;
  }

  .fo-poll-hub__count {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fo-poll *,
  .fo-poll *::before,
  .fo-poll *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* ========== v0.4: ÖNE ÇIKAN / ÖZEL SAYFA / SIRADAKİ ========== */

.fo-featured-poll {
  margin: 34px 0 0;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--fo-line);
}

.fo-featured-poll__label {
  margin-bottom: 8px;
  color: var(--fo-green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.fo-featured-poll__link {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  color: var(--fo-black);
  text-decoration: none !important;
}

.fo-featured-poll__category {
  color: #666;
  font-size: 12px;
  font-weight: 700;
}

.fo-featured-poll__link strong {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.fo-featured-poll__cta {
  color: var(--fo-green);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.fo-poll__next {
  display: grid;
  grid-template-columns: 120px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--fo-line);
  color: var(--fo-black);
  text-decoration: none !important;
}

.fo-poll__next > span {
  color: #777;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.fo-poll__next > strong {
  font-size: 15px;
  line-height: 1.3;
}

.fo-poll__next > em {
  color: var(--fo-green);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.fo-single-poll-page {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100vw - 32px));
  margin: 34px 0 70px;
}

.fo-single-poll-page__back {
  margin-bottom: 20px;
}

.fo-single-poll-page__back a {
  color: #666;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.fo-single-poll-page__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fo-line);
  color: #666;
  font-size: 12px;
  font-weight: 700;
}

.fo-single-poll-page .fo-poll {
  max-width: none;
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 820px) {
  .fo-featured-poll__link {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .fo-featured-poll__link strong {
    font-size: 21px;
  }

  .fo-poll__next {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fo-single-poll-page {
    width: calc(100vw - 24px);
    margin-top: 20px;
  }
}
