/* 현대적 사주 앱 스타일 */

/* 전체 초기화 및 기본 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 컬러 팔레트 */
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --accent-secondary: #f5576c;
  --success-color: #4CAF50;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --border-color: #e9ecef;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --border-radius-small: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* 컨테이너 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 헤더 스타일 */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  margin-bottom: 30px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-light);
}

.result-header {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 30px 20px;
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.result-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.result-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* 메인 슬라이더 */
.main-slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  height: 400px;
}

.main-slider-wrapper {
  display: flex;
  width: 300%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.main-slide {
  width: 100%;
  position: relative;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 슬라이드 버튼 */
#prevSlide, #nextSlide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: none;
  font-size: 20px;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  z-index: 10;
}

#prevSlide {
  left: 20px;
}

#nextSlide {
  right: 20px;
}

#prevSlide:hover, #nextSlide:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-medium);
}

/* 폼 스타일 */
.form-container {
  background: var(--background-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.form-group input[type="date"],
.form-group input[type="time"],
.form-group select {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-small);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--background-white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 버튼 스타일 */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: var(--border-radius-small);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: var(--background-white);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--background-light);
  border-color: var(--primary-color);
}

/* 결과 페이지 버튼들 */
.result-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.result-btn {
  background: var(--background-white);
  border: none;
  padding: 25px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.result-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.result-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: var(--shadow-medium);
}

/* 결과 섹션 */
.result-section {
  background: var(--background-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  margin-bottom: 30px;
  transition: var(--transition);
}

.result-section.hidden {
  display: none;
}

.result-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* AI 사주 분석 스타일 */
.loading-container {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--border-radius);
  color: white;
  margin: 20px 0;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 30px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container p {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.ai-analysis {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  padding: 40px;
  border-radius: var(--border-radius);
  color: white;
  margin: 20px 0;
  box-shadow: var(--shadow-heavy);
}

.ai-analysis h3 {
  margin-top: 0;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.analysis-content {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: var(--border-radius-small);
  line-height: 1.8;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  font-size: 1.1rem;
}

.analysis-content strong {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: block;
  margin: 20px 0 10px 0;
}

.analysis-footer {
  text-align: center;
  opacity: 0.9;
  font-size: 0.95rem;
}

.analysis-footer button {
  margin-top: 15px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-small);
  color: white;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.analysis-footer button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.fallback-analysis {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  padding: 40px;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  margin: 20px 0;
  box-shadow: var(--shadow-medium);
}

.error-analysis {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  padding: 40px;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  margin: 20px 0;
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.basic-info, .error-info {
  background: rgba(255, 255, 255, 0.4);
  padding: 20px;
  border-radius: var(--border-radius-small);
  margin-top: 20px;
}

/* 띠 정보 스타일 */
.zodiac-info {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  padding: 30px;
  background: var(--background-light);
  border-radius: var(--border-radius);
}

.zodiac-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-medium);
}

.zodiac-details h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .result-header h1 {
    font-size: 2rem;
  }
  
  .main-slider-container {
    height: 250px;
  }
  
  .form-container {
    padding: 30px 20px;
  }
  
  .result-buttons {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .result-section {
    padding: 25px 20px;
  }
  
  .ai-analysis, .fallback-analysis, .error-analysis {
    padding: 25px 20px;
  }
  
  .zodiac-info {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .zodiac-image {
    width: 100px;
    height: 100px;
  }
  
  #prevSlide, #nextSlide {
    padding: 12px;
    font-size: 16px;
  }
  
  #prevSlide {
    left: 10px;
  }
  
  #nextSlide {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .result-header {
    padding: 20px 15px;
  }
  
  .result-header h1 {
    font-size: 1.8rem;
  }
  
  .main-slider-container {
    height: 200px;
  }
  
  .form-container {
    padding: 20px 15px;
  }
  
  .result-section {
    padding: 20px 15px;
  }
  
  .ai-analysis h3 {
    font-size: 1.5rem;
  }
  
  .analysis-content {
    padding: 20px;
    font-size: 1rem;
  }
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-section {
  animation: fadeInUp 0.6s ease-out;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}
/* 추가 스타일 - 서비스 소개 및 기능 */
.intro-section {
  background: var(--background-white);
  padding: 60px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  margin: 40px 0;
  text-align: center;
}

.intro-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: var(--background-light);
  padding: 30px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 성별 선택 스타일 */
.gender-selection {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  flex: 1;
  min-width: 120px;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-white);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
  transform: translateY(-2px);
}

