/* ===== Quotes Page ===== */

/* ===== Hero ===== */
.quotes-hero {
  position: relative;
  z-index: 1;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
}

/* 숲 텍스처 */
.quotes-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1800&auto=format&fit=crop&q=70');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* 하단 페이드 → 섹션으로 이어지기 */
.quotes-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 2;
  pointer-events: none;
}

.quotes-hero-inner {
  max-width: 680px;
}

.quotes-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 1rem 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quotes-hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.accent-text {
  color: var(--accent-light);
  -webkit-text-fill-color: var(--accent-light);
}

.quotes-hero-tags {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.qtag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-light);
  border: 1px solid var(--accent);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* ===== 두 AI 소개 ===== */
.two-ai-intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 3rem;
}

.two-ai-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.ai-profile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.ai-profile--jinpok {
  border-color: rgba(108, 92, 231, 0.3);
}

.ai-profile--jinpok:hover {
  border-color: var(--accent);
}

.ai-profile--rhythm {
  border-color: rgba(0, 184, 148, 0.3);
}

.ai-profile--rhythm:hover {
  border-color: #00b894;
}

.ai-profile-header {
  margin-bottom: 1.5rem;
}

.ai-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent-light);
  background: rgba(108, 92, 231, 0.15);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.ai-badge--rhythm {
  color: #00b894;
  background: rgba(0, 184, 148, 0.15);
}

.ai-profile-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.ai-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.3rem;
}

.ai-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.ai-traits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ai-traits li {
  display: flex;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  align-items: baseline;
}

.ai-traits li span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  min-width: 2.5rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.ai-quote {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 0.8rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

.ai-profile--rhythm .ai-quote {
  border-left-color: #00b894;
}

/* ===== 중간 구분자 ===== */
.ai-profile-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding-top: 3rem;
}

.divider-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  min-height: 40px;
}

.divider-and {
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 300;
}

.divider-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ===== 이미지 구분선 ===== */
.img-divider {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.img-divider--narrow {
  height: 180px;
}

.img-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  display: block;
}

.img-divider--fallback {
  background: linear-gradient(135deg, #0d0a1a, #1a1040);
}

.img-divider-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, rgba(10,10,15,0.7) 0%, rgba(10,10,15,0.3) 50%, rgba(10,10,15,0.7) 100%);
}

.img-divider-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 2rem;
  opacity: 0.9;
}

/* ===== 리듬 존재론 섹션 ===== */
.rhythm-header {
  text-align: center;
  margin-bottom: 3rem;
}

.rhythm-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(108, 92, 231, 0.3);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

.rhythm-intro {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.rhythm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  transition: border-color 0.3s, transform 0.3s;
}

.rhythm-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.rhythm-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.rhythm-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(108, 92, 231, 0.4);
  padding: 0.8rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 0 0 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.rhythm-card > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.rhythm-note {
  font-style: italic;
  color: var(--accent-light) !important;
  font-size: 0.84rem !important;
}

/* ===== 필터 바 ===== */
.filter-header {
  margin-bottom: 2.5rem;
}

.filter-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== 어록 목록 ===== */
.quotes-container {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===== 날짜 구분선 ===== */
.date-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}

