/* ===============================
    🎨 기본 설정 및 폰트
   =============================== */
html {
  zoom: 1.10;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  color: #5a5a8f;
  overflow-x: hidden;
  background-color: #1a1a2e;
}

/* --- 배경 디자인 (스크롤 따라 변하는 깊은 우주 느낌) --- */
.sky-gradient {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, 
    #1a1f3a 0%,      /* 부드러운 네이비 */
    #2c3e50 15%,     /* 밝은 블루그레이 */
    #1e2a3a 30%,     /* 중간 네이비 */
    #121826 45%,     /* 어두운 네이비 */
    #0d1117 55%,     /* 가장 어두운 지점 */
    #121826 65%,     /* 다시 조금 밝아짐 */
    #1e2a3a 75%,     /* 중간 네이비 */
    #2c3e50 90%,     /* 밝은 블루그레이 */
    #1a1f3a 100%     /* 부드러운 네이비로 마무리 */
  );
  z-index: -3;
}

.aurora {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(52, 152, 219, 0.12), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(41, 128, 185, 0.10), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(93, 173, 226, 0.06), transparent 60%);
  filter: blur(100px);
  z-index: -2;
  animation: aurora-move 15s infinite alternate;
}

@keyframes aurora-move {
  0% { transform: scale(1) translateY(0); opacity: 0.6; }
  50% { transform: scale(1.05) translateY(-20px); opacity: 0.8; }
  100% { transform: scale(1.1) translateY(0); opacity: 0.7; }
}

.stars-layer {
  position: fixed;
  inset: 0;
  opacity: 0;  /* 기본 별 레이어는 숨김 */
  z-index: -2;
}

/* 개별 별 스타일 */
.star {
  position: fixed;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  z-index: -2;
  /* transition 제거 - JS로 매 프레임 부드럽게 처리 */
}

/* ===============================
    📦 레이아웃 및 카드
   =============================== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px 120px;
}

.main-header {
  text-align: center;
  margin-bottom: 70px;
}

.main-header h1 {
  font-family: 'Jua', sans-serif;
  font-size: 48px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,180,200,0.8), 0 4px 0 rgba(100,100,160,0.5);
  margin-bottom: 10px;
}

.main-header .subtitle {
  color: #e0e0ff;
  font-size: 22px;
  opacity: 0.9;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.92); /* 배경을 더 밝게 - 가독성 향상 */
  border-radius: 40px;
  border: 4px solid rgba(255,255,255,0.7);
  box-shadow: 0 20px 50px rgba(20, 30, 60, 0.3);
  backdrop-filter: blur(12px);
  margin-bottom: 60px;
  padding: 70px 40px 45px;
  word-break: keep-all;
}

/* 캡슐 타이틀 */
.pill-title {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Jua', sans-serif;
  font-size: 22px;
  color: #fff;
  padding: 12px 35px;
  border-radius: 99px;
  z-index: 10;
  white-space: nowrap;
}

