/* Daily Longevity Report Page
   C:\xampp\htdocs\jathagam.ai\frontend\static\css\reports\daily_longevity_report.css */

.dlr-wrapper {
  background: linear-gradient(135deg, #fdf6ff 0%, #f3eaff 100%);
  border-radius: 16px;
  margin: 8px auto 16px;
}

.dlr-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px;
}

/* Header */

.dlr-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "main date"
    "spacer date";
  gap: 0.6rem;
  align-items: center;
  margin: 8px 0 14px;
}

.dlr-head-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dlr-title {
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 900;
  color: #7b2cbf;
  margin: 0 0 6px;
  text-align: center;
  position: relative;
}

.dlr-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 52px;
  background: linear-gradient(90deg, #ffd54a, #ffd54a 60%, rgba(123, 44, 191, 0));
  border-radius: 2px;
  margin: 6px auto 0;
  opacity: .95;
}

.dlr-title.dlr-glow {
  text-shadow: 0 6px 18px rgba(123, 44, 191, 0.08), 0 2px 6px rgba(123, 44, 191, 0.04);
}

.dlr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dlr-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: #ffffff;
  border: 1px solid #ead8ff;
  color: #4b2166;
  box-shadow: 0 1px 4px rgba(123, 44, 191, 0.12);
}

.dlr-head-side {
  grid-area: date;
  justify-self: end;
  align-self: center;
}

.dlr-date-chip {
  display: inline-block;
  background: rgba(123, 44, 191, 0.08);
  color: #4b2166;
  padding: .24rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 44, 191, 0.18);
  font-weight: 700;
  font-size: .7rem;
}

.dlr-date-chip .icon {
  font-size: 0.9rem;
}

/* Cards */

.dlr-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 16px;
  margin-bottom: 12px;
  border: 1px solid #ead8ff;
  box-shadow: 0 6px 18px rgba(123, 44, 191, 0.04);
}

.dlr-card-main {
  background: #fbf7ff;
}

.dlr-main-anchor {
  font-size: 1rem;
  line-height: 1.8;
  color: #2b1547;
  margin: 0 0 8px;
  font-weight: 600;
}

.dlr-main-question {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #3b1d60;
  margin: 0 0 6px;
}

.dlr-main-jyotish {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #5a3b80;
  margin: 4px 0 0;
}

.dlr-section-title {
  font-size: .96rem;
  font-weight: 800;
  color: #7b2cbf;
  margin: 0 0 8px;
}

.dlr-body-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #49305f;
  margin: 0;
}

.dlr-body-html p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #49305f;
}

.dlr-body-html p:last-child {
  margin-bottom: 0;
}

/* Proverb */

.dlr-proverb-card {
  position: relative;
  margin: 0 0 12px 0;
  padding: .65rem 1rem .65rem 3.6rem;
  background: linear-gradient(180deg,#fff,#fbf8ff);
  border: 1px solid #ead8ff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(123,44,191,0.04);
  overflow: visible;
  display: flex;
  align-items: center;
  min-height: 64px;
}

.dlr-proverb-text {
  margin: 0;
  font-size: .88rem;
  color: #7b2cbf;
  line-height: 1.25;
  font-style: italic;
  padding: 0;
  display: block;
  word-break: break-word;
}

.dlr-proverb-card::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffd54a, rgba(123,44,191,0.08));
  opacity: 0.95;
}

/* Reflection questions */

.dlr-reflection-list {
  padding-left: 1.1rem;
  margin: 0;
}

.dlr-reflection-item {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #3a214f;
  margin: 0 0 6px;
}

.dlr-reflection-item:last-child {
  margin-bottom: 0;
}

/* Gita card */

.dlr-gita-card {
  background: #f8fbff;
}

/* Footer / share */

.dlr-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.dlr-disclaimer {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #6b4a84;
}

.dlr-share-btn {
  font-size: 0.83rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #7b2cbf;
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 3px 10px rgba(123, 44, 191, 0.35);
}

.dlr-share-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 5px rgba(123, 44, 191, 0.25);
}

.dlr-share-msg {
  font-size: 0.78rem;
  margin-top: 4px;
  color: #3b1363;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.dlr-share-msg--visible {
  opacity: 1;
}

/* Empty state */

.dlr-empty-card {
  text-align: left;
}

/* Title glow animation */

.dlr-glow {
  box-shadow: 0 0 0px rgba(123, 44, 191, 0.15);
  animation: dlr-soft-glow 1.5s ease-out;
}

@keyframes dlr-soft-glow {
  0% {
    text-shadow: 0 0 0 rgba(123, 44, 191, 0);
  }
  40% {
    text-shadow: 0 0 12px rgba(123, 44, 191, 0.75);
  }
  100% {
    text-shadow: 0 0 0 rgba(123, 44, 191, 0);
  }
}

/* Mobile tweaks */

@media (max-width: 600px) {
  .dlr-page {
    padding: 10px;
  }

  .dlr-head {
    /* Title on its own row (centered), date on the following row (right-aligned) */
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "main"
      "date";
    align-items: center;
    gap: 0.35rem;
  }

  /* small space between title and date on tight screens */
  .dlr-head-side {
    margin-top: 6px;
  }

  .dlr-footer {
    align-items: flex-start;
  }

  .dlr-footer-right {
    align-self: flex-end;
  }
}

/* Breadcrumb micro (same as daily graha, kept for consistency) */
.breadcrumb-nav.micro {
  margin: 8px 0 6px;
  font-size: 0.75rem;
  color: var(--muted, #6f6a80);
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
}
.breadcrumb-nav.micro a {
  color: var(--brand-700, #6b21a8);
  text-decoration: none;
}
.breadcrumb-nav.micro .sep {
  opacity: .6;
}

/* Generic breadcrumb tweak */
.breadcrumb-nav,
.breadcrumb-nav.micro {
  margin-top: 4px !important;
  margin-bottom: 6px !important;
}

/* Bottom CTAs (reuse style pattern from daily graha) */
.dkr-bottom-ctas {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  align-items: stretch;
}

.dkr-bottom-ctas .btn-back {
  flex: 1 1 0;
  min-width: 0;
  max-width: 340px;
  text-align: center;
}

/* Reuse primary back button used across reports */
.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid #e0c7ff;
  background: #faf5ff;
  color: #4b2166;
  font-size: .85rem;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}

.btn-back:hover {
  background: #f3e8ff;
  box-shadow: 0 2px 8px rgba(123, 44, 191, 0.16);
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .dkr-bottom-ctas {
    flex-direction: column;
    gap: .6rem;
  }
  .dkr-bottom-ctas .btn-back {
    width: 100%;
    max-width: 100%;
  }
}

