/* ============================================
   내정보 슬라이드 패널 스타일
   ============================================ */

/* 내정보 패널 컨테이너 */
.profile-panel-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  height: 100%;
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-panel-container.active {
  transform: translateX(0);
}

/* 패널 콘텐츠 */
.profile-panel-content {
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 패널 헤더 */
.profile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-bottom: 3px solid #3498db;
  flex-shrink: 0;
}

.profile-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.profile-panel-title i {
  font-size: 24px;
  color: #3498db;
}

.profile-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.profile-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* 패널 바디 */
.profile-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* 섹션 공통 스타일 */
.profile-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11.52px 14.4px;
  background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
  border-bottom: 2px solid #3498db;
}

.profile-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
}

.profile-section-title i {
  font-size: 18px;
  color: #3498db;
}

.profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-edit-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.profile-edit-btn i {
  font-size: 14px;
}

.profile-section-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* 이미지 스타일 */
.profile-section-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* 첫 번째 섹션 (기본정보 관리) - 비율 증가 */
.profile-section-first {
  flex: 1.15;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.profile-section-first .profile-section-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.profile-section-first .profile-section-image {
  width: 85%;
  height: auto;
  max-width: 85%;
  object-fit: contain;
  object-position: top;
  margin: 0 auto;
  display: block;
}

/* 마지막 섹션 (비밀번호 변경) - 비율 감소 15% */
.profile-section:last-child {
  margin-bottom: 0 !important;
  flex: 0.85;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.profile-section:last-child .profile-section-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 8px !important;
}

.profile-section:last-child .profile-section-image {
  width: 85%;
  height: auto;
  object-fit: contain;
  object-position: top;
  margin: 0 auto;
  display: block;
}

/* 마지막 섹션 클래스 */
.profile-section-last {
  margin-bottom: 0 !important;
}

.profile-section-last .profile-section-body {
  padding-bottom: 8px !important;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .profile-panel-container {
    width: 100%;
  }
  
  .profile-panel-header {
    padding: 16px 20px;
  }
  
  .profile-panel-title {
    font-size: 18px;
    gap: 10px;
  }
  
  .profile-panel-title i {
    font-size: 20px;
  }
  
  .profile-close-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .profile-panel-body {
    padding: 16px;
  }
  
  .profile-section {
    margin-bottom: 12px;
  }
  
  .profile-section-header {
    padding: 10.08px 11.52px;
  }
  
  .profile-section-title {
    font-size: 15px;
    gap: 8px;
  }
  
  .profile-section-title i {
    font-size: 16px;
  }
  
  .profile-edit-btn {
    padding: 7px 14px;
    font-size: 12px;
  }
  
  .profile-section-body {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .profile-panel-header {
    padding: 14px 16px;
  }
  
  .profile-panel-title {
    font-size: 16px;
    gap: 8px;
  }
  
  .profile-panel-title i {
    font-size: 18px;
  }
  
  .profile-panel-body {
    padding: 12px;
  }
  
  .profile-section-header {
    padding: 8.64px 10.08px;
  }
  
  .profile-section-title {
    font-size: 14px;
  }
  
  .profile-edit-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .profile-section-body {
    padding: 0;
  }
}
