/* Sondaj Miniștri - Stiluri */

.sondaj-wrapper {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 16px;
}

.sondaj-header {
  text-align: center;
  margin-bottom: 30px;
}

.sondaj-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.sondaj-header p {
  color: #7f8c8d;
  font-size: 1rem;
}

.sondaj-loading {
  text-align: center;
  padding: 40px;
  color: #7f8c8d;
}

/* Minister Card */
.minister-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.minister-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.minister-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.minister-photo {
  width: 85px;
  height: 105px;
  border-radius: 10px;
  object-fit: cover;
  border: 3px solid #f8f9fa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.minister-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 4px 0;
}

.minister-info .period {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.party-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.party-psd {
  background: #c0392b;
  color: white;
}

.party-pnl {
  background: #f39c12;
  color: #1a1a1a;
}

.total-votes {
  color: #7f8c8d;
  font-size: 0.8rem;
  margin-top: 8px;
}

.total-votes span {
  color: #b8860b;
  font-weight: 700;
}

/* Vote Buttons */
.vote-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .vote-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.vote-btn:hover:not(:disabled) {
  transform: scale(1.03);
}

.vote-btn.nesatisfacator:hover:not(:disabled),
.vote-btn.nesatisfacator.voted {
  background: #c0392b;
  border-color: #c0392b;
  color: white;
}

.vote-btn.bun:hover:not(:disabled),
.vote-btn.bun.voted {
  background: #f39c12;
  border-color: #f39c12;
  color: #1a1a1a;
}

.vote-btn.foarte-bun:hover:not(:disabled),
.vote-btn.foarte-bun.voted {
  background: #2980b9;
  border-color: #2980b9;
  color: white;
}

.vote-btn.excelent:hover:not(:disabled),
.vote-btn.excelent.voted {
  background: #27ae60;
  border-color: #27ae60;
  color: white;
}

.vote-btn:disabled:not(.voted) {
  opacity: 0.45;
  cursor: not-allowed;
}

.vote-btn .emoji {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.vote-btn .label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #7f8c8d;
  margin-bottom: 2px;
  transition: color 0.25s ease;
}

.vote-btn:hover:not(:disabled) .label,
.vote-btn.voted .label {
  color: inherit;
}

.vote-btn.bun:hover:not(:disabled) .label,
.vote-btn.bun.voted .label {
  color: #1a1a1a;
}

.vote-btn .count {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  transition: color 0.25s ease;
}

.vote-btn:hover:not(:disabled) .count,
.vote-btn.voted .count {
  color: inherit;
}

.vote-btn.bun:hover:not(:disabled) .count,
.vote-btn.bun.voted .count {
  color: #1a1a1a;
}

.vote-btn .percent {
  font-size: 0.7rem;
  color: #7f8c8d;
  transition: color 0.25s ease;
}

.vote-btn:hover:not(:disabled) .percent,
.vote-btn.voted .percent {
  color: rgba(255,255,255,0.85);
}

.vote-btn.bun:hover:not(:disabled) .percent,
.vote-btn.bun.voted .percent {
  color: rgba(0,0,0,0.6);
}

/* Progress Bar */
.progress-container {
  margin-bottom: 10px;
}

.progress-bar {
  height: 10px;
  background: #f8f9fa;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  border: 1px solid #e0e0e0;
}

.progress-segment {
  height: 100%;
  transition: width 0.5s ease;
}

.progress-segment.nesatisfacator { background: #c0392b; }
.progress-segment.bun { background: #f39c12; }
.progress-segment.foarte-bun { background: #2980b9; }
.progress-segment.excelent { background: #27ae60; }

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 0.72rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7f8c8d;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-dot.nesatisfacator { background: #c0392b; }
.legend-dot.bun { background: #f39c12; }
.legend-dot.foarte-bun { background: #2980b9; }
.legend-dot.excelent { background: #27ae60; }

/* Footer */
.sondaj-footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.sondaj-footer .brand {
  color: #b8860b;
  font-weight: 700;
  font-size: 1rem;
}

.sondaj-footer p {
  color: #7f8c8d;
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.minister-card {
  animation: fadeInUp 0.5s ease forwards;
}

.minister-card:nth-child(2) { animation-delay: 0.1s; }
.minister-card:nth-child(3) { animation-delay: 0.2s; }
