/*
Theme Name: Plant Theme v1
Description: Custom plant-themed WordPress website
Author: Eric Johnson
Version: 1.0
*/

/* Global typography (matches front-page) */
html, body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.6;
	color: #333;
	margin: 0;
	padding: 0;
}

/* Box-sizing reset to prevent layout overflow */
*, *::before, *::after {
	box-sizing: border-box;
}

/* Ensure form controls inherit the font */
input, textarea, select, button {
	font-family: inherit;
	font-size: 1rem;
}

/* Contact page font guard: ensure all text inherits global font */
.contact-page,
.contact-page p,
.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page label,
.contact-page input,
.contact-page textarea,
.contact-page button {
	font-family: inherit !important;
}

	/* Mobile spacing adjustments to prevent right-edge clipping */
	@media (max-width: 768px) {
		.contact-container { padding-left: 1rem; padding-right: 1rem; }
		.contact-form { padding: 1.5rem; }
	}

/* Plant entry styling */
.plant-entry { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:1.25rem; box-shadow:0 12px 30px rgba(0,0,0,0.06); }
.plant-entry h3 { color:#2f855a; margin:.2rem 0 1rem; }
.plant-panel { background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%); border:1px solid #e3e8ff; border-radius:12px; padding:1rem; box-shadow:0 8px 20px rgba(0,0,0,0.06); }
.plant-panel h4 { margin:.2rem 0 .5rem; color:#2f855a; }
.plant-photo { border:2px dashed #cbd5e0; border-radius:12px; padding:1rem; color:#718096; text-align:center; }
.plant-entry ul { margin-top:.25rem; }
.plant-entry li strong { color:#2d3748; }

/* Single Plant Page Styling */
.single-plant { 
  min-height: 100vh; 
  background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
  padding: 0;
  margin: 0;
}

.plant-hero {
  position: relative;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  overflow: hidden;
  margin-top: 0;
  box-shadow: 0 20px 40px rgba(72, 187, 120, 0.3);
}

.plant-hero-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
              linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%), 
              linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
  background-size: 20px 20px;
  animation: float 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.plant-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.plant-type-tags {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.plant-title {
  font-size: 3.5rem;
  margin: 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
}

.plant-scientific {
  font-style: italic;
  font-size: 1.3rem;
  opacity: 0.9;
  margin: 0.5rem 0 1.5rem;
}

.plant-excerpt {
  font-size: 1.2rem;
  opacity: 0.95;
  line-height: 1.7;
  margin: 0;
}

.plant-image-section {
  padding: 2rem 0;
  background: white;
}

.plant-image-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.plant-featured-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border: 1px solid #e2e8f0;
}

.plant-content-section {
  background: white;
  padding: 3rem 0;
}

.plant-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2d3748;
}

.plant-meta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.plant-meta-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.plant-meta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  background: #edf2f7;
}

.meta-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meta-content h4 {
  margin: 0 0 0.25rem;
  color: #2f855a;
  font-size: 1.1rem;
  font-weight: 600;
}

.meta-content p {
  margin: 0;
  color: #4a5568;
}

.plant-fun-fact {
  background: linear-gradient(135deg, #fff5b7 0%, #fef9c3 100%);
  border: 2px solid #fbbf24;
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

.plant-fun-fact h3 {
  color: #92400e;
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.plant-fun-fact p {
  color: #78350f;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .plant-title { font-size: 2.5rem; }
  .plant-hero { padding: 2.5rem 0; }
  .plant-meta-cards { grid-template-columns: 1fr; }
  .plant-container { padding: 0 1rem; }
}

/* Plant Gallery */
.plant-gallery-section { margin-top: 2.5rem; }
.plant-gallery-title { text-align: center; color: #2d3748; margin: 0 0 1rem; }
.plant-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.plant-gallery-item { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.plant-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plant-gallery-empty { text-align: center; color: #718096; }

/* Single plant content headings */
.single-plant .entry-content h3 { text-align: center; color: #2d3748; }
