/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Pretendard 폰트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

.font-data {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
}

/* Glass 유틸리티 */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-input {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-input:focus {
  border-color: rgba(245, 158, 11, 0.40);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
  outline: none;
}

/* Amber 글로우 (점수 전용) */
.glow-amber {
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.4), 0 0 60px rgba(245, 158, 11, 0.15);
}

/* Frosted 배경 */
.bg-frosted {
  background: #1e2338;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245, 158, 11, 0.03) 0%, transparent 60%),
    linear-gradient(180deg, #1e2338 0%, #1a1f30 50%, #161b28 100%);
  background-attachment: fixed;
}

/* 결과 카드 페이드인 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-fade-in {
  animation: fadeInUp 0.4s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .result-fade-in {
    animation: none;
  }
}

/* 잠금 콘텐츠 (게이팅) */
.locked-content {
  position: relative;
  user-select: none;
  pointer-events: none;
}

.locked-content .locked-blur {
  filter: blur(8px);
  -webkit-filter: blur(8px);
  opacity: 0.5;
}

.unlock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  pointer-events: auto;
  background: rgba(30, 35, 56, 0.4);
  border-radius: inherit;
}

.unlock-overlay .unlock-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.unlock-overlay .unlock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* 잠금해제 CTA 카드 */
.unlock-cta {
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.04));
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.08);
}

.unlock-cta .unlock-cta-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.unlock-cta .unlock-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.45);
}

.unlock-cta .unlock-cta-btn:active {
  transform: translateY(0);
}

/* 요금제 카드 */
.pricing-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.04);
}

.pricing-card.featured:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

/* 채팅 메시지 — AI 응답 내 볼드 강조 */
.chat-message strong {
  color: rgba(245, 158, 11, 0.9);
  font-weight: 600;
}

/* 블로그 본문 스타일 */
.blog-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.blog-content strong {
  color: rgba(245, 158, 11, 0.9);
  font-weight: 600;
}

.blog-content ul, .blog-content ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.blog-content ul {
  list-style-type: disc;
}

.blog-content ol {
  list-style-type: decimal;
}

.blog-content li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.blog-content blockquote {
  border-left: 3px solid rgba(245, 158, 11, 0.5);
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.blog-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2rem 0;
}

/* Amber 체크박스 */
input[type="checkbox"][class*="accent-amber"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

input[type="checkbox"][class*="accent-amber"]:hover {
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(245, 158, 11, 0.06);
}

input[type="checkbox"][class*="accent-amber"]:checked {
  background: rgba(245, 158, 11, 0.9);
  border-color: rgba(245, 158, 11, 0.9);
}

input[type="checkbox"][class*="accent-amber"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"][class*="accent-amber"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* 체크박스 nudge 애니메이션 */
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.animate-nudge {
  animation: nudge 0.5s ease-in-out;
}

/* 대시보드 차트 */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}