.radio-label:hover .radio-custom {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.form-help {
  display: block;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-style: italic;
}

/* 체크박스 스타일 */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* 푸터 스타일 */
footer {
  background: var(--text-primary);
  color: white;
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

footer p {
  margin-bottom: 10px;
  opacity: 0.8;
}

/* 폼 개선 */
.form-group small {
  display: block;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 반응형 개선 */
@media (max-width: 768px) {
  .intro-section {
    padding: 40px 20px;
  }
  
  .intro-section h2 {
    font-size: 1.8rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-card {
    padding: 25px 15px;
  }
}

/* 결과 표시 영역 스타일 */
.result-container {
  background: var(--background-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  margin: 2rem 0;
  padding: 2rem;
  transition: var(--transition);
}

.result-container.hidden {
  display: none;
}

.result-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.result-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.result-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.result-btn.active {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.result-btn small {
  font-size: 0.8rem;
  opacity: 0.9;
}

.result-section {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--background-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.result-section.hidden {
  display: none;
}

.result-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* 띠 분석 카드 */
.zodiac-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.zodiac-image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--background-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zodiac-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zodiac-info {
  flex: 1;
}

.zodiac-info h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.zodiac-description,
.zodiac-compatibility {
  margin: 1rem 0;
  line-height: 1.8;
}

.zodiac-description {
  padding: 1rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: var(--border-radius-small);
}

.zodiac-compatibility {
  padding: 1rem;
  background: rgba(245, 147, 251, 0.1);
  border-radius: var(--border-radius-small);
}

/* 오행 분석 카드 */
.five-elements-card {
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.five-elements-card h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.five-elements-description {
  padding: 1rem;
  background: rgba(118, 75, 162, 0.1);
  border-radius: var(--border-radius-small);
  line-height: 1.8;
}

/* 만세력 카드 */
.calendar-card {
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.calendar-card h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.calendar-info {
  padding: 1rem;
  background: rgba(76, 175, 80, 0.1);
  border-radius: var(--border-radius-small);
  line-height: 1.8;
}

/* AI 사주풀이 카드 */
.saju-card {
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.saju-card h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .zodiac-card {
    flex-direction: column;
    text-align: center;
  }
  
  .zodiac-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  
  .result-buttons {
    grid-template-columns: 1fr;
  }
  
  .result-btn {
    padding: 1rem;
  }
}
/* 로딩 스피너 */
.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #8B4513;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* AI 분석 결과 스타일 */
.ai-analysis, .fallback-analysis {
  line-height: 1.6;
  white-space: pre-line;
}

.error {
  color: #d32f2f;
  text-align: center;
  padding: 20px;
  background: #ffebee;
  border-radius: 8px;
  border: 1px solid #ffcdd2;
}
/* 🔮 고급 만세력 분석 결과 스타일 */
.analysis-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-radius: 12px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.analysis-section h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-section .content {
    line-height: 1.8;
    color: #444;
    font-size: 0.95em;
}

/* 만세력 상세 분석 텍스트 스타일 */
.analysis-section .content strong {
    color: #667eea;
    font-weight: 600;
}

.analysis-section .content h4 {
    color: #5a67d8;
    margin: 15px 0 8px 0;
    font-size: 1.05em;
}

.analysis-section .content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.analysis-section .content li {
    margin: 5px 0;
    color: #555;
}

/* 만세력 정보 표시 */
.fourpillars-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.fourpillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.pillar-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9em;
}

.pillar-item .pillar-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.pillar-item .pillar-value {
    font-size: 0.8em;
    opacity: 0.9;
}

/* 오행 분석 차트 */
.element-analysis {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.element-bars {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 100px;
    margin: 15px 0;
    padding: 0 10px;
}

.element-bar {
    flex: 1;
    margin: 0 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 4px 4px 0 0;
    min-height: 10px;
    transition: all 0.3s ease;
}

.element-label {
    margin-top: 8px;
    font-size: 0.8em;
    font-weight: 600;
    color: #4a5568;
}

/* 용신/기신 표시 */
.useful-god-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.god-item {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.useful-god {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.avoid-god {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.god-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.god-element {
    font-size: 1.2em;
    font-weight: bold;
}

/* 십신 분석 */
.ten-gods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.ten-god-item {
    background: #edf2f7;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9em;
}

.ten-god-position {
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 4px;
}

.ten-god-name {
    color: #667eea;
    font-weight: 600;
}

/* 분석 결과 강조 */
.highlight-box {
    background: linear-gradient(135deg, #fef5e7, #fed7aa);
    border: 1px solid #f6ad55;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.highlight-box .title {
    font-weight: bold;
    color: #c05621;
    margin-bottom: 8px;
}

.highlight-box .content {
    color: #744210;
    line-height: 1.6;
}

/* 반응형 디자인 개선 */
@media (max-width: 768px) {
    .fourpillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .useful-god-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ten-gods-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .element-bars {
        height: 80px;
        padding: 0 5px;
    }
    
    .analysis-section {
        padding: 15px;
        margin-bottom: 20px;
    }
}

/* 로딩 상태 개선 */
.ai-loading-container {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 12px;
    margin: 20px 0;
}

.ai-loading-container .loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.ai-loading-container p {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.ai-loading-container small {
    color: #718096;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

/* 분석 품질 표시 */
.analysis-quality {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: inline-block;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
}

.analysis-quality .quality-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    margin-left: 10px;
    font-size: 0.8em;
}
