/* VetBotic Medication Calculator - Main Stylesheet */
/* Color Palette */
:root {
  --primary-blue: #4A90A4;
  --accent-coral: #FF8A65;
  --success-green: #10B981;
  --warning-amber: #F59E0B;
  --error-red: #EF4444;
  --neutral-gray: #6B7280;
  --white: #FFFFFF;
  --light-bg: #F9FAFB;
  --dark-text: #111827;
  --border-color: #E5E7EB;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2E6C7F 100%);
  color: white;
  padding: 2rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-content {
  text-align: center;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 2.5rem;
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.95;
  font-weight: 400;
}

/* Navigation */
.main-nav {
  background: white;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: block;
}

.nav-links a:hover {
  background: var(--primary-blue);
  color: white;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 1000;
  margin-top: 0.5rem;
  border: 1px solid var(--border-color);
}

.dropdown-content a {
  padding: 0.75rem 1.25rem;
  display: block;
  color: var(--dark-text);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0;
  font-size: 0.9rem;
}

.dropdown-content a:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-content a:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-content a:hover {
  background: var(--light-bg);
  color: var(--primary-blue);
  padding-left: 1.5rem;
}

.dropdown-content a i {
  margin-right: 0.5rem;
  width: 16px;
  text-align: center;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(74, 144, 164, 0.1) 0%, rgba(255, 138, 101, 0.1) 100%);
  padding: 3rem 0;
  text-align: center;
}

.hero-image {
  max-width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  margin-bottom: 2rem;
}

.hero-title {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--neutral-gray);
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Disclaimer Banner */
.disclaimer-banner {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 2px solid var(--warning-amber);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.disclaimer-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.disclaimer-text {
  font-weight: 600;
  color: #92400E;
  margin: 0;
  font-size: 1rem;
}

/* Calculator Section */
.calculator-section {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.calculator-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Form Steps */
.form-step {
  margin-bottom: 2.5rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  background: var(--primary-blue);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-text);
  margin: 0;
}

/* Animal Cards Grid */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.animal-card {
  background: white;
  border: 3px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.animal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(74, 144, 164, 0.2);
}

.animal-card.selected {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, rgba(74, 144, 164, 0.1) 0%, rgba(74, 144, 164, 0.05) 100%);
  box-shadow: 0 4px 16px rgba(74, 144, 164, 0.3);
}

.animal-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.animal-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.animal-weight {
  font-size: 0.85rem;
  color: var(--neutral-gray);
}

/* Form Inputs */
.form-group {
  margin-bottom: 1.5rem;
}

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

.input-with-unit {
  display: flex;
  gap: 1rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
}

.form-input[type="number"] {
  flex: 2;
}

.unit-select {
  flex: 1;
  min-width: 100px;
}

/* Search Input */
.search-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-gray);
  font-size: 1.2rem;
}

.search-input {
  padding-left: 3rem;
}

/* Button */
.btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2E6C7F 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 144, 164, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 164, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-large {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Affiliate Sections */
.affiliate-section {
  background: linear-gradient(135deg, rgba(255, 138, 101, 0.1) 0%, rgba(255, 138, 101, 0.05) 100%);
  border: 2px solid var(--accent-coral);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.affiliate-section h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.affiliate-section p {
  color: var(--neutral-gray);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.btn-affiliate {
  background: linear-gradient(135deg, var(--accent-coral) 0%, #FF6B45 100%);
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 138, 101, 0.3);
}

.btn-affiliate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 138, 101, 0.4);
}

/* FAQ Section */
.faq-section {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-question {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.faq-answer {
  color: var(--neutral-gray);
  margin: 0;
}

/* Bottom Links */
.bottom-section {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.disclaimer-small {
  font-size: 0.9rem;
  color: var(--neutral-gray);
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.bottom-links a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.article-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.article-title {
  color: var(--primary-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.article-excerpt {
  color: var(--neutral-gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.article-link {
  color: var(--accent-coral);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.article-link:hover {
  gap: 0.75rem;
}

/* Glossary */
.glossary-category {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-icon-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-icon-large {
  font-size: 2.5rem;
}

.medication-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.medication-item {
  padding: 0.75rem;
  background: var(--light-bg);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--dark-text);
  transition: all 0.3s ease;
  cursor: pointer;
}

.medication-item:hover {
  background: var(--primary-blue);
  color: white;
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  min-height: 150px;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .animal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .animal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-section {
    padding: 1.5rem;
  }

  .nav-links {
    font-size: 0.9rem;
  }

  .nav-links a {
    padding: 0.5rem 0.75rem;
  }

  .hero-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .animal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .animal-card {
    padding: 1rem 0.5rem;
    min-height: 140px;
  }

  .animal-icon {
    font-size: 2.5rem;
  }

  .animal-name {
    font-size: 0.9rem;
  }

  .bottom-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.hidden {
  display: none;
}
