/* Anketler — modül sayfası */

.polls-page {
  padding-bottom: 2.5rem;
  background: #f3f1ec;
}

.polls-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.polls-tabs { background: var(--gold-bar); }

.polls-tabs-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.polls-tabs-scroll::-webkit-scrollbar { display: none; }

.polls-tabs .tab-btn {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 0.85rem 1.1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.polls-tabs .tab-btn.active {
  color: #fff;
  background: rgba(0, 0, 0, 0.14);
  border-bottom-color: #fff;
}

.polls-toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.polls-toolbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.polls-toolbar-meta { flex: 1 1 160px; }
.polls-result { margin: 0; font-size: 1rem; font-weight: 700; }
.polls-hint { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--text-muted); }

.polls-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 220px;
  max-width: 420px;
  padding: 0.55rem 0.85rem;
  background: #f8f7f4;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.polls-search input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  width: 100%;
  outline: none;
}

.polls-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 2rem;
}

.polls-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.poll-card {
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

.poll-card--closed { opacity: 0.92; }

.poll-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
}

.poll-card-status {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.poll-card--closed .poll-card-status { color: var(--text-muted); }

.poll-card-meta { color: var(--text-muted); }

.poll-card-title {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.poll-card-desc {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.poll-card-body { margin-top: 0.35rem; }

.poll-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.poll-option:hover { border-color: var(--gold); background: #faf8f4; }

.poll-option input { margin-top: 0.2rem; flex-shrink: 0; }

.poll-option span {
  font-size: 0.92rem;
  line-height: 1.45;
}

.poll-form .poll-submit {
  margin-top: 0.65rem;
  align-self: flex-start;
}

.poll-voted-msg,
.poll-closed-msg {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #f3f1ec;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.poll-card-votes {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--text-light);
}

.poll-results-head {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.poll-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.poll-results-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.poll-results-bar {
  height: 8px;
  background: #ece8e0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.poll-results-bar span {
  display: block;
  height: 100%;
  background: var(--gold-dark);
  border-radius: 999px;
  transition: width 0.35s ease;
}

@media (max-width: 768px) {
  .polls-sticky { position: static; }
  .polls-search { max-width: none; }
}
