/* plant.css */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Header */
h1, h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

/* Plant Grid */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Plant Card */
.plant-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.plant-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Plant Details */
.plant-card .content {
  padding: 15px;
}

.plant-card h2 {
  font-size: 1.2rem;
  color: #27ae60;
  margin-bottom: 8px;
}

.plant-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.back-btn {
      display: inline-block;
      margin-top: 20px;
      padding: 10px 18px;
      background: linear-gradient(135deg, #48bb78, #2f855a);
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      border-radius: 30px;
      text-decoration: none;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(47, 133, 90, 0.2);
    }

    .back-btn:hover {
      background: linear-gradient(135deg, #2f855a, #276749);
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(39, 103, 73, 0.3);
    }

/* Button / Link */
.view-link {
  display: inline-block;
  text-decoration: none;
  background: #27ae60;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s ease;
  font-size: 0.9rem;
}

.view-link:hover {
  background: #219150;
}


/* Responsive wrapper */
#youtube-container {
  position: relative;
  width: 100%;          /* take full width of parent */
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: auto;
  overflow: hidden;
}

/* Make iframe fill the container */
#youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Form styling */
.comment-form {
  max-width: 600px;
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-form label {
  font-weight: bold;
  margin-bottom: 4px;
}

.comment-form input,
.comment-form select,
.comment-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
}

.comment-form input:focus,
.comment-form select:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76,175,80,0.3);
}

.comment-form button {
  background: #4CAF50;
  color: white;
  font-size: 15px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.comment-form button:hover {
  background: #45a049;
}

/* Comment list styling */
.comment-list {
  max-width: 600px;
  margin-top: 20px;
}

.comment-list .comment {
  background: white;
  padding: 12px 15px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.comment strong {
  color: #333;
  font-size: 15px;
}

.comment small {
  color: #777;
  font-size: 12px;
}


/* Optional tweak for small phones */
@media screen and (max-width: 500px) {

  body{
    padding: 0px;
  }
  #youtube-container {
    padding-bottom: 75%; /* taller aspect ratio */
  }

  #remedy-container{
    padding: 10px;
  }

  h1, h3 {
  text-align: center;
  margin-bottom: 10px;
  color: #2c3e50;
  font-size: 1.5rem;
 }
}
