/* Veggie Garden Planner Styles */
:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --secondary: #86efac;
  --accent: #fbbf24;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --border: #e5e7eb;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.app-header {
  background: var(--primary);
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.pro-badge {
  background: var(--accent);
  color: var(--text);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

#screen-container {
  padding: 1rem;
  padding-bottom: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 99;
}

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

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

.nav-btn.add-btn {
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

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

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

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

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

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

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

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

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

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

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

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

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Garden Layout */
.garden-canvas {
  background: #f0f4f0;
  border: 2px dashed var(--border);
  border-radius: 8px;
  min-height: 400px;
  position: relative;
  overflow: auto;
  padding: 1rem;
}

.garden-bed {
  background: #8b7355;
  border: 2px solid #6b5940;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
  min-height: 200px;
  position: relative;
}

.plant-item {
  background: white;
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: move;
  position: absolute;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  user-select: none;
}

.plant-item:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Calendar */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.calendar-item {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.calendar-month {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.calendar-plants {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Companion Planting */
.companion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.companion-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.companion-plant {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.companion-name {
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.companion-good {
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.companion-bad {
  color: var(--danger);
  font-size: 0.875rem;
}

/* Zone Selector */
.zone-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.zone-btn {
  padding: 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s;
}

.zone-btn:hover {
  background: var(--secondary);
  border-color: var(--primary);
}

.zone-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
}

/* Premium Gate */
.premium-gate {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
}

.premium-gate h3 {
  margin-bottom: 1rem;
}

.premium-gate .btn {
  margin-top: 1rem;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

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

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 640px) {
  .calendar-grid, .companion-grid {
    grid-template-columns: 1fr;
  }

  #screen-container {
    padding: 0.75rem;
  }
}
