/* ============================================
   LEMON DOJO — Subpage Styles
   Shared styles for all pages except homepage.
   Replaces per-page Tailwind CDN usage.
   ============================================ */

/* ============================================
   PAGE LAYOUT
   ============================================ */

.page-content {
  padding-top: 80px;
}

.page-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-section-narrow {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.page-section-wide {
  padding: 80px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   PAGE HERO — Full-height hero for subpages
   ============================================ */

.subpage-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.subpage-hero-centered {
  align-items: center;
  text-align: center;
}

.subpage-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.subpage-hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subpage-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), rgba(10, 10, 18, 0.4), transparent);
  z-index: 1;
}

.subpage-hero .hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom right, rgba(232, 200, 64, 0.12), transparent);
  z-index: 1;
}

.subpage-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.subpage-hero .hero-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lemon-gold);
  margin-bottom: 16px;
}

.subpage-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 16px;
}

.subpage-hero .hero-subtitle {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 600px;
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */

.content-block {
  margin-bottom: 48px;
}

.content-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block strong {
  color: var(--text);
  font-weight: 500;
}

.content-block em {
  font-family: var(--font-headline);
  font-size: 1.1em;
  color: var(--text);
}

/* Pull quotes */
.pull-quote {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--lemon-gold);
  line-height: 1.5;
  padding: 32px 0;
  border-top: 1px solid rgba(232, 200, 64, 0.15);
  border-bottom: 1px solid rgba(232, 200, 64, 0.15);
  margin: 48px 0;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   GRIDS
   ============================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================
   CARDS — Extended for subpages
   ============================================ */

.card-lg {
  background: rgba(240, 236, 228, 0.03);
  border: 1px solid rgba(240, 236, 228, 0.08);
  padding: 40px;
  transition: all 0.4s ease;
}

.card-lg:hover {
  border-color: rgba(232, 200, 64, 0.3);
  background: rgba(240, 236, 228, 0.05);
  box-shadow: 0 0 20px rgba(232, 200, 64, 0.08);
}

.card-lg h3 {
  margin-bottom: 12px;
}

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

.card-lg .card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--lemon-gold);
}

/* Emotion character cards */
.emotion-card {
  background: rgba(240, 236, 228, 0.03);
  border: 1px solid rgba(240, 236, 228, 0.08);
  padding: 32px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s ease;
  display: block;
}

.emotion-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-color, rgba(240, 236, 228, 0.2));
  box-shadow: 0 0 30px rgba(var(--card-color-rgb, 240, 236, 228), 0.1);
}

.emotion-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
}

.emotion-card h3 {
  margin-bottom: 8px;
}

.emotion-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   TAGS / PILLS
   ============================================ */

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(232, 200, 64, 0.25);
  background: rgba(232, 200, 64, 0.08);
  color: var(--lemon-gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(232, 200, 64, 0.15);
  border-color: rgba(232, 200, 64, 0.4);
  opacity: 1;
}

.tag.active {
  background: var(--lemon-gold);
  color: var(--bg);
  border-color: var(--lemon-gold);
}

.tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* ============================================
   TECHNIQUE / REMEDY CARDS (The Dojo)
   ============================================ */

.remedy-card {
  background: rgba(240, 236, 228, 0.03);
  border: 1px solid rgba(240, 236, 228, 0.08);
  padding: 28px;
  transition: all 0.4s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.remedy-card:hover {
  border-color: rgba(232, 200, 64, 0.3);
  box-shadow: 0 0 20px rgba(232, 200, 64, 0.1);
  transform: translateY(-2px);
}

.remedy-card .remedy-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.remedy-card h4 {
  margin-bottom: 8px;
}

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

.remedy-card .remedy-meta {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* Tatami grid background for The Dojo */
.tatami-grid {
  background-image:
    linear-gradient(rgba(232, 200, 64, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 200, 64, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============================================
   BLOG CARDS (Lemonade Notes)
   ============================================ */

.blog-card {
  background: rgba(240, 236, 228, 0.03);
  border: 1px solid rgba(240, 236, 228, 0.08);
  transition: all 0.4s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
  overflow: hidden;
}

.blog-card:hover {
  border-color: rgba(240, 236, 228, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .blog-card-body {
  padding: 24px;
}

.blog-card .blog-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   NEWSLETTER SECTION (reusable)
   ============================================ */

.newsletter-section {
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid rgba(240, 236, 228, 0.06);
}

.newsletter-section h3 {
  margin-bottom: 8px;
}

.newsletter-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(240, 236, 228, 0.06);
  border: 1px solid rgba(240, 236, 228, 0.15);
  border-right: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input:focus {
  border-color: var(--lemon-gold);
}

.newsletter-form input::placeholder {
  color: var(--text-subtle);
}

.newsletter-form button {
  padding: 14px 24px;
  background: var(--lemon-gold);
  border: 1px solid var(--lemon-gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s;
}

.newsletter-form button:hover {
  opacity: 0.85;
}

.newsletter-privacy {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 12px;
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
    gap: 8px;
  }

  .newsletter-form input {
    border-right: 1px solid rgba(240, 236, 228, 0.15);
  }
}

/* ============================================
   AUTHOR CARD
   ============================================ */

.author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(240, 236, 228, 0.03);
  border: 1px solid rgba(240, 236, 228, 0.08);
  margin-top: 48px;
}

.author-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card .author-name {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.author-card .author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   DIVIDERS & DECORATIVE
   ============================================ */

.divider {
  border: none;
  height: 1px;
  background: rgba(240, 236, 228, 0.08);
  margin: 48px 0;
}

.divider-gold {
  background: rgba(232, 200, 64, 0.15);
}

.glow-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
}

.glow-bg-center {
  background: radial-gradient(circle at center, rgba(232, 200, 64, 0.15), transparent 70%);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mt-xl { margin-top: 80px; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 48px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.max-w-narrow { max-width: 720px; }
.max-w-content { max-width: 1100px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================
   MOBILE — Subpage overrides
   ============================================ */

@media (max-width: 768px) {
  .subpage-hero {
    min-height: 40vh;
    padding: 120px 20px 60px;
  }

  .page-section {
    padding: 60px 20px;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
  }
}