.pill-title.pink { background: linear-gradient(to right, #ff9a9e, #fad0c4); box-shadow: 0 0 15px rgba(255, 154, 158, 0.6); }
.pill-title.purple { background: linear-gradient(to right, #a18cd1, #fbc2eb); box-shadow: 0 0 15px rgba(161, 140, 209, 0.6); }
.pill-title.red { background: linear-gradient(to right, #ff6a6a, #ee5253); box-shadow: 0 0 15px rgba(255, 106, 106, 0.6); }
.pill-title.blue { background: linear-gradient(to right, #4facfe, #00f2fe); box-shadow: 0 0 15px rgba(79, 172, 254, 0.6); }

/* 카드 내부 콘텐츠 */
.card-body {
  font-size: 19px;
  line-height: 1.8;
  color: #2c3e50; /* 더 진한 색상으로 가독성 향상 */
}

.emphasis-text {
  font-family: 'Jua', sans-serif;
  font-size: 32px;
  color: #ff6a9e;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
  text-align: center;
}

/* 캐릭터 (빈 공간 채우도록 크게) */
.char {
  position: absolute;
  width: 280px;  /* 220px → 280px (대폭 증가) */
  top: -130px;   /* -170px → -200px */
  z-index: 10;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}
.char.left { left: -80px; }   /* -50px → -80px */
.char.right { right: -80px; }  /* -50px → -80px */

/* 리스트 스타일 */
.info-list {
  list-style: none;
  padding: 0;
  text-align: left;
}
.info-list li {
  font-family: 'Jua', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #4a4a7a;
  margin-bottom: 15px;
  padding-left: 0;
  position: relative;
}
.info-list li::before {
  content: '';
  display: none;
}
.red-card .info-list li::before { content: ''; display: none; }

/* 싫어요 섹션 리스트 스타일 */
.red-card .info-list li {
  font-family: 'Jua', sans-serif;
  font-size: 20px;
  line-height: 2;
  color: #2c3e50;
  margin-bottom: 14px;
  font-weight: 500;
}

.red-card .info-list li strong {
  color: #e74c3c;
  font-weight: 700;
}

/* QnA 섹션 - 클랜 라운지 스타일 */
.qna-section {
  margin-bottom: 25px;
  text-align: center;
}

.qna-section p {
  font-family: 'Jua', sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: #4a4a7a;
  margin-bottom: 18px;
  text-align: center;  /* left → center로 변경 */
}

.qna-section p strong {
  color: #ff5e9e;
  font-size: 19px;
}

/* ===============================
    ✨ [핵심수정] 섹션 4 매력 포인트 그리드
   =============================== */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.benefit-item {
  background: #ffffff;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  min-height: 165px; /* 사진 비율에 맞춘 안정적인 높이 */
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  border: 1px solid rgba(127, 188, 255, 0.2);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 45px; /* 사진처럼 퍼진한 아이콘 */
  margin-bottom: 12px;
  display: block;
}

.benefit-text {
  margin: 0;
  font-size: 18px; /* 메인 텍스트 강조 */
  font-weight: 700;
  color: #4a4a7a;
  line-height: 1.4;
  text-align: center;
}

.benefit-text span {
  display: block;
  font-size: 14px; /* 아래 설명 텍스트 */
  color: #8888aa;
  font-weight: 400;
  margin-top: 5px;
}

/* --- 승격 안내 박스 --- */
.system-notice-box {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 22px;
  margin-top: 25px;
  border-left: 6px solid #4facfe;
  text-align: left;
}

.notice-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px !important;
  color: #2c3e50;
}

.notice-content p {
  font-size: 15px;
  margin: 6px 0 !important;
  color: #555;
  line-height: 1.6;
}

/* ===============================
    ✨ 하단 영역 및 애니메이션
   =============================== */
.btn-area { text-align: center; margin-top: 60px; }

/* 버튼 기준 컨테이너 */
.join-wrap {
  position: relative;
  display: inline-block;
}

.join-btn {
  display: inline-block;
  background: linear-gradient(45deg, #a18cd1, #fbc2eb);
  color: #fff;
  font-family: 'Jua', sans-serif;
  font-size: 24px;
  padding: 18px 55px;
  border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(161, 140, 209, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.join-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(161, 140, 209, 0.6);
}

.footer-msg {
  color: white;
  margin-top: 25px;
  font-size: 16px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  text-align: center;
}

.join-character.left-char {
  position: absolute;
  left: -260px;
  top: -130px;
  width: 300px;
  pointer-events: none;
}

.join-character.right-char {
  position: absolute;
  right: -260px;  /* 오른쪽으로 이동 */
  top: -130px;
  width: 300px;
  pointer-events: none;
}

/* 별똥별 (자연스럽고 우아한 버전) */
.shooting-star {
  position: fixed;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  box-shadow: 
    0 0 8px 2px rgba(255, 255, 255, 0.9),
    0 0 16px 4px rgba(255, 255, 255, 0.4);
  z-index: -1;
  pointer-events: none;
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0.9) 85%,
    white 100%
  );
  transform: translate(0%, -50%);
  transform-origin: left center;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  opacity: 0.85;
}

.shooting-star::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.3) 40%,
    rgba(255, 255, 255, 0.7) 80%,
    white 100%
  );
  transform: translate(0%, -50%);
  transform-origin: left center;
  filter: blur(1px);
  opacity: 0.6;
}
@keyframes shoot {
  from { transform: rotate(315deg) translateX(0); opacity: 1; }
  to { transform: rotate(315deg) translateX(-1200px); opacity: 0; }
}

/* ===============================
    📱 모바일 대응 (Responsive)
   =============================== */
@media (max-width: 768px) {
  .container { padding: 40px 15px 80px; }
  .card { padding: 50px 20px 30px; border-radius: 30px; }
  .pill-title { font-size: 18px; padding: 10px 25px; }
  .main-header h1 { font-size: 32px; }
  .emphasis-text { font-size: 22px; }
  .card-body { font-size: 16px; }
  
  .benefit-grid { grid-template-columns: 1fr; } 
  .benefit-item { min-height: 130px; }
  .benefit-icon { font-size: 38px; }
  
  .char { width: 120px; top: -90px; }
  .char.left { left: -20px; }
  .char.right { right: -20px; }
}

/* --- 이런 분들 싫어요 섹션 가로 배치 (크기 최적화) --- */
.hate-content-wrapper {
  display: flex;
  align-items: center;    /* 세로 중앙 정렬 */
  justify-content: space-between;
  gap: 20px;             /* 리스트와 이미지 사이 여백 */
  min-height: 450px;     /* 섹션 전체의 최소 높이를 확보 */
}

.info-list {
  flex: 1.2;             /* 리스트 공간 비율 */
  z-index: 2;
}

.hate-image-box {
  flex: 1;               /* 이미지 공간 비율 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hate-image-box img {
  width: 100%;           /* 할당된 공간(flex: 1) 내에서 꽉 채움 */
  max-width: 450px;      /* 최대 크기를 대폭 상향 (기존보다 훨씬 커짐) */
  height: auto;
  object-fit: contain;
  /* 투명 배경이므로 그림자를 살짝 주면 입체감이 살아납니다 */
  filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.1)); 
  transform: scale(1.1); /* 미세하게 더 확대 */
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .hate-content-wrapper {
    flex-direction: column;
    min-height: auto;
  }
  .hate-image-box {
    width: 100%;
    max-width: 300px;
    order: -1;           /* 모바일에선 이미지를 위로 */
    margin-bottom: 20px;
  }
}

/* --- 가입 안내 섹션 레이아웃 (중앙 밸런스 조정) --- */
.join-info-wrapper {
  display: flex;
  align-items: center;      /* 세로 중앙 정렬 */
  justify-content: space-between;   /* 양쪽 균형 */
  gap: 30px;                /* 적당한 간격 */
  margin-top: 15px;
  width: 100%;
}

.join-image-box {
  flex-shrink: 0;
  width: 250px;             /* 250px로 조정 */
  display: flex;
  justify-content: center;
}

.remove-bg {
  width: 100%;
  height: auto;
  /* 흰색 배경 제거 효과 */
  mix-blend-mode: multiply; 
  filter: contrast(1.1);
  display: block;
  transform: scale(1.3); /* 이미지만 30% 확대 */
}

/* 구분선 디자인 고정 */
.section-divider {
  border: 0;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1); 
  margin: 25px 0;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .join-info-wrapper {
    flex-direction: column; /* 모바일에선 세로로 */
    gap: 20px;
  }
  .join-image-box {
    width: 180px;
    order: -1;              /* 움짤을 위로 */
  }
}

/* --- 메인 카드 전용 가독성 및 배치 최적화 --- */

/* 1. 캐릭터 크기 및 위치 (글자와 안 겹치게 양옆으로) */
.main-card .char {
  width: 250px !important; 
  top: -130px !important;
}
.main-card .char.left { left: -90px !important; }
.main-card .char.right { right: -90px !important; }

/* 2. 메인 문구 가독성 (색상 강조) */
.main-card .emphasis-text {
  color: #ff5e9e !important;
  margin-top: 20px;
  margin-bottom: 35px;
}

/* 3. 상세 내용 박스: 가독성을 위해 배경과 여백 조정 */
.intro-details-container {
  margin: 30px auto;
  max-width: 90%;
}

.intro-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.intro-dot { 
  font-size: 24px;
  flex-shrink: 0;
}

.intro-item p {
  margin: 0;
  font-family: 'Jua', sans-serif;
  font-size: 19px;
  line-height: 1.8;
  color: #4a4a7a !important;
  word-break: keep-all;
}

/* 4. [중요] 왼쪽 치우침 해결 및 중앙 정렬 */
.final-msg-wrapper {
  width: 100%;
  display: flex;
  justify-content: center; /* 가로 중앙 */
  margin: 25px 0;
}

.main-desc {
  text-align: center !important;
  font-family: 'Jua', sans-serif;
  font-size: 19px;
  line-height: 2;
  color: #ff5e9e !important;
  font-weight: 500;
  width: 100%;
  text-shadow: 0 0 15px rgba(255, 154, 158, 0.5);
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.15), rgba(255, 192, 203, 0.15));
  padding: 25px 30px;
  border-radius: 25px;
  border: 2px dashed rgba(255, 154, 158, 0.3);
  box-shadow: 0 5px 20px rgba(255, 154, 158, 0.2);
}

