/* Voting Page Styles */
.voting-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
    url("../images/voting-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 8rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.voting-hero h1 {
  font-size: 3rem;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(185, 128, 229, 0.6);
  margin-bottom: 1rem;
}

/* Server Status Widget */
.server-status-widget {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 550px;
  margin: 1.5rem auto 0;
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(185, 128, 229, 0.3);
}

.status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #888;
  margin-right: 0.5rem;
}

.status-indicator.online {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #4CAF50;
  box-shadow: 0 0 8px #4CAF50;
  margin-right: 6px;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.status-online {
  background-color: #4caf50;
  box-shadow: 0 0 8px #4caf50;
}

.status-offline {
  background-color: #f44336;
  box-shadow: 0 0 8px #f44336;
}

.status-api-error {
  background-color: #ffcc00;
  box-shadow: 0 0 8px #ffcc00;
}

.player-count-display {
  font-size: 1.1rem;
  color: #fff;
}

.player-count-display i {
  color: var(--primary-color);
  margin-right: 0.3rem;
}

.player-count-bar-container {
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-top: 0.8rem;
  overflow: hidden;
}

.player-count-bar {
  height: 100%;
  width: 0; /* Initial width, will be updated by JavaScript */
  background: linear-gradient(to right, #4caf50, var(--primary-color));
  border-radius: 3px;
  transition: width 1s ease-in-out;
}

/* New server details styles */
.server-details {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.server-detail {
  font-size: 0.95rem;
  color: #fff;
}

.server-detail i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  width: 16px;
  text-align: center;
}

#server-motd {
  font-style: italic;
  color: #ddd;
}

/* Online players list */
.online-players-container {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(185, 128, 229, 0.3);
  padding-top: 1rem;
}

.online-players-header {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  font-weight: bold;
}

.online-players-header i {
  margin-right: 0.5rem;
}

.online-players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 100px;
  overflow-y: auto;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.player-item {
  background-color: rgba(185, 128, 229, 0.2);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  color: #fff;
}

.empty-list {
  color: #999;
  font-style: italic;
  padding: 0.3rem;
}

.last-updated {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  text-align: center;
}

.voting-info {
  padding: 8rem 0;
  background-color: var(--bg-medium);  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/websitebackground.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-radius: 10px;
  margin: 0;
  min-height: calc(100vh - 200px); /* Account for header and footer */
  display: flex;
  align-items: center;
  justify-content: center;
}

.rewards-list {
  list-style-type: none;
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.rewards-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.rewards-list li i {
  color: var(--primary-color);
  margin-right: 0.8rem;
}

.voting-sites {
  padding: 3rem 0;
}

.voting-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.voting-site {
  background-color: var(--bg-medium);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(185, 128, 229, 0.1);
}

.voting-site:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(185, 128, 229, 0.2);
}

.voting-site h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.site-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 3rem;
}

.voting-btn {
  display: inline-block;
  width: 100%;
  padding: 0.8rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.voting-btn:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(185, 128, 229, 0.5);
}

.voting-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
  background-color: rgba(185, 128, 229, 0.1);
  padding: 1rem;
  border-radius: 8px;
}

.voting-leaderboard {
  padding: 3rem 0;
  background-color: var(--bg-medium);
  border-radius: 10px;
  margin: 2rem 0;
}

.leaderboard {
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1fr 1fr;
  padding: 1rem;
  background-color: var(--tertiary-color);
  font-weight: bold;
  text-align: center;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1fr 1fr;
  padding: 1rem;
  border-bottom: 1px solid rgba(185, 128, 229, 0.2);
  text-align: center;
  transition: background-color 0.3s ease;
}

.leaderboard-item:hover {
  background-color: rgba(185, 128, 229, 0.1);
}

.top-voter {
  background-color: rgba(185, 128, 229, 0.2);
}

.rank-col {
  font-weight: bold;
}

.top-voter .rank-col,
.top-voter .player-col {
  color: var(--primary-color);
}

.top-voter .fas {
  color: gold;
  margin-right: 0.5rem;
}

.voting-faq {
  padding: 3rem 0;
}

.faq-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-item {
  background-color: var(--bg-medium);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(185, 128, 229, 0.1);
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

/* Under Construction Section */
.under-construction {
  text-align: center;
  padding: 5rem 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  border: 2px dashed var(--primary-color);
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 0 30px rgba(185, 128, 229, 0.2);
  position: relative;
  overflow: hidden;
}

.under-construction:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  animation: slide 3s infinite ease-in-out;
}

@keyframes slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.construction-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.construction-icon i {
  text-shadow: 0 0 20px rgba(185, 128, 229, 0.5);
  animation: pulse 2s infinite ease-in-out;
}

.construction-icon i:nth-child(2) {
  animation-delay: 1s;
}

.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: rotate(-2deg);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  animation: badge-pulse 3s infinite ease-in-out;
  position: relative;
}

@keyframes badge-pulse {
  0% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(-2deg) scale(1.05); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); }
  100% { transform: rotate(-2deg) scale(1); }
}

.construction-message {
  color: var(--text-secondary);
  font-size: 1.5rem;
  margin-top: 2rem;
  line-height: 1.6;
}

.construction-message p {
  margin-bottom: 1.5rem;
}

.return-home {
  margin-top: 3rem;
}

.return-home .mc-button {
  font-family: 'Minecraft', sans-serif;
  font-size: 1.2rem;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.return-home .primary-button {
  background-color: #5e3b84;
  color: white;
  border: 2px solid #8547b5;
}

.return-home .primary-button:hover {
  background-color: #8547b5;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Plugin Page Updated Styles */
.plugin-card[data-category="social"] .plugin-badge.social {
  background-color: #42a5f5;
}

/* Player Tag */
.player-tag {
  display: inline-block;
  background-color: rgba(94, 59, 132, 0.5);
  border: 1px solid var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-tag:hover {
  background-color: rgba(94, 59, 132, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .leaderboard-header,
  .leaderboard-item {
    grid-template-columns: 0.5fr 1.5fr 1fr 1fr;
    font-size: 0.9rem;
  }

  .faq-items {
    grid-template-columns: 1fr;
  }
}
