/* ===================================================
   FitoAlimurgia — Plant Detail Page Styles
   plant.css v1  •  Modern, clean, on-brand
   =================================================== */

/* ---- Page wrapper ---- */
.plant-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ---- Hero header ---- */
.pd-header {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
  color: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.pd-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.pd-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.pd-sci {
  font-size: 1.05rem;
  color: var(--green-300);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.pd-sci em {
  font-style: italic;
  color: var(--green-200);
}

.pd-it {
  font-size: 0.95rem;
  color: var(--green-400);
  position: relative;
  z-index: 1;
}

.pd-it strong {
  color: var(--white);
  font-weight: 600;
}

/* ---- Grid layout ---- */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.pd-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pd-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

/* ---- Cards ---- */
.pd-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pd-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pd-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-700);
  margin: 20px 0 10px;
}

.pd-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.pd-card ul {
  margin: 10px 0 0 4px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.pd-card ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.pd-card ul li::marker {
  color: var(--green-500);
}

/* ---- Sections inside cards ---- */
.pd-section {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pd-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pd-section strong {
  color: var(--text-primary);
  font-weight: 600;
  flex-shrink: 0;
}

/* ---- Edibility meter ---- */
.edibility-meter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.edibility-meter .ed-bar {
  height: 10px;
  border-radius: 999px;
  flex: 1;
  background: linear-gradient(90deg, var(--green-400) 0%, var(--green-600) 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
  transition: width 0.6s ease;
}

.edibility-meter span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-800);
  min-width: 36px;
  text-align: right;
}

/* ---- Harvest calendar ---- */
.calendar-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-bottom: 18px;
}

.month {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 2px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--gray-400);
  transition: all var(--transition);
}

.month.active {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white);
  box-shadow: 0 2px 6px rgba(45,106,79,0.25);
}

/* ---- Related plants sidebar ---- */
.pd-sidebar .pd-card {
  padding: 24px;
}

.pd-sidebar .pd-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--green-800);
  border-bottom: 2px solid var(--green-200);
  padding-bottom: 8px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rel-plant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--transition);
}

.rel-plant:hover {
  background: var(--green-100);
  border-color: var(--green-300);
  color: var(--green-800);
  transform: translateX(4px);
}

/* ---- Footer override ---- */
.plant-page ~ .footer,
.plant-page ~ .site-footer {
  margin-top: 0;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .pd-grid {
    grid-template-columns: 1fr;
  }
  .pd-sidebar {
    position: static;
    order: -1;
  }
  .pd-sidebar .pd-card {
    margin-bottom: 20px;
  }
  .pd-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .plant-page {
    padding: 20px 14px 40px;
  }
  .pd-header {
    padding: 28px 22px;
    border-radius: var(--radius-md);
  }
  .pd-header h1 {
    font-size: 1.5rem;
  }
  .pd-card {
    padding: 20px 22px;
    border-radius: var(--radius-md);
  }
  .calendar-row {
    gap: 2px;
  }
  .month {
    font-size: 0.6rem;
    padding: 6px 1px;
  }
  .pd-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ===================================================
   Plant Images - Hero & Sidebar
   Added 2026-04-30
   =================================================== */
.pd-hero {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  background: var(--green-900);
}
.pd-hero img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}
.pd-img-sidebar {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  background: var(--green-900);
}
.pd-img-sidebar img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 320px;
}
@media (max-width: 860px) {
  .pd-hero { max-height: 260px; }
  .pd-hero img { max-height: 260px; }
  .pd-img-sidebar { max-height: 240px; }
  .pd-img-sidebar img { max-height: 240px; }
}
