/* 
 * festival-modal.css
 * 
 * 페스티벌 응모 모달 + 동의 모달 + 추천 코드 모달 스타일
 * 
 * 배치: public/css/festival-modal.css
 * 로드: index.html에 추가 또는 skin-v3-home.js에서 동적 로드
 */

/* 모달 배경 */
.fest-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
  animation: fest-fade-in 0.2s ease-out;
}

@keyframes fest-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 모달 박스 */
.fest-modal {
  background: #1a1a1a;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #333;
  color: #fff;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

.fest-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  background: #1a1a1a;
}

.fest-modal-title {
  font-size: 17px;
  font-weight: 700;
}

.fest-modal-close {
  background: transparent;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.fest-modal-close:hover {
  background: #2a2a2a;
  color: #fff;
}

.fest-modal-body {
  padding: 20px;
}

/* 안내 박스 */
.fest-info-box {
  background: rgba(255, 230, 0, 0.1);
  border-left: 3px solid #FFE600;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #ffd700;
}

/* 섹션 제목 */
.fest-section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ccc;
}

/* 응모권 표시 */
.fest-tickets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.fest-ticket {
  background: linear-gradient(135deg, #FFE600 0%, #FFD700 100%);
  color: #000;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fest-ticket-num {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}

.fest-ticket-label {
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
}

/* 액션 버튼 영역 */
.fest-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.fest-btn-primary {
  padding: 14px;
  background: #FFE600;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.fest-btn-primary:hover {
  background: #FFD700;
}

.fest-btn-secondary {
  padding: 12px;
  background: transparent;
  color: #fff;
  border: 1px solid #444;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.fest-btn-secondary:hover {
  background: #2a2a2a;
}

.fest-btn-done {
  padding: 12px;
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border: 1px solid #22C55E;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
  font-family: inherit;
  width: 100%;
}

/* 공유 영역 */
.fest-share-section {
  border-top: 1px solid #333;
  padding-top: 16px;
  margin-bottom: 16px;
}

.fest-share-box {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.fest-share-code {
  flex: 1;
  padding: 10px 14px;
  background: #2a2a2a;
  border-radius: 8px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FFE600;
}

.fest-btn-copy {
  padding: 10px 14px;
  background: #0066ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.fest-btn-copy:hover {
  background: #0052cc;
}

.fest-btn-share {
  padding: 12px;
  background: #FEE500;
  color: #3C1E1E;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.fest-btn-share:hover {
  background: #f5dc00;
}

/* 입력 필드 */
.fest-input {
  width: 100%;
  padding: 12px 14px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 12px;
}

.fest-input:focus {
  outline: none;
  border-color: #FFE600;
}

/* 동의 텍스트 박스 */
.fest-consent-text {
  background: #0a0a0a;
  border: 1px solid #333;
  padding: 12px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.6;
  color: #999;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-line;
  margin-bottom: 12px;
}

/* 체크박스 행 */
.fest-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 13px;
}

.fest-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
}

/* 푸터 안내 */
.fest-footer-note {
  text-align: center;
  font-size: 11px;
  color: #666;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
}

/* 라이브 혜택 카드 — 페스티벌 카드 강조 (skin-v3-home의 .live-main-card에 추가) */
.live-main-card[data-festival="true"] {
  background: linear-gradient(135deg, #1a1a3a 0%, #2a2a4a 100%);
  border: 2px solid #FFE600;
}

.live-main-card[data-festival="true"] .live-receive-btn {
  background: #FFE600;
  color: #000;
  font-weight: 800;
}
