:root {
  --primary-color: #f59e0b;
  --primary-hover: #d97706;
  --primary-light: #fef3c7;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.pro-badge {
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

#screen-container {
  flex: 1;
  padding: 1rem;
  padding-bottom: 80px;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.card-subtitle {
  margin: 0.5rem 0 0 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.plant-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

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

.plant-card.selected {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.plant-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.plant-icon {
  font-size: 2rem;
  margin-right: 0.75rem;
}

.plant-info {
  flex: 1;
}

.plant-name {
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0;
}

.plant-latin {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.875rem;
  margin: 0.25rem 0 0 0;
}

.plant-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.plant-tag {
  background: var(--bg-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.plant-tag.bloom {
  background: #fef3c7;
  color: #92400e;
}

.plant-tag.height {
  background: #dbeafe;
  color: #1e40af;
}

.plant-tag.native {
  background: #d1fae5;
  color: #065f46;
}

.plant-description {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

.pollinators {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.pollinators-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.pollinator-icons {
  font-size: 1.5rem;
}

.filter-section {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.filter-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  background: white;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.filter-chip:hover {
  border-color: var(--primary-color);
}

.filter-chip.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.calendar-view {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.month-column {
  text-align: center;
}

.month-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.month-plants {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.plant-bloom {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem;
  border-radius: 4px;
  font-size: 0.625rem;
  cursor: pointer;
  transition: all 0.2s;
}

.plant-bloom:hover {
  background: var(--primary-hover);
}

.timeline-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.timeline-row:last-child {
  border-bottom: none;
}

.timeline-label {
  font-weight: 600;
  font-size: 0.875rem;
}

.timeline-bar {
  position: relative;
  height: 30px;
  background: var(--bg-light);
  border-radius: 4px;
}

.bloom-segment {
  position: absolute;
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
  font-weight: 600;
}

.my-garden-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.garden-plant-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.garden-plant-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.garden-plant-icon {
  font-size: 2rem;
}

.garden-plant-details h3 {
  margin: 0;
  font-size: 1.125rem;
}

.garden-plant-details p {
  margin: 0.25rem 0 0 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.garden-plant-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--border-color);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-select,
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
  min-width: 60px;
}

.nav-btn.active {
  color: var(--primary-color);
}

.nav-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.nav-label {
  font-size: 0.75rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.empty-state p {
  margin: 0 0 1.5rem 0;
}

.premium-gate {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.premium-gate h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.premium-gate ul {
  text-align: left;
  display: inline-block;
  margin: 1rem 0;
}

.premium-gate li {
  margin-bottom: 0.5rem;
}

.info-box {
  background: #dbeafe;
  border-left: 4px solid #3b82f6;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.info-box h4 {
  margin: 0 0 0.5rem 0;
  color: #1e40af;
}

.info-box p {
  margin: 0;
  color: #1e3a8a;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .calendar-view {
    display: block;
  }

  .month-column {
    margin-bottom: 1rem;
  }

  .timeline-row {
    grid-template-columns: 100px 1fr;
    gap: 0.5rem;
  }

  .plant-grid {
    grid-template-columns: 1fr;
  }
}
