/* Voting Form Styles */
.voting-summary {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.vote-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #dee2e6;
}

.vote-item:last-child {
  border-bottom: none;
}

.vote-item strong {
  color: #28a745;
  font-size: 1.1rem;
}

/* Voting System na stronie konkursu */
.voting-control {
  border-top: 2px solid #e9ecef;
  padding-top: 15px;
  margin-top: 15px;
}

.voting-control h6 {
  color: #495057;
  margin-bottom: 10px;
  font-weight: 600;
}

.voting-control .btn-group {
  width: 100%;
}

.voting-control .vote-btn {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.voting-control .vote-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.voting-control .vote-btn:disabled {
    opacity: 1;
  cursor: not-allowed;
}

.voting-control .vote-btn.btn-success {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}

.vote-status .alert {
  font-size: 0.8rem;
  padding: 8px 12px;
}

.voting-progress {
  position: sticky;
  top: 20px;
  z-index: 100;
}

.voting-progress .progress-content {
  background: white;
  border-radius: 5px;
  padding: 15px;
  margin: 10px 0;
}

/* Alert z informacją o głosowaniu */
.voting-info-alert {
  margin-bottom: 20px;
  border-left: 4px solid #17a2b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.voting-info-alert strong {
  color: #0c5460;
}

@media (max-width: 768px) {
  .voting-info-alert {
    font-size: 0.9rem;
    padding: 12px 15px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .voting-control .btn-group {
    flex-direction: column;
  }
  
  .voting-control .vote-btn {
    margin-bottom: 5px;
    border-radius: 4px !important;
  }
  
  .vote-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Animacje */
@keyframes voteSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.vote-btn.btn-success {
  animation: voteSuccess 0.5s ease-in-out;
}

/* Wskaźniki stanu głosowania */
.konkurs-vote .card {
  position: relative;
  height: 100%;
}

.konkurs-vote .col{
  padding-bottom: 20px;
}

.konkurs-vote .card-body{
    display: flex;
    flex-direction: column;
}

.konkurs-vote .card-body .voting-control {
  margin-top: auto !important;
}

.card.voted::before {
  content: "✅";
  color: #28a745;
}

/* Animacja podświetlenia podsumowania głosów */
@keyframes highlightSummary {
  0% { 
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    border-color: #e9ecef;
  }
  50% { 
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0.1);
    border-color: #28a745;
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    border-color: #28a745;
  }
}

.voting-progress.highlight-summary {
  animation: highlightSummary 2s ease-in-out;
  border-color: #28a745 !important;
  background-color: #f8fff9 !important;
}

/* Płynne przewijanie */
html {
  scroll-behavior: smooth;
}

#block-kosmos-views-block-glosy-block-1,
#block-kosmos-views-block-glosy-block-2{
  margin-top: 2rem;
}