/* ============================================
   RITUAIS PAGE
   ============================================ */

/* Reset global main section glassmorphism */
#rituais-page section {
  background: none;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
}

#rituais-page section:hover {
  border-color: transparent;
}

/* ===== INTRO ===== */
.rituais-intro {
  max-width: 780px;
  margin: 0 auto 1rem;
  text-align: center;
}

.rituais-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.rituais-intro p {
  color: rgba(248, 250, 252, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== LUNAR WIDGET ===== */
#lunar-phase-widget {
  max-width: 900px;
  margin: 2.5rem auto 3rem;
  padding: 0 1rem;
}

.lw-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.9), rgba(10, 10, 20, 0.85));
  border: 1px solid rgba(176, 163, 215, 0.3);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.lw-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(176, 163, 215, 0.06), transparent 70%);
  pointer-events: none;
}

/* Phase-specific accent colors */
.lw-card[data-phase="cheia"] {
  border-color: rgba(255, 210, 80, 0.35);
}
.lw-card[data-phase="cheia"]::before {
  background: radial-gradient(ellipse, rgba(255, 210, 80, 0.07), transparent 70%);
}
.lw-card[data-phase="crescente"] {
  border-color: rgba(140, 190, 255, 0.3);
}

/* ===== MOON COLUMN ===== */
.lw-moon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.lw-emoji {
  font-size: 5.5rem;
  line-height: 1;
  display: block;
}

.lw-cycle-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.lw-cycle-fill {
  height: 100%;
  background: linear-gradient(90deg, #b0a3d7, #c0b3e7);
  border-radius: 50px;
  transition: width 0.5s ease;
}

.lw-card[data-phase="cheia"] .lw-cycle-fill {
  background: linear-gradient(90deg, #ffd950, #ffeb80);
}

.lw-cycle-label {
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.5);
  margin: 0;
}

.lw-next-label {
  font-size: 0.82rem;
  color: rgba(248, 250, 252, 0.65);
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

.lw-next-label strong {
  color: #b0a3d7;
}

/* ===== INFO COLUMN ===== */
.lw-info-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lw-phase-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #f8fafc;
  margin: 0;
}

.lw-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lw-keyword {
  background: rgba(176, 163, 215, 0.15);
  border: 1px solid rgba(176, 163, 215, 0.3);
  color: #c0b3e7;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}

.lw-card[data-phase="cheia"] .lw-keyword {
  background: rgba(255, 210, 80, 0.12);
  border-color: rgba(255, 210, 80, 0.3);
  color: #ffd950;
}

.lw-energia {
  color: rgba(248, 250, 252, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.lw-card-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(176, 163, 215, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.lw-card-img {
  width: 48px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lw-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lw-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248, 250, 252, 0.5);
}

.lw-card-name {
  color: #f8fafc;
  font-size: 0.95rem;
}

.lw-ritual {
  background: rgba(176, 163, 215, 0.08);
  border-left: 3px solid #b0a3d7;
  border-radius: 0 10px 10px 0;
  padding: 0.875rem 1rem;
}

.lw-card[data-phase="cheia"] .lw-ritual {
  border-left-color: #ffd950;
  background: rgba(255, 210, 80, 0.06);
}

.lw-ritual-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b0a3d7;
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.lw-card[data-phase="cheia"] .lw-ritual-title {
  color: #ffd950;
}

.lw-ritual-text {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.6;
  margin: 0;
}

/* ===== POSTS SECTION ===== */
.rituais-section {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.rituais-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: #f8fafc;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(176, 163, 215, 0.2);
}

.rituais-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.ritual-post-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: rgba(176, 163, 215, 0.06);
  border: 1px solid rgba(176, 163, 215, 0.18);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.ritual-post-card:hover {
  background: rgba(176, 163, 215, 0.12);
  border-color: rgba(176, 163, 215, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ritual-post-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.ritual-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
}

.ritual-post-desc {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.65);
  line-height: 1.5;
}

/* ===== CTA ===== */
.rituais-cta {
  max-width: 900px;
  margin: 1rem auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rituais-cta-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(176, 163, 215, 0.07);
  border: 1px solid rgba(176, 163, 215, 0.2);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.rituais-cta-card:hover {
  background: rgba(176, 163, 215, 0.13);
  border-color: rgba(176, 163, 215, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176, 163, 215, 0.1);
}

.rituais-cta-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.rituais-cta-text strong {
  display: block;
  color: #f8fafc;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.rituais-cta-text span {
  color: rgba(248, 250, 252, 0.6);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .lw-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .lw-moon-col {
    gap: 0.6rem;
  }

  .lw-emoji {
    font-size: 4.5rem;
  }

  .lw-cycle-bar {
    max-width: 140px;
    margin: 0 auto;
  }

  .lw-keywords {
    justify-content: center;
  }

  .lw-ritual {
    text-align: left;
  }

  .rituais-cta {
    grid-template-columns: 1fr;
  }

  .rituais-posts-grid {
    grid-template-columns: 1fr;
  }
}
