:root {
  /* Liturgical & Sacred Palette */
  --color-violet: #4A148C;
  --color-white: #FDFDFD;
  --color-gold: #D4AF37;
  --color-gold-light: #FFD700;
  --color-green: #1B5E20;
  --color-red: #B71C1C;
  
  --bg-deep: #05070A;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  
  --text-main: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  --font-sacred: 'Cormorant Garamond', serif;
  --font-serif: 'Noto Serif KR', serif;
  --font-heading: 'Playfair Display', serif;
  --font-sans: 'Pretendard Variable', sans-serif;

  --transition-sacred: 1.2s cubic-bezier(0.2, 1, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --radius-xl: 32px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-sans);
  /* 이미지를 어둡게 하기 위해 검은색 그라데이션을 오버레이로 겹침 */
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
              url('bg-sacred.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- Background Layers --- */
.fixed-bg { display: none; }

#particle-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none; opacity: 0.5;
}

.aurora-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; mix-blend-mode: screen; pointer-events: none;
}

.mouse-glow {
  position: fixed; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: -1;
  transform: translate(-50%, -50%); transition: opacity 0.5s ease;
}

/* --- Layout & Anti-Ad Resistance --- */
.container {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  position: relative; z-index: 10;
}

.app-wrapper { position: relative; z-index: 1; }

/* --- Hero --- */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
}

.top-meta {
  display: flex;
  justify-content: center; /* 중앙 정렬로 변경 */
  align-items: center;
  gap: 20px;
  margin-bottom: 40px; /* 제목과의 확실한 거리 확보 */
  width: 100%;
  flex-wrap: wrap; /* 모바일 대응 */
}

.liturgy-badge {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 0.8rem;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.date-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 11vw, 6rem);
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(300px, auto); gap: 24px; padding: 80px 0 140px;
}

.bento-card {
  background: var(--glass-bg); backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition-smooth);
}
.bento-card:hover {
  transform: translateY(-10px); border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.main-prayer { grid-column: span 2; grid-row: span 2; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.sacred-text { font-family: var(--font-serif); font-size: 2.4rem; line-height: 1.6; text-align: center; color: var(--text-main); margin: 40px 0; font-weight: 300; }

.card-title { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 24px; border-bottom: 1px solid var(--glass-border); padding-bottom: 16px; }

/* --- Buttons --- */
.card-actions { display: flex; gap: 20px; justify-content: center; margin-top: 40px; }
.btn {
  padding: 18px 40px; border-radius: 50px;
  font-weight: 600; font-family: var(--font-sans);
  cursor: pointer; transition: all 0.4s;
  border: none; font-size: 0.95rem;
}
.btn-gold { background: var(--color-gold); color: #000; }
.btn-glass { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--glass-border); }
.btn:hover { transform: scale(1.05) translateY(-2px); filter: brightness(1.2); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* --- Ad Slots --- */
.ad-slot {
  width: 100%; margin: 15px auto; padding: 0;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  text-align: center; color: var(--text-muted); font-size: 0.55rem; 
  min-height: 25px; /* 대폭 축소: 광고 전에는 티 안 나게 */
  display: flex; align-items: center; justify-content: center;
}
.ad-label { opacity: 0.2; letter-spacing: 3px; text-transform: uppercase; }

/* --- Blog Feed Details --- */
.feed-item { margin-bottom: 24px; transition: 0.3s; cursor: pointer; }
.feed-item:hover { transform: translateX(8px); }
.feed-item a { text-decoration: none; color: inherit; }
.feed-item h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text-main); margin-bottom: 6px; line-height: 1.4; transition: color 0.3s; }
.feed-item:hover h3 { color: var(--color-gold); }
.feed-item .feed-date { font-size: 0.85rem; color: var(--color-gold); font-family: var(--font-sacred); opacity: 0.8; }

.link-more { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; margin-top: 24px; transition: 0.3s; }
.link-more:hover { color: var(--color-gold); padding-left: 8px; }

/* --- Reader Modal --- */
.reader-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(25px);
  z-index: 1000; display: none; opacity: 0; transition: opacity 0.5s ease;
  overflow-y: auto; padding: 60px 20px;
}
.reader-overlay.active { display: block; opacity: 1; }

.reader-container {
  max-width: 850px; margin: 0 auto;
  background: rgba(10, 15, 25, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 80px 50px; position: relative;
  box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}

.reader-body-text { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.9; color: var(--text-dim); }

/* --- Themes --- */
body.theme-green .aurora-overlay { background: radial-gradient(circle at 20% 30%, rgba(27, 94, 32, 0.2) 0%, transparent 60%); }
body.theme-violet .aurora-overlay { background: radial-gradient(circle at 20% 30%, rgba(74, 20, 140, 0.25) 0%, transparent 60%); }
body.theme-white .aurora-overlay { background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%); }

/* --- Nav & Footer --- */
.floating-nav {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); padding: 8px; border-radius: 50px;
  display: flex; gap: 10px; z-index: 500;
}
.nav-item { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: 0.3s; }
.nav-item.active { background: var(--color-gold); color: #000; }

.footer { padding: 80px 0 150px; text-align: center; border-top: 1px solid var(--glass-border); }
.blessing { font-family: var(--font-sacred); font-size: 1.8rem; font-style: italic; margin-bottom: 24px; }
.footer-links { margin-bottom: 20px; display: flex; justify-content: center; gap: 30px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: 1.2s var(--transition-sacred); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .main-prayer { grid-column: span 1; padding: 40px 24px; }
  .sacred-text { font-size: 1.6rem; }
  .main-title { font-size: 3.5rem; }
}
