/* ── PyCupFM Custom Theme ─────────────────────────────────── */
/* Beautiful light academic design with vibrant accents       */

:root {
  --md-primary-fg-color: #1a237e;
  --md-primary-fg-color--light: #3949ab;
  --md-primary-fg-color--dark: #0d1642;
  --md-accent-fg-color: #00bfa5;
  --md-typeset-a-color: #1565c0;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #1a237e 0%, #283593 30%, #3949ab 60%, #5c6bc0 100%);
  color: white;
  padding: 3.5rem 2rem;
  border-radius: 16px;
  margin: -0.5rem -0.6rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(26,35,126,0.25);
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  animation: hero-glow 8s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, -20px); }
}
.hero-banner h1 {
  font-size: 2.8rem !important;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  position: relative;
  color: white !important;
}
.hero-banner .hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  position: relative;
}
.hero-banner .hero-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}
.hero-banner .hero-badges img {
  height: 24px;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.feature-card {
  background: white;
  border: 1px solid #e8eaf6;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,35,126,0.12);
  border-color: #c5cae9;
}
.feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.feature-card h3 {
  color: #1a237e !important;
  font-size: 1.05rem;
  margin: 0.3rem 0 0.5rem !important;
}
.feature-card p {
  color: #546e7a;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

/* Estimator Table */
.estimator-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin: 1.5rem 0;
}
.estimator-table thead th {
  background: linear-gradient(135deg, #1a237e, #3949ab);
  color: white !important;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
}
.estimator-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #e8eaf6;
  font-size: 0.88rem;
}
.estimator-table tbody tr:nth-child(odd) {
  background: #f5f7ff;
}
.estimator-table tbody tr:hover {
  background: #e8eaf6;
}
.estimator-table .star {
  color: #ff9100;
  font-weight: bold;
}

/* Output Block */
.output-block {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #1a237e;
  border-radius: 8px;
  padding: 1.2rem;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
  margin: 1rem 0;
  white-space: pre;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Plot Gallery */
.plot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.plot-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
.plot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,35,126,0.15);
}
.plot-card img {
  width: 100%;
  display: block;
}
.plot-card .plot-caption {
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: #37474f;
  border-top: 1px solid #e8eaf6;
  background: #f8f9ff;
}

/* Section Headers */
.section-header {
  background: linear-gradient(90deg, #e8eaf6, transparent);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  margin: 2rem 0 1rem;
  border-left: 4px solid #1a237e;
}
.section-header h2 {
  color: #1a237e !important;
  margin: 0 !important;
  font-size: 1.3rem;
}

/* Install Box */
.install-box {
  background: linear-gradient(135deg, #e8eaf6, #f3e5f5);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
  border: 1px solid #d1c4e9;
}
.install-box code {
  background: #1a237e;
  color: #e8eaf6;
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 1.1rem;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Badges Row */
.badges-row {
  text-align: center;
  margin: 1rem 0 2rem;
}
.badges-row img {
  margin: 0 4px;
}

/* Author Card */
.author-card {
  background: linear-gradient(135deg, #f5f7ff, #ede7f6);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border: 1px solid #d1c4e9;
  text-align: center;
}
.author-card h3 {
  color: #1a237e !important;
  margin-bottom: 0.5rem !important;
}
.author-card p {
  color: #546e7a;
  margin: 0.2rem 0;
}

/* Override default page heading */
.md-content h1 {
  color: #1a237e;
}
