/* ==========================================================================
   Character of the Week Styles
========================================================================== */

/* --------------------------------------------------------------------------
   Section Container & Header
--------------------------------------------------------------------------- */
.character-of-week-section {
  margin: 2rem 0;
  padding: 0 1.5rem;
}

.character-of-week-header {
  margin-bottom: 1.5rem;
}

.character-of-week-header-info {
  text-align: center;
}

.character-of-week-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--botw-blue);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.character-of-week-header h2 i {
  color: #FFD700;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

.character-of-week-header p {
  color: var(--botw-beige);
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Featured Character Card
--------------------------------------------------------------------------- */
.character-of-week-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.character-of-week-card {
  position: relative;
  width: 100%;
  max-width: 800px;
  padding: 1.5rem;
  text-align: center;
  overflow: hidden;

  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  border: 3px solid #FFD700;
  border-radius: 15px;
  box-shadow:
    0 8px 32px rgba(255, 215, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.character-of-week-card:hover {
  border-color: #FFA500;
  box-shadow:
    0 12px 40px rgba(255, 215, 0, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.character-of-week-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.character-of-week-card:hover::before {
  left: 100%;
}

/* --------------------------------------------------------------------------
   Avatar & Name
--------------------------------------------------------------------------- */
.character-of-week-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  width: 100px;
  height: 100px;
  font-size: 2.5rem;

  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  border: 4px solid #FFD700;
  border-radius: 50%;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 8px 24px rgba(255, 215, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.character-of-week-avatar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  animation: shimmer 3s infinite;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.character-of-week-avatar i {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  color: #fff;
}

.character-of-week-name {
  font-size: 2rem;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
  position: relative;
}

/* --------------------------------------------------------------------------
   Info & Job Details
--------------------------------------------------------------------------- */
.character-of-week-details {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.character-of-week-job,
.character-of-week-village {
  flex: 1 1 150px;
  min-width: 120px;
  max-width: 220px;
  text-align: center;
}

.character-of-week-village i,
.character-of-week-job i {
  color: #FFA500;
  margin-right: 0.5rem;
}



/* --------------------------------------------------------------------------
   CTA Links
--------------------------------------------------------------------------- */
.character-of-week-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.character-of-week-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;

  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  transition: all 0.3s ease;
}

.character-of-week-link:hover {
  background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.character-of-week-link i {
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Loading / Error / No Data States
--------------------------------------------------------------------------- */
.character-of-week-loading,
.character-of-week-error,
.character-of-week-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 1rem;
  text-align: center;
}

.character-of-week-loading {
  color: var(--botw-beige);
}

.character-of-week-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-top: 3px solid #FFD700;
  animation: spin 1s linear infinite;
}

.character-of-week-loading p,
.character-of-week-error p,
.character-of-week-no-data p {
  font-size: 1.1rem;
  margin: 0;
}

.character-of-week-error {
  color: #ff6b6b;
}

.character-of-week-error i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.character-of-week-retry-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  transition: all 0.3s ease;
}

.character-of-week-retry-btn:hover {
  background: linear-gradient(135deg, #ee5a52 0%, #ff6b6b 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
  transform: translateY(-2px);
}

.character-of-week-no-data {
  color: var(--botw-beige);
}

.character-of-week-no-data i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.character-of-week-no-data h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--botw-beige);
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
--------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .character-of-week-section {
    padding: 1rem;
  }

  .character-of-week-header h2 {
    font-size: 1.5rem;
  }

  .character-of-week-card {
    padding: 1.25rem;
    max-width: 100%;
  }

  .character-of-week-avatar {
    width: 80px;
    height: 80px;
  }

  .character-of-week-avatar i {
    font-size: 2rem;
  }

  .character-of-week-name {
    font-size: 1.75rem;
  }

  .character-of-week-details {
    gap: 0.75rem;
  }

  .character-of-week-village,
  .character-of-week-job {
    font-size: 1rem;
    padding: 0.6rem;
  }

  .character-of-week-featured-reason {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
}

@media (max-width: 480px) {
  .character-of-week-header h2 {
    font-size: 1.25rem;
  }

  .character-of-week-card {
    padding: 1rem;
  }

  .character-of-week-avatar {
    width: 70px;
    height: 70px;
  }

  .character-of-week-avatar i {
    font-size: 1.75rem;
  }

  .character-of-week-name {
    font-size: 1.5rem;
  }

  .character-of-week-village,
  .character-of-week-job {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .character-of-week-featured-reason {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
}
