:root {
  --color-primary: #101827;
  --color-gold: #d4af37;
  --color-gold-glow: rgba(212, 175, 55, 0.4);
  --text-primary: #f8f9fa;
  --text-secondary: rgba(248, 249, 250, 0.7);
  --bg-overlay: rgba(16, 24, 39, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-serif: 'Playfair Display', 'Cormorant Garamond', 'Noto Serif KR', serif;
  --font-sans: 'Pretendard Variable', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Premium Background System */
.fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/sacred_bg.png') no-repeat center center;
  background-size: cover;
  z-index: -2;
  filter: brightness(0.6) contrast(1.1);
  transform: scale(1.1);
  transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--color-primary) 100%);
  z-index: -1;
  opacity: 0.8;
}

/* Mouse Glow Effect */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease;
}

/* Particles */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  width: 100%;
  margin: 0 auto;
}

/* Typography & Reveal */
.main-title {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(to bottom, #fff, var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 2rem auto 1rem auto;
  text-align: center;
  width: fit-content;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Layout */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.container {
  padding: 0 40px;
}

/* Hero Section & Nav */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding-bottom: 40px;
}

.top-nav {
  position: relative;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 100;
}

.nav-links .nav-item {
  color: var(--color-gold);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  padding: 12px 28px;
  border: 1.5px solid var(--color-gold);
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.08);
  transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.nav-links .nav-item:hover {
  background: var(--color-gold);
  color: #101827;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px var(--color-gold-glow);
}

.liturgy-tag {
  background: rgba(16, 24, 39, 0.6);
  border: 1.2px solid var(--color-gold);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
  animation: subtle-glow 3s infinite alternate;
}

.liturgy-tag:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 15px var(--color-gold-glow);
}

@keyframes subtle-glow {
  from { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
  to { box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
}

.liturgy-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--dot-color, #fff);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--dot-color, #fff);
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: 24px;
  padding: 60px 0 120px;
}

.bento-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 40px;
  transition: all 0.5s cubic-bezier(0.2, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.bento-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.bento-card:hover::before {
  opacity: 1;
}

.card-large { grid-column: span 8; grid-row: span 3; }
.card-medium { grid-column: span 4; grid-row: span 3; }
.card-small { grid-column: span 4; grid-row: span 2; }

/* Buttons */
.btn-premium {
  padding: 16px 32px;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--color-gold);
  color: #101827;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
}

/* Sacred Quotes Styling */
.sacred-quote-container {
  margin-top: 20px;
  text-align: left;
}

.sacred-quote-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: #fff;
  font-style: italic;
  margin-bottom: 12px;
}

.sacred-cite {
  display: block;
  font-size: 0.85rem;
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-weight: 500;
  text-align: right;
}

/* Daily Mass Tab Styles */
.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.tab-group-mini {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.tab-mini {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tab-mini.active {
  background: var(--color-gold);
  color: var(--color-primary);
}

.tab-mini:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}


/* Feed Styling (Blogger Integration) */
.feed-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.feed-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
  transition: all 0.3s;
}

.feed-item:last-child { border-bottom: none; }

.feed-item a {
  text-decoration: none;
  display: block;
}

.feed-item h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 5px;
  transition: color 0.3s;
  line-height: 1.4;
}

.feed-item:hover h3 {
  color: var(--color-gold);
}

.feed-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

.link-more {
  display: inline-block;
  margin-top: 25px;
  color: var(--color-gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.footer-bottom a {
  color: var(--color-gold);
  text-decoration: none;
  margin-right: 20px;
  transition: opacity 0.3s;
  opacity: 0.8;
}

.footer-bottom a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Responsive */
.reader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  align-items: center;
  justify-content: center;
}

.reader-overlay.active {
  display: flex;
  opacity: 1;
}

.footer-bottom a {
  color: var(--color-gold) !important;
  text-decoration: none;
  margin-right: 15px;
  transition: opacity 0.3s;
  opacity: 0.7;
}

.footer-bottom a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Prayer Detail View Styles */
.prayer-section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-gold);
  margin: 2.5rem 0 1rem 0;
  border-left: 3px solid var(--color-gold);
  padding-left: 15px;
}

.prayer-section-content {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.9;
}

.prayer-instruction {
  display: block;
  font-style: italic;
  color: #ff6b6b;
  font-size: 0.95rem;
  margin: 1rem 0;
  opacity: 0.8;
}

.symbol {
  font-weight: bold;
  margin-right: 5px;
}

.symbol.leader { color: var(--color-gold); } /* ╋ 인도자 */
.symbol.all { color: #5dade2; }    /* ◎ 모두 */
.symbol.reader { color: #f4d03f; } /* ○ 선창자 */
.symbol.people { color: #58d68d; } /* ● 신자들 */

.related-section {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--glass-border);
}

.related-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-link {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
  border: 1px solid var(--glass-border);
}

.related-link:hover {
  background: var(--color-gold);
  color: var(--color-primary);
  transform: translateY(-2px);
}

