/* Plant Calendar Styling */

/* Remove purple boundary and extend content to full width */
.post-content, .blog-post-content {
  max-width: 100vw !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  border: none !important;
  background: transparent !important;
}

/* Remove any container boundaries */
.container, .main-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 20px !important;
}

/* Reset table styling to be more natural */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  table-layout: auto;
  background: white;
}

table th, table td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: top;
  word-wrap: break-word;
}

table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* Restore normal image sizing */
table img {
  max-width: 60px;
  max-height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

/* Allow tables to use natural width */
table {
  min-width: fit-content;
}

/* Calendar specific styling */
#watering-calendar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  margin: 20px 0 !important;
}

.calendar-container {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0;
  display: block !important;
  visibility: visible !important;
  font-family: Arial, sans-serif;
}

.calendar-header {
  text-align: center;
  margin-bottom: 20px;
  display: block !important;
}

.calendar-header h3 {
  margin-bottom: 15px;
  color: #333;
}

.calendar-header p {
  margin: 10px 0;
  line-height: 1.6;
}

.calendar-nav {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-nav button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.calendar-nav button:hover {
  background: #45a049;
}

.calendar-nav h4 {
  margin: 0;
  font-size: 1.5em;
  color: #333;
}

/* Ensure calendar grid displays properly */
.calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 1px !important;
  background: #ddd !important;
  border: 1px solid #ddd !important;
  width: 100% !important;
  visibility: visible !important;
}

.calendar-day {
  background: white !important;
  min-height: 120px !important;
  padding: 8px !important;
  position: relative !important;
  border: 1px solid #eee !important;
  overflow-y: auto;
}

.calendar-day.other-month {
  background: #f5f5f5 !important;
  color: #999;
}

.calendar-day.today {
  background: #e3f2fd !important;
  border: 2px solid #2196F3 !important;
}

.day-number {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 14px;
}

.plant-item {
  color: white;
  padding: 2px 6px;
  margin: 2px 0;
  border-radius: 3px;
  font-size: 11px;
  display: block;
  text-decoration: none;
  line-height: 1.2;
  cursor: default;
  transition: background-color 0.2s;
}

.plant-item.current {
  background: #4CAF50;
}

.plant-item.current:hover {
  background: #45a049;
}

.plant-item.residency {
  background: #2196F3;
}

.plant-item.residency:hover {
  background: #1976D2;
}

.plant-item.drought-tolerant {
  background: #FF9800;
}

.plant-item.drought-tolerant:hover {
  background: #F57C00;
}

.plant-item.frequent {
  background: #E91E63;
}

.plant-item.frequent:hover {
  background: #C2185B;
}

.tool-item {
  background: #FF9800;
  color: white;
  padding: 2px 6px;
  margin: 2px 0;
  border-radius: 3px;
  font-size: 11px;
  display: block;
  text-decoration: none;
  line-height: 1.2;
  cursor: default;
  transition: background-color 0.2s;
}

.tool-item:hover {
  background: #F57C00;
}

.weekday-header {
  background: #2196F3 !important;
  color: white !important;
  padding: 12px !important;
  text-align: center !important;
  font-weight: bold !important;
  font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
  .post-content, .blog-post-content {
    padding: 10px !important;
  }
  
  .calendar-container {
    margin: 10px auto;
  }
  
  .calendar-day {
    min-height: 80px !important;
    padding: 4px !important;
  }
  
  .plant-item, .tool-item {
    font-size: 9px;
    padding: 1px 4px;
    margin: 1px 0;
  }
  
  .calendar-nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .calendar-nav h4 {
    font-size: 1.2em;
  }
  
  .calendar-header p {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .weekday-header {
    padding: 8px !important;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .calendar-day {
    min-height: 60px !important;
    padding: 2px !important;
  }
  
  .day-number {
    font-size: 12px;
    margin-bottom: 2px;
  }
  
  .plant-item, .tool-item {
    font-size: 8px;
    padding: 1px 3px;
  }
} 