/*--------------------------------------------------------------
# Mission Mischief Components
--------------------------------------------------------------*/

/* Mission Cards */
.mission-card {
  background: rgba(21, 21, 21, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.mission-card:hover {
  border-color: #04aa6d;
  transform: translateY(-2px);
}

.mission-card.completed {
  border-color: #04aa6d;
  background: rgba(4, 170, 109, 0.1);
}

.mission-card.locked {
  opacity: 0.5;
  pointer-events: none;
}

.mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.mission-number {
  background: #04aa6d;
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.mission-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: bold;
}

.mission-status.completed {
  background: #04aa6d;
  color: #000;
}

.mission-status.locked {
  background: #666;
  color: #fff;
}

.mission-type {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: bold;
}

.mission-type.prank {
  background: #ff6b6b;
  color: #fff;
}

.mission-type.goodwill {
  background: #04aa6d;
  color: #000;
}

.mission-badge-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px;
  background: rgba(4, 170, 109, 0.1);
  border-radius: 4px;
}

.badge-name {
  font-size: 12px;
  color: #04aa6d;
  font-weight: bold;
}

.badge-state {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

.badge-state.locked {
  background: #666;
  color: #fff;
}

.badge-state.silhouette {
  background: #333;
  color: #ccc;
}

.badge-state.vibrant {
  background: #04aa6d;
  color: #000;
}

.badge-state.gold {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.prank-mission {
  border-left: 4px solid #ff6b6b;
}

.goodwill-mission {
  border-left: 4px solid #04aa6d;
}

.mission-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
}

.mission-location {
  color: #04aa6d;
  font-size: 14px;
  margin-bottom: 10px;
}

.mission-description {
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 15px;
}

.mission-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mission-btn {
  background: transparent;
  border: 2px solid #04aa6d;
  color: #04aa6d;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
}

.mission-btn:hover {
  background: #04aa6d;
  color: #000;
}

.mission-btn.completed {
  background: #04aa6d;
  color: #000;
}

/* Buy-in Cards */
.buyin-card {
  background: rgba(4, 170, 109, 0.1);
  border: 2px solid #04aa6d;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.buyin-title {
  font-size: 20px;
  font-weight: bold;
  color: #04aa6d;
  margin-bottom: 10px;
}

.buyin-description {
  color: #ccc;
  margin-bottom: 15px;
}

.buyin-proof {
  font-size: 12px;
  color: #999;
  margin-bottom: 15px;
}

.buyin-card.completed {
  background: rgba(4, 170, 109, 0.2);
  border-color: #04aa6d;
}

.buyin-card.gold-prompt {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
  border: 2px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  animation: goldCardPulse 2s ease-in-out infinite;
}

.buyin-card.gold-prompt .buyin-title {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.completed-badge {
  background: #04aa6d;
  color: #000;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline-block;
}

.crown-message {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
  border: 3px solid #ffd700;
  border-radius: 15px;
  padding: 30px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  animation: crownMessageGlow 3s ease-in-out infinite;
}

.crown-message h2 {
  color: #ffd700;
  font-size: 28px;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.crown-message p {
  color: #fff;
  font-size: 16px;
}

@keyframes goldCardPulse {
  0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
  100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
}

@keyframes crownMessageGlow {
  0% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
  50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.8); }
  100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
}

/* User Stats */
.user-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(21, 21, 21, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  color: #04aa6d;
  display: block;
}

.stat-label {
  font-size: 12px;
  color: #ccc;
  text-transform: uppercase;
}

/* Badges */
.badges-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.badge {
  background: #04aa6d;
  color: #000;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

/* Share Modal */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.share-content {
  background: #151515;
  border: 1px solid #04aa6d;
  border-radius: 8px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.share-content h3 {
  color: #04aa6d;
  margin-bottom: 15px;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.close-btn {
  background: transparent;
  border: 1px solid #666;
  color: #666;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
}

.close-btn:hover {
  border-color: #04aa6d;
  color: #04aa6d;
}

/* Responsive */
@media (max-width: 768px) {
  .mission-actions {
    flex-direction: column;
  }
  
  .mission-btn {
    width: 100%;
  }
  
  .user-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}