/* 페더 스타일링 */
.character-header {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #086100 0%, #209c01 100%);
  border-radius: 0 0 3rem 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.character-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  animation: pulse 2s infinite;
}

.character-header .title {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.character-header .subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.header-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-size: 1.1rem;
}

.feature-item i {
  font-size: 1.25rem;
  opacity: 0.9;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.feature-item:nth-child(2) i {
  animation-delay: 0.5s;
}

.feature-item:nth-child(3) i {
  animation-delay: 1s;
}

/* 페이지 타이틀 영역 */
.hero.is-light {
  background-color: #f7fafc;
  margin-bottom: 3rem;
}

.hero-body {
  padding: 3rem 1.5rem;
}

.hero-body .title {
  margin-bottom: 1.5rem !important;
}

.hero-body .subtitle {
  margin-bottom: 2rem !important;
  line-height: 1.6;
}

.hero-body .tags {
  margin-top: 2rem !important;
}

/* 장르 선택 영역 */
#genre-selector {
  padding: 2rem 0;
  margin-bottom: 4rem;
}

/* 장르 선택 영역 텍스트 간격 조정 */
#genre-selector .title {
  margin-bottom: 1.5rem !important;
}

/* 장르 카드 스타일링 */
.genre-card {
  height: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  background-color: white;
}
.genre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.genre-card.is-selected {
  border: 2px solid #485fc7;
  box-shadow: 0 0 0 2px #485fc7;
  transform: translateY(-5px);
}

.genre-card .card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.genre-card .icon.is-large {
  height: 4rem;
  width: 4rem;
  margin-bottom: 1.5rem;
}

/* 모달 스타일링 */
.modal-content {
  width: auto;
  max-width: 400px;
  margin: 0 auto;
}

.modal-card {
  max-width: 600px;
  margin: 0 auto;
}

#loading-screen .box,

/* 광고 모달 스타일 추가 */
#ad-modal {
  z-index: 1000 !important; /* 게임 화면(100)보다 높은 z-index 설정 */
}

#ad-modal .modal-background {
  z-index: 1000;
}

#ad-modal .modal-content {
  z-index: 1001;
}

#ad-modal .box {
  padding: 2rem;
}

#ad-countdown {
  color: #485fc7;
  font-weight: bold;
}

/* 결과 모달 내용 */
#character-result-modal {
  padding: 1.5rem;
}

/* 생성 버튼 */
#generate-character {
  transition: all 0.3s ease;
}

#generate-character:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
  .character-header {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero-body {
    padding: 1.5rem 0.5rem;
  }

  .hero-body .title {
    font-size: 1.25rem;
  }

  .hero-body .subtitle {
    font-size: 0.9rem;
  }

  .genre-card .card-content {
    padding: 1rem;
  }
}

/* 애니메이션 */
.modal.is-active {
  animation: fadeIn 0.3s ease-out;
}

.modal-card {
  animation: slideIn 0.3s ease-out;
}

/* 접근성 */
.genre-card:focus-within {
  outline: none;
  border-color: #485fc7;
  box-shadow: 0 0 0 2px #485fc7;
}

.button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #485fc7;
}

/* SNS 공유 버튼 스타일 */
.button.is-facebook {
  background-color: #3b5998;
  border-color: transparent;
  color: white;
}

.button.is-facebook:hover {
  background-color: #344e86;
}

.button.is-linkedin {
  background-color: #0077b5;
  border-color: transparent;
  color: white;
}

.button.is-linkedin:hover {
  background-color: #006396;
}

/* 복사 버튼 효과 */
.button.is-light.copied {
  background-color: #48c774;
  color: white;
}

/* 저장 버튼 비활성화 스타일 */
.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 저장 중 스피너 애니메이션 */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