/* 태그 그룹 정렬 */
.tag-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.tag-group span {
  font-family: 'Jua', sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(255, 154, 158, 0.2), rgba(251, 194, 235, 0.2));
  border-radius: 20px;
  color: #ff5e9e;
  border: 2px solid rgba(255, 154, 158, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 154, 158, 0.15);
}

.tag-group span:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 154, 158, 0.3);
  border-color: #ff5e9e;
}

/* 버튼 영역 */
.btn-area {
  text-align: center;
  margin-top: 60px;
}

/* ⭐ 버튼 기준 컨테이너 */
.join-wrap {
  position: relative;
  display: inline-block; /* 버튼 크기만큼만 영역 생성 */
}

/* ⭐ 버튼 기준 컨테이너 */
.join-rap {
  left: 220px;
  bottom: 90px;
  position: relative;
  display: inline-block; /* 버튼 크기만큼만 영역 생성 */
}

/* 버튼 크게 */
.join-btn {
  display: inline-block;
  padding: 20px 50px;
  font-size: 22px;
  font-weight: 700;
  border-radius: 40px;
  background: linear-gradient(135deg, #ff8fb1, #ff6b9d);
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: 0.2s;
}

.join-btn:hover {
  transform: scale(1.06);
}

/* 캐릭터 이미지 */
.join-character {
  position: absolute;
  left: -260px;
  top: -130px;
  width: 300px;
  pointer-events: none;
}

/* 걱정 타이틀 */
.worry-title {
  font-family: 'Jua', sans-serif;
  font-size: 22px;
  color: #a18cd1;
  text-align: center;
  margin: 30px 0 15px 0;
  font-weight: 700;
}

.notice-sub {
  display: block;
  font-size: 15px;
  color: #888;
  margin-top: 5px;
  font-weight: 400;
}

/* 부탁드려요 섹션 */
.requestone-card,
.requesttwo-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 40px;
  border: 4px solid rgba(255,255,255,0.7);
  box-shadow: 0 20px 50px rgba(20, 30, 60, 0.3);
  backdrop-filter: blur(12px);
  margin-bottom: 60px;
  padding: 70px 40px 45px;
  word-break: keep-all;
}

.center-text {
  text-align: center;
}

.big-message {
  font-family: 'Jua', sans-serif;
  font-size: 22px;
  line-height: 1.8;
  color: #4a4a7a;
  margin-bottom: 25px;
}

.highlight-big {
  font-family: 'Jua', sans-serif;
  font-size: 24px;
  color: #ff5e9e;
  margin: 30px 0;
}

.last-line {
  font-family: 'Jua', sans-serif;
  font-size: 20px;
  color: #ff5e9e;
  margin-top: 30px;
}
/* 걱정 타이틀 */
.worry-title {
  font-family: 'Jua', sans-serif;
  font-size: 22px;
  color: #a18cd1;
  text-align: center;
  margin: 30px 0 15px 0;
  font-weight: 700;
}

/* 승격 안내 서브 텍스트 */
.notice-sub {
  display: block;
  font-size: 15px;
  color: #888;
  margin-top: 5px;
  font-weight: 400;
}
