/* poll.css - Anket ve sonuç modalı temel stilleri */
.poll-modal, .poll-result-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', sans-serif;
}

.poll-modal-content, .poll-result-modal-content {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.poll-modal h2, .poll-result-modal h2 {
  text-align: center;
  margin-bottom: 20px;
  color: gold;
  font-size: 1.5rem;
  font-weight: bold;
}

.poll-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #292929;
  border: 2px solid transparent;
  border-radius: 8px;
  margin: 10px 0;
  padding: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.poll-option:hover {
  border-color: gold;
  background-color: #333;
}

.poll-option img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 10px;
}

.poll-option strong {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.poll-results {
  margin-top: 20px;
}

.poll-result-item {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.poll-result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
}

.poll-result-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.poll-result-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #555;
  transition: all 0.3s ease;
}

.poll-result-image:hover {
  border-color: #ffd700;
  transform: scale(1.05);
}

.poll-result-title {
  flex: 1;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.poll-result-stats {
  text-align: right;
  color: #ffd700;
  font-weight: bold;
}

.poll-result-votes {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.poll-result-percentage {
  font-size: 1.3rem;
}

.poll-bar {
  background-color: #444;
  border-radius: 25px;
  overflow: hidden;
  margin: 10px 0;
  height: 30px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.poll-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
  text-align: center;
  color: #000;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.8s ease;
  position: relative;
  border-radius: 25px;
}

.poll-bar-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.poll-total-votes {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background: #333;
  border-radius: 8px;
  border: 1px solid #555;
}

.poll-total-votes .total-label {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.poll-total-votes .total-count {
  color: #ffd700;
  font-size: 1.2rem;
  font-weight: bold;
}

.poll-result-item.winner {
  position: relative;
  overflow: hidden;
}

.poll-result-item.winner::before {
  content: '🏆';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.poll-result-item.winner .poll-bar-inner {
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

.poll-submit-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s;
}

.poll-submit-btn:hover {
  background: #218838;
}

.poll-cancel-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s;
}

.poll-cancel-btn:hover {
  background: #5a6268;
}

.poll-close-x-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.poll-close-x-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ff6b6b;
}

.poll-close-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 15px;
  width: 100%;
  transition: background 0.3s;
}

.poll-close-btn:hover {
  background: #218838;
}

.poll-voted-info {
  text-align: center;
  padding: 20px;
  background: #2a2a2a;
  border-radius: 8px;
  margin: 10px 0;
}

.poll-voted-info .checkmark {
  color: #28a745;
  font-size: 2rem;
  margin-bottom: 10px;
}

.poll-voted-info p {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
} 