/* ===== Profile Page - Hunter Status Style ===== */
.profile-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Main Profile Card */
.profile-card.main-card {
  background: var(--dark-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.profile-card.main-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--warning)
  );
}

/* Avatar Section */
.profile-avatar-section {
  flex-shrink: 0;
}

.avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
}

#profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  color: white;
  font-size: 28px;
}

.avatar-wrapper:hover .avatar-overlay {
  opacity: 1;
}

/* Profile Info */
.profile-info {
  flex: 1;
}

#profile-username {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#profile-email {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.profile-rank-display {
  margin-bottom: 24px;
}

/* Stats Row */
.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.profile-stat-box {
  text-align: center;
  padding: 16px;
  background: var(--dark);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.profile-stat-box:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  margin: 0 auto 10px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.stat-value {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Profile XP Section */
.profile-xp-section {
  width: 100%;
}

.xp-bar-large {
  width: 100%;
  height: 12px;
  background: var(--dark);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.xp-fill-large {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.xp-shine-large {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: xpShine 2.5s ease-in-out infinite;
}

.xp-text-large {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
}

/* Profile Sections */
.profile-section {
  background: var(--dark-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.section-title h3 {
  font-size: 18px;
  font-weight: 700;
}

.btn-add {
  padding: 10px 20px;
  font-size: 13px;
}

/* Profile Items List */
.profile-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--dark);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.profile-item:hover {
  border-color: var(--border-strong);
  transform: translateX(-4px);
  box-shadow: var(--shadow);
}

.profile-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.profile-item-icon.skill {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

.profile-item-icon.quest {
  background: rgba(16, 185, 129, 0.15);
  color: var(--secondary);
}

.profile-item-content {
  flex: 1;
}

.profile-item-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-item-content h4 .completed-badge {
  color: var(--secondary);
  font-size: 12px;
}

.profile-item-content p {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-item-content p span {
  color: var(--warning);
  font-weight: 600;
}

.profile-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.profile-item-actions button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  background: none;
}

.profile-item-actions .btn-edit {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.profile-item-actions .btn-edit:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 12px var(--primary-glow);
}

.profile-item-actions .btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.profile-item-actions .btn-delete:hover {
  background: var(--danger);
  color: white;
  box-shadow: 0 0 12px var(--danger-glow);
}

/* Activity Log */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--dark);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.activity-item:hover {
  border-color: var(--border-strong);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.activity-icon.skill {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

.activity-icon.quest {
  background: rgba(16, 185, 129, 0.15);
  color: var(--secondary);
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.activity-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.activity-time {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-card.main-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .avatar-wrapper {
    width: 120px;
    height: 120px;
  }

  #profile-avatar {
    width: 120px;
    height: 120px;
  }

  .profile-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .profile-stat-box {
    padding: 12px 8px;
  }

  .stat-value {
    font-size: 20px;
  }

  .section-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .profile-item {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .profile-stats-row {
    grid-template-columns: 1fr;
  }
}
