/* ========================================
   织网 (WebWeave) - 签到功能样式
   ======================================== */

/* === 签到卡片 === */
.checkin-card {
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 46, 0.8));
  border: 2px solid var(--sacred-gold);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--holy-glow-soft);
  transition: all var(--duration-normal);
}

.checkin-card:hover {
  box-shadow: var(--holy-glow-medium);
  transform: translateY(-2px);
}

.checkin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184, 134, 11, 0.3);
}

.checkin-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

/* === 签到统计 === */
.checkin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.stat-item {
  text-align: center;
  padding: 10px;
  background: rgba(184, 134, 11, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(184, 134, 11, 0.2);
  transition: all var(--duration-normal);
}

.stat-item:hover {
  background: rgba(184, 134, 11, 0.2);
  border-color: var(--sacred-gold);
  transform: scale(1.05);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--divine-gold);
  font-family: var(--font-display);
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--holy-white);
  opacity: 0.8;
}

/* === 签到按钮 === */
.checkin-btn {
  position: relative;
  overflow: hidden;
}

.checkin-btn:not(.disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--holy-glow-medium);
}

.checkin-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(184, 134, 11, 0.3);
}

.checkin-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* === 签到动画 === */
@keyframes checkinSuccess {
  0% {
    transform: scale(1);
    box-shadow: var(--holy-glow-soft);
  }
  50% {
    transform: scale(1.1);
    box-shadow: var(--holy-glow-medium);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--holy-glow-soft);
  }
}

.checkin-btn.success {
  animation: checkinSuccess 0.5s ease-in-out;
}

/* === 签到日历（可选） === */
.checkin-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 15px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(184, 134, 11, 0.1);
  border: 1px solid rgba(184, 134, 11, 0.2);
  font-size: 0.85rem;
  color: var(--holy-white);
  transition: all var(--duration-normal);
}

.calendar-day.checked {
  background: linear-gradient(145deg, var(--success-green), rgba(46, 204, 113, 0.7));
  border-color: var(--success-green);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.calendar-day.today {
  border: 2px solid var(--divine-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .checkin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .checkin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat-value {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}
