/* Yuanxin V2 - "The Magazine" Aesthetic */
/* Font loading moved to HTML for better performance */

:root {
  /* Palette: "Old Paper & Ink" */
  --bg-paper: #f2f0e9;
  
  --color-ink: #2c2c2c;
  --color-ink-light: #595959;
  
  /* Accents */
  --color-sage: #8da399;
  --color-sage-dark: #6b8278;
  --color-vermilion: #c0392b; /* Chinese Seal Red */
  --color-gold: #c5a47e;

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  --font-chinese: 'Noto Serif SC', serif;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.v2-container {
  max-width: 600px; /* Mobile-first magazine width */
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 50px rgba(0,0,0,0.05);
}

/* ===== HERO POSTER ===== */
.poster-section {
  position: relative;
  height: 85vh; /* Takes up most of the screen */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white;
}

.poster-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.poster-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) sepia(0.1); /* Cinematic look */
}

/* Gradient overlay for readability */
.poster-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.8) 100%);
}

.poster-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-bottom: 2rem;
}

/* Date Header Floating Top */
.poster-date {
  position: absolute;
  top: 2rem;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
  font-family: var(--font-serif);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* The Big Character Design */
.big-char-group {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.big-char {
  font-family: var(--font-chinese);
  font-size: 6rem;
  line-height: 1;
  font-weight: 700;
  opacity: 0.95;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: block;
}

.keyword-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  letter-spacing: 1px;
  display: block;
  margin-top: -1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* The Red Stamp (Seal) */
.fortune-seal {
  position: absolute;
  top: -10px;
  right: -20px;
  width: 60px;
  height: 60px;
  border: 3px solid var(--color-vermilion);
  border-radius: 8px; /* Slightly rounded rect for seal look */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-vermilion);
  font-weight: bold;
  font-family: var(--font-chinese);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transform: rotate(15deg);
  line-height: 1.2;
  text-align: center;
  padding: 4px;
}

.fortune-seal span {
  display: block;
  writing-mode: vertical-rl; /* Vertical text for seal */
  text-orientation: upright;
  letter-spacing: 2px;
}

/* Scroll Indicator */
.scroll-hint {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-5px);}
  60% {transform: translateY(-3px);}
}

/* ===== READING SECTION (Below Fold) ===== */
.reading-section {
  background: var(--bg-paper);
  padding: 3rem 2rem;
  position: relative;
  margin-top: -2rem; /* Overlap slightly */
  border-radius: 24px 24px 0 0;
}

/* Wisdom Quote styling */
.wisdom-block {
  text-align: center;
  margin-bottom: 3rem;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--color-sage);
  opacity: 0.3;
  line-height: 0;
  vertical-align: -1rem;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-ink);
  line-height: 1.5;
  margin: 1rem 0;
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-ink-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.quote-author::before {
  content: "—";
  margin-right: 0.5rem;
  color: var(--color-sage);
}

/* The Daily Practice Card */
.practice-card {
  background: white;
  padding: 2rem;
  border-radius: 2px; /* Sharp corners for paper feel */
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  border-left: 4px solid var(--color-sage);
  margin-bottom: 3rem;
  position: relative;
}

.practice-card::before {
  /* Paper corner fold effect */
  content: '';
  position: absolute;
  top: 0; right: 0;
  border-width: 0 20px 20px 0;
  border-style: solid;
  border-color: #f2f0e9 white;
  box-shadow: -2px 2px 2px rgba(0,0,0,0.05);
}

.practice-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-sage-dark);
  margin-bottom: 1rem;
  display: block;
}

.practice-text {
  font-size: 1.1rem;
  color: var(--color-ink);
  font-weight: 400;
}

/* Auspicious/Inauspicious Minimalist */
.advice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1.5rem 0;
}

.advice-col {
  text-align: center;
}

.advice-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-ink-light);
}

.advice-list {
  font-family: var(--font-chinese); /* Use Serif for these terms */
  font-size: 0.95rem;
}

.advice-list.good { color: #27ae60; }
.advice-list.bad { color: #c0392b; }

/* Action Buttons */
.action-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  background-color: var(--color-ink);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  border-radius: 2px;
}

.btn-primary:hover {
  background-color: black;
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background-color: var(--color-sage);
  cursor: default;
  transform: none;
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-ink-light);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--color-sage);
}

/* Reflection Input - Minimal */
.reflection-minimal {
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--color-sage);
  width: 100%;
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-ink);
  margin-bottom: 2rem;
  resize: none;
}
.reflection-minimal:focus {
  outline: none;
  border-bottom-color: var(--color-ink);
}
