/* =========================
   마이페이지 전용 스타일 추가
========================= */

/* 프로필 헤더 개선 */
.profile-avatar-large {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  transition: all 0.3s ease;
}

.profile-avatar-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, #3a86ff 0%, #2667cc 100%);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.profile-avatar-large:hover .avatar-edit-btn {
  opacity: 1;
  transform: translateY(0);
}

.avatar-edit-btn:hover {
  background: linear-gradient(135deg, #2667cc 0%, #1a4d99 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(58, 134, 255, 0.4);
}

.edit-icon {
  font-size: 14px;
}

.edit-text {
  display: none;
}

@media (min-width: 480px) {
  .edit-text {
    display: inline;
  }
}

/* 섹션 아이콘 */
.section-icon {
  font-size: 18px;
  margin-right: 8px;
}

.label-icon {
  font-size: 16px;
  margin-right: 6px;
  opacity: 0.7;
}

/* 수직 정렬 아이템 */
.info-item.vertical {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.info-item.vertical .info-label {
  margin-bottom: 4px;
}

.bio-text {
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 100px;
  overflow-y: auto;
  padding: 8px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* 상태 뱃지 개선 */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

.status-pending {
  background: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ff9800;
}

.status-inactive {
  background: #f5f5f5;
  color: #757575;
  border: 1px solid #9e9e9e;
}

/* 액션 버튼 개선 */
.action-buttons {
  display: flex;
  gap: 12px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.action-buttons.compact {
  margin-top: 20px;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
}

.btn.large {
  padding: 14px 24px;
  font-size: 16px;
}

.btn.primary {
  background: linear-gradient(135deg, #3a86ff 0%, #2667cc 100%);
  color: white;
  border-color: #3a86ff;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #2667cc 0%, #1a4d99 100%);
  border-color: #2667cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 134, 255, 0.25);
}

.btn.secondary {
  background: white;
  color: #3a86ff;
  border-color: #3a86ff;
}

.btn.secondary:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 134, 255, 0.15);
}

.btn.outline {
  background: transparent;
  color: #64748b;
  border-color: #cbd5e1;
}

.btn.outline:hover {
  background: #f8fafc;
  color: #3a86ff;
  border-color: #3a86ff;
}

.btn-icon {
  font-size: 18px;
}

/* 통계 카드 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #3a86ff;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #3a86ff;
  margin: 0 0 8px 0;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* 빠른 링크 */
.quick-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.quick-links-title {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-links-title::before {
  content: "🔗";
  font-size: 16px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #334155;
  transition: all 0.3s ease;
}

.quick-link:hover {
  background: #f8fafc;
  border-color: #3a86ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.quick-link-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.quick-link-text {
  font-weight: 500;
  font-size: 14px;
}

/* 시간 표시 */
.time-ago {
  font-size: 14px;
  color: #64748b;
  font-style: italic;
}

/* 링크 스타일 */
.info-value.link {
  color: #3a86ff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.info-value.link:hover {
  color: #2667cc;
  text-decoration: underline;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .profile-info {
    text-align: center;
  }
  
  .profile-badges {
    justify-content: center;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn {
    min-width: 100%;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mypage-card {
    padding: 24px 20px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  
  .profile-avatar-large {
    width: 100px;
    height: 100px;
  }
  
  .profile-name {
    font-size: 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 18px;
  }
}

/* 다크 모드 지원 (선택적) */
@media (prefers-color-scheme: dark) {
  .mypage-card {
    background: #1e293b;
    border-color: #334155;
  }
  
  .profile-avatar-img {
    border-color: #1e293b;
  }
  
  .stat-card,
  .quick-link {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
  }
  
  .bio-text {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
  }
  
  .info-value.link {
    color: #60a5fa;
  }
  
  .info-value.link:hover {
    color: #93c5fd;
  }
}