/* HeroUI Design System for Rabbit Farm Nigeria */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Core HeroUI Brand Color Tokens (Signature Logo Forest Green) */
  --heroui-primary: #15803d; /* Rich Emerald / Forest Green */
  --heroui-primary-hover: #166534; /* Deep Forest Green */
  --heroui-primary-light: #f0fdf4; /* Soft Mint Green */
  --heroui-secondary: #0f766e; /* Deep Teal / Forest */
  --heroui-secondary-hover: #115e59;
  --heroui-secondary-light: #f0fdfa;
  --heroui-foreground: #0f172a;
  --heroui-muted: #64748b;
  --heroui-background: #ffffff;
  --heroui-content1: #ffffff;
  --heroui-content2: #f8fafc;
  --heroui-content3: #f1f5f9;
  --heroui-default-300: #cbd5e1;
  --heroui-default-200: #e2e8f0;
  --heroui-default-100: #f8fafc;
  --heroui-success: #15803d;
  --heroui-success-light: #ecfdf5;
  --heroui-warning: #d97706;
  --heroui-warning-light: #fffbeb;
  --heroui-danger: #dc2626;
  --heroui-danger-light: #fef2f2;
  
  /* Brand Gradients */
  --heroui-gradient-primary: linear-gradient(135deg, #166534 0%, #15803d 50%, #0f766e 100%);
  --heroui-gradient-subtle: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  --heroui-gradient-dark: linear-gradient(135deg, #052e16 0%, #0f172a 100%);
  --heroui-gradient-success: linear-gradient(135deg, #15803d 0%, #059669 100%);

  /* Typography - Poppins */
  --font-body: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type Scale */
  --text-xl: 24px;
  --text-large: 18px;
  --text-medium: 15px;
  --text-small: 13px;
  --text-tiny: 11px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --space-8: 40px;
  --space-10: 56px;

  /* Radius */
  --radius-small: 6px;
  --radius-medium: 10px;
  --radius-large: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-small: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 4px 12px -2px rgba(21, 128, 61, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-large: 0 10px 25px -5px rgba(21, 128, 61, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 4px 14px 0 rgba(21, 128, 61, 0.3);

  /* Motion */
  --motion-default: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--heroui-foreground);
  background-color: #f8fafc;
  line-height: 1.6;
  font-size: var(--text-medium);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Heading Typography */
h1, .h1 {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--heroui-foreground);
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heroui-foreground);
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heroui-foreground);
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--heroui-foreground);
}

a {
  color: var(--heroui-primary);
  text-decoration: none;
  transition: color var(--motion-default);
}

a:hover {
  color: var(--heroui-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Header & Glassmorphism Navbar */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--motion-default);
}

.topbar-ticker {
  background: #0f172a;
  color: #f8fafc;
  font-size: 11px;
  padding: 6px 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.topbar-ticker a {
  color: #38bdf8;
  text-decoration: underline;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.navbar-brand img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  padding: 7px 14px;
  border-radius: var(--radius-medium);
  transition: all var(--motion-default);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link i {
  display: none !important;
}

.nav-link:hover {
  color: var(--heroui-primary);
  background: var(--heroui-primary-light);
}

.nav-link.active {
  color: var(--heroui-primary);
  background: var(--heroui-primary-light);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--heroui-default-200);
  border-radius: var(--radius-small);
  padding: 7px 10px;
  font-size: 16px;
  color: var(--heroui-foreground);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--motion-default);
}

.mobile-menu-toggle:hover {
  background: var(--heroui-content2);
}

/* Mobile Drawer Overlay */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 1999;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 250ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--heroui-default-200);
}

.mobile-drawer-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  border-radius: var(--radius-small);
  transition: all var(--motion-default);
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: var(--heroui-primary-light);
  color: var(--heroui-primary);
  font-weight: 600;
}

.mobile-drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--heroui-default-200);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

/* HeroUI Smart Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: var(--radius-medium);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--motion-default);
  text-decoration: none;
  line-height: 1.3;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: var(--radius-small);
}

.btn-lg {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-medium);
}

.btn-primary {
  background: var(--heroui-primary);
  color: #ffffff !important;
  box-shadow: 0 2px 10px 0 rgba(0, 111, 238, 0.25);
}

.btn-primary:hover {
  background: var(--heroui-primary-hover);
  box-shadow: 0 4px 14px rgba(0, 111, 238, 0.35);
}

.btn-secondary {
  background: var(--heroui-secondary);
  color: #ffffff !important;
  box-shadow: 0 2px 10px 0 rgba(120, 40, 200, 0.25);
}

.btn-secondary:hover {
  background: var(--heroui-secondary-hover);
}

.btn-gradient {
  background: var(--heroui-gradient-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 111, 238, 0.25);
}

.btn-gradient:hover {
  opacity: 0.95;
  box-shadow: 0 6px 16px rgba(120, 40, 200, 0.35);
}

.btn-outline {
  background: transparent;
  color: #334155;
  border-color: var(--heroui-default-300);
}

.btn-outline:hover {
  background: var(--heroui-content3);
  border-color: #94a3b8;
  color: var(--heroui-foreground);
}

.btn-success {
  background: var(--heroui-success);
  color: #ffffff !important;
}

.btn-danger {
  background: var(--heroui-danger);
  color: #ffffff !important;
}

/* Badge / Pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-primary { background: var(--heroui-primary-light); color: var(--heroui-primary); }
.badge-secondary { background: var(--heroui-secondary-light); color: var(--heroui-secondary); }
.badge-success { background: var(--heroui-success-light); color: #15803d; }
.badge-warning { background: var(--heroui-warning-light); color: #b45309; }
.badge-danger { background: var(--heroui-danger-light); color: var(--heroui-danger); }
.badge-verified { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; font-weight: 600; }

/* Cards & Surfaces */
.card {
  background: var(--heroui-content1);
  border-radius: var(--radius-medium);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-small);
  transition: transform var(--motion-default), box-shadow var(--motion-default), border-color var(--motion-default);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  border-color: #cbd5e1;
}

