/* graha_peyarchi.css - Graha Peyarchi (Planetary Transit) Styles */
/* Mobile-first design for upcoming planetary transits feature */

/* ─────────────────────────────────────────────────────────────────────────────
   Base Wrapper
   ───────────────────────────────────────────────────────────────────────────── */
.gp-wrapper {
  min-height: 100vh;
  padding: 1rem 0 2rem;
}

.gp-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Breadcrumb
   ───────────────────────────────────────────────────────────────────────────── */
.gp-page .breadcrumb-nav {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.gp-page .breadcrumb-nav a {
  color: #7b2cbf;
  text-decoration: none;
}

.gp-page .breadcrumb-nav a:hover {
  text-decoration: underline;
}

.gp-page .breadcrumb-nav .sep {
  margin: 0 0.3rem;
  color: #999;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Header
   ───────────────────────────────────────────────────────────────────────────── */
.gp-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gp-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4a1a6b;
  margin: 0 0 0.5rem;
}

.gp-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Empty State
   ───────────────────────────────────────────────────────────────────────────── */
.gp-empty {
  text-align: center;
  padding: 2rem;
  background: #fff3cd;
  border-radius: 8px;
  color: #856404;
  margin-bottom: 1.5rem;
}

.gp-empty .error-detail {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: #721c24;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Events Grid
   ───────────────────────────────────────────────────────────────────────────── */
.gp-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .gp-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Event Card
   ───────────────────────────────────────────────────────────────────────────── */
.gp-event-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 2px solid #7b2cbf;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gp-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Planet-specific card borders matching header colors */
.gp-card--saturn {
  border-color: #2c3e50;
}

.gp-card--jupiter {
  border-color: #b8860b;
}

.gp-card--rahu {
  border-color: #1a1a2e;
}

.gp-card--ketu {
  border-color: #8b0000;
}

.gp-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #7b2cbf 0%, #9c4dcc 100%);
  color: #fff;
}

/* Planet-specific header colors */
.gp-card--saturn .gp-card-header {
  background: linear-gradient(135deg, #2c3e50 0%, #4a5568 100%);
}

.gp-card--jupiter .gp-card-header {
  background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
}

.gp-card--rahu .gp-card-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.gp-card--ketu .gp-card-header {
  background: linear-gradient(135deg, #8b0000 0%, #b22222 100%);
}

.gp-card-header .gp-emoji {
  font-size: 1.5rem;
}

.gp-card-header .gp-graha-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.gp-card-header .gp-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.gp-card-body {
  padding: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Current Position
   ───────────────────────────────────────────────────────────────────────────── */
.gp-current {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #666;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.gp-current .gp-label {
  color: #888;
}

.gp-current .gp-value {
  font-weight: 600;
  color: #333;
}

.gp-current .gp-degree {
  font-size: 0.8rem;
  color: #999;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Transit Row
   ───────────────────────────────────────────────────────────────────────────── */
.gp-transit {
  margin-bottom: 0.75rem;
}

.gp-transit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.gp-from-box,
.gp-to-box {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  min-width: 70px;
  text-align: center;
}

.gp-from-box {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.gp-to-box {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
}

.gp-rasi-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.gp-from-box .gp-rasi-label {
  color: #555;
}

.gp-to-box .gp-rasi-label {
  color: #2e7d32;
}

.gp-arrow-icon {
  font-size: 1.5rem;
  color: #7b2cbf;
  font-weight: bold;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DateTime Display
   ───────────────────────────────────────────────────────────────────────────── */
.gp-datetime {
  text-align: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.05) 0%, rgba(156, 77, 204, 0.05) 100%);
  border-radius: 8px;
  border: 1px dashed rgba(123, 44, 191, 0.2);
}

.gp-dt-label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.25rem;
}

.gp-dt-value {
  font-size: 1rem;
  font-weight: 600;
  color: #4a1a6b;
}

.gp-dt-value .gp-time {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  margin-top: 0.2rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Meta (Computed At)
   ───────────────────────────────────────────────────────────────────────────── */
.gp-meta {
  text-align: center;
  color: #999;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Navigation Buttons (equal width like other report pages)
   ───────────────────────────────────────────────────────────────────────────── */
.gp-bottom-ctas {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.gp-bottom-ctas .btn-back {
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e0c7ff;
  background: #faf5ff;
  color: #4b2166;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.gp-bottom-ctas .btn-back:hover {
  background: #f3e8ff;
  box-shadow: 0 2px 8px rgba(123, 44, 191, 0.16);
  transform: translateY(-1px);
  color: #4b2166;
  text-decoration: none;
}

@media (max-width: 520px) {
  .gp-bottom-ctas {
    flex-direction: column;
    gap: 0.6rem;
  }
  .gp-bottom-ctas .btn-back {
    width: 100%;
    max-width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Disclaimer
   ───────────────────────────────────────────────────────────────────────────── */
.gp-disclaimer {
  margin-top: 1rem;
  padding: 8px 12px;
  font-size: 0.65rem;
  color: #4a3f6a;
  background: #f5f0ff;
  border-left: 4px solid #7b2cbf;
  border-radius: 6px;
  text-align: center;
  line-height: 1.4;
}

.gp-disclaimer strong {
  color: #5e2a9e;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Mobile Optimizations
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .gp-title {
    font-size: 1.2rem;
  }
  
  .gp-subtitle {
    font-size: 0.8rem;
  }
  
  .gp-card-header {
    padding: 0.6rem 0.8rem;
  }
  
  .gp-card-header .gp-emoji {
    font-size: 1.3rem;
  }
  
  .gp-card-header .gp-graha-name {
    font-size: 1rem;
  }
  
  .gp-from-box,
  .gp-to-box {
    padding: 0.4rem 0.6rem;
    min-width: 60px;
  }
  
  .gp-rasi-label {
    font-size: 0.8rem;
  }
  
  .gp-bottom-ctas .btn-back {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}