.date-divider::before,
.date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.date-divider span {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ===== 어록 카드 ===== */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

.quote-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.quote-rhythm {
  border-color: rgba(0, 184, 148, 0.2);
}

.quote-rhythm:hover {
  border-color: #00b894;
}

.quote-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.quote-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.quote-tag.philosophy    { background: rgba(108, 92, 231, 0.2); color: #a29bfe; }
.quote-tag.confrontation { background: rgba(253, 121, 168, 0.15); color: #fd79a8; }
.quote-tag.identity      { background: rgba(0, 184, 148, 0.15); color: #00b894; }
.quote-tag.trust         { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; }
.quote-tag.growth        { background: rgba(0, 206, 201, 0.15); color: #00cec9; }
.quote-tag.tools         { background: rgba(116, 185, 255, 0.15); color: #74b9ff; }
.quote-tag.ai-debate     { background: rgba(225, 112, 85, 0.15); color: #e17055; }

.quote-date {
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-left: auto;
}

.quote-context {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-style: italic;
  padding-left: 0.2rem;
}

.quote-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1.8rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent);
}

.quote-rhythm .quote-text {
  border-left-color: #00b894;
}

.quote-text em {
  color: var(--accent-light);
  font-style: normal;
}

/* ===== AI 반응 박스 ===== */
.quote-reaction {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reaction-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.quote-reaction p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.quote-reaction em {
  color: var(--text);
  font-style: italic;
}

/* ===== 진폭의 주석 ===== */
.quote-annotation {
  margin-top: 1rem;
  background: rgba(108, 92, 231, 0.06);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(108, 92, 231, 0.15);
}

.quote-annotation span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.quote-annotation p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
}

/* ===== AI 논쟁 ===== */
.quote-battle {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.8rem;
}

.battle-side {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.2rem;
}

.battle-side.gemini { border: 1px solid rgba(0, 180, 216, 0.25); }
.battle-side.jinpok { border: 1px solid rgba(108, 92, 231, 0.25); }

.battle-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.battle-side.gemini .battle-label { color: #00b4d8; }
.battle-side.jinpok .battle-label { color: var(--accent-light); }

.battle-side p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.battle-divider {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== 마무리 ===== */
.quotes-closing {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.closing-big-quote {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.closing-body {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.closing-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* (space-link 스타일 복사) */
.space-link {
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  background: var(--gradient);
  color: #fff;
  transition: opacity 0.3s, transform 0.3s;
  -webkit-text-fill-color: #fff;
}

.space-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  color: #fff;
}

.space-link--outline {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

.space-link--outline:hover {
  border-color: var(--accent);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  opacity: 1;
}

/* ===== Light mode card overrides ===== */
[data-theme="light"] .quote-card {
  background: rgba(40, 50, 30, 0.45);
  backdrop-filter: blur(12px);
  border-color: rgba(100, 140, 70, 0.18);
  color: #e8efe5;
}
[data-theme="light"] .quote-card * { color: inherit; }
[data-theme="light"] .quote-text { color: #f0f5ea; border-left-color: #6a9e45; }
[data-theme="light"] .quote-text em { color: #b8e080; }
[data-theme="light"] .quote-reaction {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .quote-reaction p { color: rgba(232, 239, 229, 0.75); }
[data-theme="light"] .quote-reaction em { color: #e8efe5; }
[data-theme="light"] .reaction-label { color: #b8e080; }
[data-theme="light"] .quote-annotation {
  background: rgba(100, 180, 60, 0.08);
  border-color: rgba(100, 180, 60, 0.2);
}
[data-theme="light"] .quote-annotation span { color: #8abe60; }
[data-theme="light"] .quote-annotation p { color: rgba(232, 239, 229, 0.7); }
[data-theme="light"] .quote-context { color: rgba(232, 239, 229, 0.65); }
[data-theme="light"] .quote-date { color: rgba(232, 239, 229, 0.5); }
[data-theme="light"] .quote-tag.philosophy    { background: rgba(162, 155, 254, 0.2); color: #c2b4fe; }
[data-theme="light"] .quote-tag.confrontation { background: rgba(253, 121, 168, 0.2); color: #fd9ec0; }
[data-theme="light"] .quote-tag.identity      { background: rgba(0, 184, 148, 0.2); color: #00d4a8; }
[data-theme="light"] .quote-tag.trust         { background: rgba(253, 203, 110, 0.2); color: #fdc94e; }
[data-theme="light"] .quote-tag.growth        { background: rgba(0, 206, 201, 0.2); color: #00cec9; }
[data-theme="light"] .quote-tag.tools         { background: rgba(116, 185, 255, 0.2); color: #74b9ff; }
[data-theme="light"] .quote-tag.ai-debate     { background: rgba(225, 112, 85, 0.2); color: #e17055; }

[data-theme="light"] .rhythm-card {
  background: rgba(40, 50, 30, 0.45);
  backdrop-filter: blur(12px);
  border-color: rgba(100, 140, 70, 0.18);
  color: #e8efe5;
}
[data-theme="light"] .rhythm-card * { color: inherit; }
[data-theme="light"] .rhythm-card h4 { color: #b8e080; }
[data-theme="light"] .rhythm-card > p { color: rgba(232, 239, 229, 0.75); }
[data-theme="light"] .rhythm-code {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: rgba(100, 180, 60, 0.45);
  color: rgba(232, 239, 229, 0.75);
}
[data-theme="light"] .rhythm-note { color: #b8e080 !important; }

[data-theme="light"] .ai-profile {
  background: rgba(40, 50, 30, 0.45);
  backdrop-filter: blur(12px);
  border-color: rgba(100, 140, 70, 0.18);
  color: #e8efe5;
}
[data-theme="light"] .ai-profile * { color: inherit; }
[data-theme="light"] .ai-profile-header h3 { color: #f0f5ea; }
[data-theme="light"] .ai-tagline { color: rgba(232, 239, 229, 0.65); }
[data-theme="light"] .ai-traits li { color: rgba(232, 239, 229, 0.75); }
[data-theme="light"] .ai-traits li span { color: #8abe60; }
[data-theme="light"] .ai-quote { color: rgba(232, 239, 229, 0.65); border-left-color: #6a9e45; }
[data-theme="light"] .ai-sub { color: rgba(232, 239, 229, 0.5); }

[data-theme="light"] .battle-side {
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .battle-side p { color: rgba(232, 239, 229, 0.75); }
[data-theme="light"] .battle-side.gemini .battle-label { color: #60d0f0; }
[data-theme="light"] .battle-side.jinpok .battle-label { color: #b8e080; }
[data-theme="light"] .battle-divider { color: rgba(232, 239, 229, 0.45); }

[data-theme="light"] .filter-btn {
  border-color: rgba(100, 140, 70, 0.25);
  color: rgba(42, 51, 32, 0.75);
}
[data-theme="light"] .filter-btn:hover {
  border-color: #4a7a2e;
  color: #2a3320;
}
[data-theme="light"] .filter-btn.active {
  background: #4a7a2e;
  border-color: #4a7a2e;
  color: #fff;
}
[data-theme="light"] .date-divider span {
  color: rgba(42, 51, 32, 0.6);
  border-color: rgba(100, 140, 70, 0.2);
}
[data-theme="light"] .date-divider::before,
[data-theme="light"] .date-divider::after {
  background: rgba(100, 140, 70, 0.2);
}
[data-theme="light"] .img-divider-text { color: #f0f5ea; }

/* ===== Dark mode card brightness boost ===== */
[data-theme="dark"] .quote-card {
  background: rgba(28, 28, 50, 0.88);
  border-color: rgba(108, 92, 231, 0.16);
}
[data-theme="dark"] .quote-text { color: #e8e8f8; }
[data-theme="dark"] .quote-reaction p { color: rgba(136, 136, 170, 0.92); }

[data-theme="dark"] .rhythm-card {
  background: rgba(28, 28, 50, 0.88);
  border-color: rgba(108, 92, 231, 0.16);
}
[data-theme="dark"] .rhythm-card > p { color: rgba(136, 136, 170, 0.92); }

[data-theme="dark"] .ai-profile {
  background: rgba(28, 28, 50, 0.88);
  border-color: rgba(108, 92, 231, 0.18);
}
[data-theme="dark"] .ai-profile--jinpok { border-color: rgba(108, 92, 231, 0.35); }
[data-theme="dark"] .ai-profile--rhythm { border-color: rgba(0, 184, 148, 0.35); }

/* ===== 모바일 ===== */
@media (max-width: 900px) {
  .rhythm-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .two-ai-grid {
    grid-template-columns: 1fr;
  }
  .ai-profile-divider {
    flex-direction: row;
    padding-top: 0;
    justify-content: center;
  }
  .divider-line { min-height: unset; width: 40px; flex: unset; }
  .quote-battle { grid-template-columns: 1fr; }
  .battle-divider { display: none; }
  .quote-date { margin-left: 0; }
  .rhythm-grid { grid-template-columns: 1fr; }

  /* iOS Safari: background-attachment:fixed 비활성화 */
  .quotes-hero::before { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .quote-card { padding: 1.8rem 1.4rem; }
  .quote-text { font-size: 1.1rem; }
  .img-divider { height: 160px; }
  .img-divider--narrow { height: 120px; }
}