.card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-large);
  border-color: #94a3b8;
}

.card-body {
  padding: 16px;
}

.card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--heroui-default-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-footer {
  padding: 12px 16px;
  background: var(--heroui-content2);
  border-top: 1px solid var(--heroui-default-200);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at top right, rgba(21, 128, 61, 0.08), transparent 45%),
              radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.05), transparent 45%),
              #ffffff;
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--heroui-default-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--heroui-foreground);
  margin-bottom: 10px;
}

.hero-title span {
  background: var(--heroui-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--heroui-muted);
  margin-bottom: 18px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-5);
  background: #ffffff;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--heroui-default-200);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--heroui-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: var(--text-tiny);
  font-weight: 600;
  color: var(--heroui-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Safe Trading Notice Banner */
.safety-banner {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-medium);
  margin: var(--space-5) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  box-shadow: var(--shadow-small);
}

.safety-banner-icon {
  color: #d97706;
  font-size: 24px;
  flex-shrink: 0;
}

.safety-banner-title {
  font-weight: 700;
  font-size: var(--text-small);
  color: #92400e;
  margin-bottom: 2px;
}

.safety-banner-text {
  font-size: var(--text-tiny);
  color: #b45309;
  line-height: 1.5;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

/* Directory Card */
.farmer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.farmer-cover {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: #cbd5e1;
}

.farmer-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.farmer-card:hover .farmer-cover img {
  transform: scale(1.05);
}

.farmer-state-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(17, 24, 28, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-tiny);
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.farmer-info {
  padding: var(--space-4);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.farmer-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--heroui-foreground);
  margin-bottom: 4px;
  line-height: 1.3;
}

.farmer-owner {
  font-size: var(--text-tiny);
  color: var(--heroui-muted);
  margin-bottom: var(--space-2);
}

.farmer-breeds {
  font-size: var(--text-tiny);
  color: #475569;
  background: var(--heroui-content2);
  padding: 6px 10px;
  border-radius: var(--radius-small);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.farmer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--heroui-default-200);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--heroui-foreground);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-small);
  padding: 12px 16px;
  border-radius: var(--radius-medium);
  border: 1px solid var(--heroui-default-300);
  background: #ffffff;
  color: var(--heroui-foreground);
  transition: border-color var(--motion-default), box-shadow var(--motion-default);
  outline: none;
}

.form-control:focus {
  border-color: var(--heroui-primary);
  box-shadow: 0 0 0 3px rgba(0, 111, 238, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Forum Boards (Nairaland Style) */
.forum-board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--heroui-default-200);
  transition: background var(--motion-default);
}

.forum-board-row:hover {
  background: #f8fafc;
}

.forum-topic-item {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--heroui-default-200);
  transition: background var(--motion-default);
}

.forum-topic-item:hover {
  background: #f8fafc;
}

.forum-topic-title {
  font-size: var(--text-medium);
  font-weight: 700;
  color: var(--heroui-foreground);
  margin-bottom: 4px;
}

.forum-topic-title:hover {
  color: var(--heroui-primary);
}

.forum-topic-meta {
  font-size: var(--text-tiny);
  color: var(--heroui-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Section Title */
.section-header {
  margin-bottom: var(--space-6);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--heroui-foreground);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--text-small);
  color: var(--heroui-muted);
  margin-top: 4px;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: var(--space-10) 0 var(--space-6);
  margin-top: var(--space-10);
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-title {
  color: #f8fafc;
  font-size: var(--text-medium);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: #94a3b8;
  font-size: var(--text-small);
  transition: color var(--motion-default);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-tiny);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25d366;
  color: #ffffff !important;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  font-size: 28px;
  transition: transform var(--motion-default), box-shadow var(--motion-default);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Alert Flashes */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-medium);
  margin-bottom: var(--space-4);
  font-size: var(--text-small);
  font-weight: 500;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Sidebar & Detail Layout Grids */
.layout-sidebar-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.layout-sidebar-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.layout-sidebar-grid-equal {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* Article Content Formatting */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 32px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-medium);
  margin: 16px 0;
  display: block;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content h2, .article-content h3, .article-content h4 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-content iframe, .article-content table {
  max-width: 100% !important;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-sidebar-grid,
  .layout-sidebar-grid-2,
  .layout-sidebar-grid-equal {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }
  
  .navbar-nav { display: none !important; }
  .navbar .nav-actions .btn-gradient,
  .navbar .nav-actions .btn-outline { display: none; }
  .mobile-menu-toggle { display: inline-flex !important; }
}

@media (max-width: 768px) {
  .topbar-ticker { display: none; }
  .navbar { height: 56px; }
  .navbar-brand img { height: 28px; }
  .hero-title, h1, .h1 { font-size: 24px; }
  .section-title, h2, .h2 { font-size: 20px; }
  h3, .h3 { font-size: 16px; }
  article.card { padding: 16px !important; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
  .btn { padding: 6px 12px; font-size: 12px; }
}

