/* ========================================
   MONTHLY THEME SHOWCASE
   Theme of the Month display component
   ======================================== */

.monthly-theme-showcase {
  background: linear-gradient(135deg, rgba(22, 241, 211, 0.08) 0%, rgba(8, 20, 24, 0.95) 100%);
  border: 2px solid rgba(22, 241, 211, 0.3);
  border-radius: 20px;
  padding: 28px 32px;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(22, 241, 211, 0.15),
    inset 0 0 40px rgba(22, 241, 211, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.monthly-theme-showcase::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(22, 241, 211, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -20px); }
}

.monthly-theme-showcase:hover {
  border-color: rgba(22, 241, 211, 0.6);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(22, 241, 211, 0.3),
    inset 0 0 60px rgba(22, 241, 211, 0.12);
  transform: translateY(-4px);
}

/* ========================================
   HEADER SECTION
   ======================================== */

.monthly-theme-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.monthly-theme-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
  animation: trophyPulse 3s ease-in-out infinite;
}

@keyframes trophyPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9)); }
}

.monthly-theme-title-group {
  flex: 1;
}

.monthly-theme-label {
  font-size: 1.5rem;
  font-weight: 900;
  color: #16f1d3;
  margin: 0;
  line-height: 1.2;
  text-shadow: 
    0 0 20px rgba(22, 241, 211, 0.8),
    0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.monthly-theme-month {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 4px 0 0 0;
  font-weight: 600;
  text-transform: capitalize;
}

/* ========================================
   CONTENT SECTION
   ======================================== */

.monthly-theme-content-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.monthly-theme-content {
  flex: 1;
  min-width: 0;
}

.monthly-theme-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  line-height: 1.3;
}

.monthly-theme-category {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(22, 241, 211, 0.2) 0%, rgba(22, 241, 211, 0.1) 100%);
  border: 1px solid rgba(22, 241, 211, 0.4);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #16f1d3;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 0 15px rgba(22, 241, 211, 0.3);
}

.monthly-theme-separator {
  color: rgba(22, 241, 211, 0.5);
  font-weight: 300;
}

.monthly-theme-text {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.monthly-theme-chooser {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95em;
  margin-left: 0.5rem;
}

.monthly-theme-chooser .chooser-name,
.monthly-theme-chooser .clickable-username {
  color: #16f1d3 !important;
  font-weight: 600;
  cursor: pointer !important;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.monthly-theme-chooser .chooser-name::after,
.monthly-theme-chooser .clickable-username::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #16f1d3, #0ea5e9);
  box-shadow: 0 0 10px rgba(22, 241, 211, 0.8);
  transition: width 0.3s ease;
}

.monthly-theme-chooser .chooser-name:hover,
.monthly-theme-chooser .clickable-username:hover {
  color: #fff !important;
  text-shadow: 
      0 0 15px rgba(22, 241, 211, 0.8),
      0 0 30px rgba(22, 241, 211, 0.4) !important;
}

.monthly-theme-chooser .chooser-name:hover::after,
.monthly-theme-chooser .clickable-username:hover::after {
  width: 100%;
}

/* ========================================
   STATS SECTION
   ======================================== */

.monthly-theme-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.monthly-theme-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(8, 20, 24, 0.6);
  border: 1px solid rgba(22, 241, 211, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stat-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 0, 100, 0.6));
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: #16f1d3;
  text-shadow: 0 0 15px rgba(22, 241, 211, 0.8);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* ========================================
   USERS SECTION
   ======================================== */

.monthly-theme-users {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(8, 20, 24, 0.6);
  border: 1px solid rgba(22, 241, 211, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.users-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  white-space: nowrap;
}

.users-avatars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #16f1d3;
  overflow: hidden;
  background: rgba(22, 241, 211, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(22, 241, 211, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.user-avatar:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(22, 241, 211, 0.8);
  border-color: #1df7ff;
  z-index: 10;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16f1d3 0%, #0ea89a 100%);
  color: #081418;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
}

.user-avatar.more-users {
  background: rgba(22, 241, 211, 0.2);
  color: #16f1d3;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px dashed #16f1d3;
}

/* ========================================
   ACTIONS SECTION (Archive Button)
   ======================================== */

.monthly-theme-actions {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.monthly-theme-archive-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(22, 241, 211, 0.15) 0%, rgba(22, 241, 211, 0.08) 100%);
  border: 2px solid #16f1d3;
  border-radius: 10px;
  color: #16f1d3;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 
    0 0 20px rgba(22, 241, 211, 0.3),
    inset 0 0 20px rgba(22, 241, 211, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.monthly-theme-archive-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #16f1d3, #0dcfb8, #16f1d3);
  z-index: -1;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.monthly-theme-archive-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 0 30px rgba(22, 241, 211, 0.6),
    0 8px 30px rgba(22, 241, 211, 0.4),
    inset 0 0 30px rgba(22, 241, 211, 0.15);
  color: #fff;
  border-color: #1df7ff;
}

.monthly-theme-archive-btn:hover::before {
  opacity: 1;
}

.monthly-theme-archive-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .monthly-theme-showcase {
    padding: 20px 20px;
    border-radius: 16px;
    margin-top: 20px;
  }

  .monthly-theme-content-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .monthly-theme-header {
    gap: 12px;
    margin-bottom: 16px;
  }

  .monthly-theme-icon {
    font-size: 2.5rem;
  }

  .monthly-theme-label {
    font-size: 1.3rem;
  }

  .monthly-theme-month {
    font-size: 0.8rem;
  }

  .monthly-theme-name {
    font-size: 1.4rem;
    gap: 8px;
  }

  .monthly-theme-category {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .monthly-theme-stats {
    gap: 16px;
  }

  .monthly-theme-stat,
  .monthly-theme-users {
    padding: 10px 16px;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .users-label {
    font-size: 0.8rem;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
  }

  .avatar-placeholder {
    font-size: 0.85rem;
  }

  .user-avatar.more-users {
    font-size: 0.7rem;
  }

  .monthly-theme-actions {
    width: 100%;
    justify-content: center;
  }

  .monthly-theme-archive-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .monthly-theme-showcase {
    padding: 16px;
  }

  .monthly-theme-icon {
    font-size: 2rem;
  }

  .monthly-theme-label {
    font-size: 1.1rem;
  }

  .monthly-theme-name {
    font-size: 1.2rem;
    /* Keep GEN badge and text on same line */
    flex-wrap: nowrap;
    align-items: center;
  }
  
  .monthly-theme-text {
    /* Allow text to break if too long, but stay on same line as badge */
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .monthly-theme-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .monthly-theme-stat {
    justify-content: center;
  }

  .monthly-theme-users {
    flex-direction: column;
    align-items: flex-start;
  }

  .users-avatars {
    width: 100%;
    justify-content: center;
  }

  .monthly-theme-archive-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }
}

