/* CSS Variables - Inspired by joinjovi.com */
:root {
  --bg: #fbfbfd;
  --text-primary: #1d1d1f;
  --text-muted: #86868b;
  --card-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --accent: #34a853; /* Green for plants */
  --accent-hover: #2d8f47;
  --border: rgba(0, 0, 0, 0.04);
  --space-xs: 0.75rem;    /* 12px */
  --space-md: 2rem;       /* 32px */
  --space-lg: 3.25rem;    /* 52px */
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* Header */
header {
  text-align: center;
  padding: var(--space-lg) 1rem 0;
  background: var(--bg);
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #1d1d1f 0%, #1d1d1f 60%, #424245 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.tagline {
  font-size: 1.375rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* Main */
main {
  flex: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0.5rem 1rem 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 1.25rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 500px;
  width: 100%;
  backdrop-filter: blur(20px);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.0625rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  font-family: inherit;
  background: #fafafa;
  letter-spacing: -0.01em;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(52, 168, 83, 0.1);
  background: #ffffff;
}

.search-btn {
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 1.0625rem;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: background 0.2s ease;
}

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

.search-btn:active {
  box-shadow: 0 4px 8px rgba(52, 168, 83, 0.2);
}

.search-btn:disabled {
  background: #c7c7cc;
  cursor: not-allowed;
}

/* Status Messages */
.status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  display: none;
}

.status.success {
  display: block;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.status.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* Search Results */
.search-results {
  background: var(--card-bg);
  border-radius: 1.25rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 500px;
  width: 100%;
  backdrop-filter: blur(20px);
  padding: 2.5rem;
  display: none; /* Hidden by default */
}

.search-results.show {
  display: block;
}

.welcome-message {
  text-align: center;
}

.welcome-message h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.welcome-message p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Footer Content */
.footer-content {
  text-align: center;
  margin-top: 3rem;
  color: rgba(134, 134, 139, 0.8);
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(134, 134, 139, 0.8);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  margin: 0;
  font-weight: 400;
  color: rgba(134, 134, 139, 0.8);
}

/* Responsive Design */

@media (max-width: 768px) {
  header {
    padding: 2.75rem 1rem 0;
  }

  .logo {
    font-size: 3rem;
    margin-bottom: 0.625rem;
  }

  .tagline {
    font-size: 1.25rem;
    padding: 0 1rem;
    line-height: 1.3;
  }

  main {
    padding: 1.75rem 1rem 1.75rem;
  }

  .search-card,
  .search-results {
    padding: 2.5rem 2rem;
    border-radius: 1rem;
  }

  .footer-links {
    gap: 1.75rem;
    margin-bottom: 0.625rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 2.5rem 1rem 0;
  }

  .logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .tagline {
    font-size: 1.125rem;
    line-height: 1.2;
  }

  .search-card,
  .search-results {
    padding: 2rem 1.5rem;
    margin: 0 0.5rem;
  }

  .search-input,
  .search-btn {
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
