/* =============================================
   프리미엄 서비스 패널 스타일
   (head_style_0018.css에서 이동, 2025-10-02, Phase 2.2j)
   원본: head_style_0018.css 라인 173-391 (219 라인)
   ============================================= */

/* 만세력 사이드 패널 */
.saju-panel {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.saju-panel.open {
  right: 0;
}

.side-panel-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-panel-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.side-panel-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* 프리미엄 서비스 메뉴 */
.premium-service-menu {
  margin-bottom: 15px;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-service-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
}

/* 만세력 분석 스타일 */
.premium-service-menu .menu-item.saju-item {
  background: linear-gradient(135deg, #8E44AD 0%, #9B59B6 100%);
  box-shadow: 0 3px 10px rgba(142, 68, 173, 0.3);
}

.premium-service-menu .menu-item.saju-item:hover {
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

/* 이미지 생성 스타일 */
.premium-service-menu .menu-item.image-item {
  background: linear-gradient(135deg, #00BCD4 0%, #00ACC1 100%);
  box-shadow: 0 3px 10px rgba(0, 188, 212, 0.3);
}

.premium-service-menu .menu-item.image-item:hover {
  background: linear-gradient(135deg, #00ACC1 0%, #00BCD4 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.premium-service-menu .menu-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
}

.premium-service-menu .menu-content {
  flex: 1;
}

.premium-service-menu .menu-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.premium-service-menu .menu-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

/* 만세력 페이지 */
.saju-page-container {
  width: 100% !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  flex: 1 !important;           /* flex 컨테이너 내에서 확장 */
  align-self: stretch !important; /* 부모 너비에 맞춤 */
  max-width: 100% !important;
}

.saju-page-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  z-index: 10;
}

/* 만세력 페이지 헤더 */
.saju-page-header.saju-header {
  background: linear-gradient(135deg, #8E44AD 0%, #9B59B6 100%);
  box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
}

/* 이미지생성 페이지 헤더 */
.saju-page-header.image-header {
  background: linear-gradient(135deg, #00BCD4 0%, #00ACC1 100%);
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.saju-page-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.saju-iframe-container {
  flex: 1;
  width: 100%;
  padding: 10px;
}

/* 이미지 생성 팝업 모달 스타일 */
.image-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  max-height: 850px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease-out;
}

.image-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px 12px 0 0;
  color: white;
}

.image-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.image-modal-body {
  flex: 1;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

#image-generation-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 12px 12px;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
