/* Pet Food Safety Checker Plugin Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --pfsc-blue: #3B82F6;
  --pfsc-pink: #EC4899;
  --pfsc-green: #10B981;
  --pfsc-gray: #64748B;
  --pfsc-peach: #FEF3F2;
  --pfsc-white: #FFFFFF;
  --pfsc-black: #1F2937;
  
  /* Safety Colors */
  --pfsc-safe: #10B981;
  --pfsc-caution: #F59E0B;
  --pfsc-toxic: #EF4444;
  
  /* Gradients */
  --pfsc-gradient: linear-gradient(135deg, var(--pfsc-blue) 0%, var(--pfsc-pink) 100%);
  
  /* Spacing */
  --pfsc-spacing-xs: 0.25rem;
  --pfsc-spacing-sm: 0.5rem;
  --pfsc-spacing-md: 1rem;
  --pfsc-spacing-lg: 1.5rem;
  --pfsc-spacing-xl: 2rem;
  --pfsc-spacing-2xl: 3rem;
  
  /* Border Radius */
  --pfsc-radius-sm: 0.375rem;
  --pfsc-radius-md: 0.5rem;
  --pfsc-radius-lg: 0.75rem;
  --pfsc-radius-xl: 1rem;
  --pfsc-radius-full: 9999px;
  
  /* Shadows */
  --pfsc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --pfsc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --pfsc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --pfsc-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pfsc-container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--pfsc-black);
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Header */
.pfsc-header {
  background: var(--pfsc-gradient);
  color: var(--pfsc-white);
  padding: var(--pfsc-spacing-md) var(--pfsc-spacing-lg);
  margin-bottom: var(--pfsc-spacing-xl);
  border-radius: var(--pfsc-radius-xl);
  box-shadow: var(--pfsc-shadow-lg);
}

.pfsc-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.pfsc-logo {
  display: flex;
  align-items: center;
  gap: var(--pfsc-spacing-sm);
}

.pfsc-logo i {
  font-size: 1.5rem;
}

.pfsc-logo h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.pfsc-brand {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Hero Section */
.pfsc-hero {
  text-align: center;
  margin-bottom: var(--pfsc-spacing-2xl);
}

.pfsc-hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pfsc-black);
  margin-bottom: var(--pfsc-spacing-md);
}

.pfsc-hero p {
  font-size: 1.125rem;
  color: var(--pfsc-gray);
  margin-bottom: var(--pfsc-spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Search */
.pfsc-search-container {
  max-width: 500px;
  margin: 0 auto var(--pfsc-spacing-xl);
}

.pfsc-search-wrapper {
  position: relative;
}

.pfsc-search-input {
  width: 100%;
  padding: var(--pfsc-spacing-md) var(--pfsc-spacing-lg);
  padding-right: 120px;
  font-size: 1rem;
  border: 2px solid var(--pfsc-green);
  border-radius: var(--pfsc-radius-full);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--pfsc-shadow-md);
}

.pfsc-search-input:focus {
  border-color: var(--pfsc-blue);
  box-shadow: var(--pfsc-shadow-lg);
}

.pfsc-search-button {
  position: absolute;
  right: var(--pfsc-spacing-xs);
  top: 50%;
  transform: translateY(-50%);
  background: var(--pfsc-gradient);
  color: var(--pfsc-white);
  border: none;
  padding: var(--pfsc-spacing-sm) var(--pfsc-spacing-md);
  border-radius: var(--pfsc-radius-full);
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--pfsc-spacing-xs);
  transition: all 0.2s ease;
}

.pfsc-search-button:hover {
  box-shadow: var(--pfsc-shadow-md);
  transform: translateY(-50%) translateY(-1px);
}

.pfsc-search-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Suggestions */
.pfsc-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--pfsc-white);
  border: 1px solid #E5E7EB;
  border-radius: var(--pfsc-radius-xl);
  box-shadow: var(--pfsc-shadow-xl);
  z-index: 1000;
  margin-top: var(--pfsc-spacing-xs);
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.pfsc-suggestions.show {
  display: block;
}

.pfsc-suggestion-item {
  padding: var(--pfsc-spacing-md);
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.pfsc-suggestion-item:hover {
  background-color: #F9FAFB;
}

.pfsc-suggestion-item:last-child {
  border-bottom: none;
}

.pfsc-suggestion-content {
  display: flex;
  align-items: center;
  gap: var(--pfsc-spacing-sm);
}

.pfsc-suggestion-name {
  font-weight: 600;
  color: var(--pfsc-black);
}

.pfsc-suggestion-safety {
  font-size: 0.875rem;
  color: var(--pfsc-gray);
}

/* Emergency Alert */
.pfsc-emergency-alert {
  background: #FEF2F2;
  border-left: 4px solid var(--pfsc-toxic);
  padding: var(--pfsc-spacing-md);
  border-radius: var(--pfsc-radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--pfsc-spacing-sm);
  max-width: 600px;
  margin: 0 auto var(--pfsc-spacing-xl);
}

.pfsc-emergency-alert i {
  color: var(--pfsc-toxic);
  margin-top: var(--pfsc-spacing-xs);
}

.pfsc-emergency-title {
  color: var(--pfsc-toxic);
  font-weight: 600;
  margin: 0 0 var(--pfsc-spacing-xs);
}

.pfsc-emergency-text {
  color: #DC2626;
  font-size: 0.875rem;
  margin: 0;
}

/* Pet Type Selector */
.pfsc-pet-selector {
  margin-bottom: var(--pfsc-spacing-2xl);
  text-align: center;
}

.pfsc-pet-selector h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pfsc-black);
  margin-bottom: var(--pfsc-spacing-lg);
}

.pfsc-pet-types-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pfsc-spacing-md);
}

.pfsc-pet-type {
  background: var(--pfsc-white);
  border: 2px solid var(--pfsc-green);
  color: var(--pfsc-green);
  padding: var(--pfsc-spacing-sm) var(--pfsc-spacing-md);
  border-radius: var(--pfsc-radius-full);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--pfsc-shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--pfsc-spacing-xs);
}

.pfsc-pet-type:hover {
  background: var(--pfsc-green);
  color: var(--pfsc-white);
  transform: translateY(-1px);
  box-shadow: var(--pfsc-shadow-md);
}

.pfsc-pet-type.active {
  background: var(--pfsc-green);
  color: var(--pfsc-white);
}

/* Result Section */
.pfsc-result-section {
  margin-bottom: var(--pfsc-spacing-2xl);
  animation: fadeIn 0.5s ease-out;
}

.pfsc-result-card {
  background: var(--pfsc-peach);
  border-radius: var(--pfsc-radius-xl);
  padding: var(--pfsc-spacing-xl);
  box-shadow: var(--pfsc-shadow-lg);
  position: relative;
}

.pfsc-close-btn {
  position: absolute;
  top: var(--pfsc-spacing-md);
  right: var(--pfsc-spacing-md);
  background: none;
  border: none;
  color: var(--pfsc-gray);
  cursor: pointer;
  padding: var(--pfsc-spacing-xs);
  border-radius: var(--pfsc-radius-sm);
  transition: color 0.2s ease;
}

.pfsc-close-btn:hover {
  color: var(--pfsc-black);
}

.pfsc-result-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--pfsc-spacing-lg);
  color: var(--pfsc-black);
}

.pfsc-result-content {
  display: flex;
  align-items: center;
  gap: var(--pfsc-spacing-xl);
}

.pfsc-result-info {
  flex: 1;
}

.pfsc-result-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--pfsc-spacing-md);
  gap: var(--pfsc-spacing-md);
}

.pfsc-result-icon {
  width: 4rem;
  height: 4rem;
  background: var(--pfsc-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pfsc-white);
  font-size: 1.5rem;
}

.pfsc-result-title h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 var(--pfsc-spacing-xs);
  color: var(--pfsc-black);
}

.pfsc-result-pet {
  color: var(--pfsc-gray);
  margin: 0;
}

/* Safety Badges */
.pfsc-safety-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--pfsc-spacing-xs);
  padding: var(--pfsc-spacing-xs) var(--pfsc-spacing-md);
  border-radius: var(--pfsc-radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--pfsc-spacing-md);
}

.pfsc-safety-safe {
  background: #DCFCE7;
  color: var(--pfsc-safe);
}

.pfsc-safety-caution {
  background: #FEF3C7;
  color: #B45309;
}

.pfsc-safety-toxic {
  background: #FEE2E2;
  color: var(--pfsc-toxic);
}

/* Info Boxes */
.pfsc-info-box {
  padding: var(--pfsc-spacing-sm) var(--pfsc-spacing-md);
  border-radius: var(--pfsc-radius-md);
  margin-bottom: var(--pfsc-spacing-sm);
  font-size: 0.875rem;
}

.pfsc-info-box h5 {
  font-weight: 600;
  margin: 0 0 var(--pfsc-spacing-xs);
}

.pfsc-info-box p {
  margin: 0;
}

.pfsc-info-portion {
  background: #EBF8FF;
  color: #1E40AF;
}

.pfsc-info-warning {
  background: #FEF2F2;
  color: #DC2626;
}

.pfsc-info-benefits {
  background: #F0FDF4;
  color: #166534;
}

.pfsc-info-preparation {
  background: #FFFBEB;
  color: #92400E;
}

/* Categories */
.pfsc-categories {
  margin-bottom: var(--pfsc-spacing-2xl);
}

.pfsc-categories h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--pfsc-spacing-xl);
  color: var(--pfsc-black);
}

.pfsc-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--pfsc-spacing-lg);
}

.pfsc-category-card {
  background: var(--pfsc-white);
  border: 2px solid var(--pfsc-green);
  border-radius: var(--pfsc-radius-xl);
  padding: var(--pfsc-spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--pfsc-shadow-md);
}

.pfsc-category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pfsc-shadow-lg);
}

.pfsc-category-icon {
  width: 4rem;
  height: 4rem;
  background: var(--pfsc-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--pfsc-spacing-md);
  color: var(--pfsc-white);
  font-size: 1.5rem;
}

.pfsc-category-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--pfsc-spacing-xs);
  color: var(--pfsc-black);
}

.pfsc-category-count {
  color: var(--pfsc-gray);
  font-size: 0.875rem;
  margin-bottom: var(--pfsc-spacing-sm);
}

/* Popular Searches */
.pfsc-popular {
  margin-bottom: var(--pfsc-spacing-2xl);
}

.pfsc-popular-card {
  background: var(--pfsc-peach);
  border-radius: var(--pfsc-radius-xl);
  padding: var(--pfsc-spacing-xl);
  box-shadow: var(--pfsc-shadow-lg);
}

.pfsc-popular-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--pfsc-spacing-xl);
  color: var(--pfsc-black);
}

.pfsc-popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--pfsc-spacing-md);
}

.pfsc-popular-item {
  background: var(--pfsc-white);
  border-radius: var(--pfsc-radius-md);
  padding: var(--pfsc-spacing-md);
  box-shadow: var(--pfsc-shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--pfsc-spacing-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pfsc-popular-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--pfsc-shadow-md);
}

.pfsc-popular-icon {
  font-size: 1.25rem;
}

.pfsc-popular-info {
  flex: 1;
}

.pfsc-popular-name {
  font-weight: 600;
  color: var(--pfsc-black);
  margin: 0 0 var(--pfsc-spacing-xs);
}

.pfsc-popular-desc {
  color: var(--pfsc-gray);
  font-size: 0.875rem;
  margin: 0;
}

/* Safety Tips */
.pfsc-tips {
  margin-bottom: var(--pfsc-spacing-2xl);
}

.pfsc-tips h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--pfsc-spacing-xl);
  color: var(--pfsc-black);
}

.pfsc-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--pfsc-spacing-lg);
}

.pfsc-tip-card {
  background: var(--pfsc-white);
  border: 2px solid var(--pfsc-green);
  border-radius: var(--pfsc-radius-xl);
  padding: var(--pfsc-spacing-lg);
  box-shadow: var(--pfsc-shadow-md);
  transition: all 0.2s ease;
}

.pfsc-tip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pfsc-shadow-lg);
}

.pfsc-tip-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--pfsc-spacing-md);
  font-size: 1.25rem;
}

.pfsc-tip-danger {
  background: #FEE2E2;
  color: var(--pfsc-toxic);
}

.pfsc-tip-warning {
  background: #FEF3C7;
  color: var(--pfsc-caution);
}

.pfsc-tip-safe {
  background: #DCFCE7;
  color: var(--pfsc-safe);
}

.pfsc-tip-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 var(--pfsc-spacing-sm);
  color: var(--pfsc-black);
}

.pfsc-tip-card p {
  color: var(--pfsc-gray);
  font-size: 0.875rem;
  margin: 0;
}

/* Footer */
.pfsc-footer {
  background: var(--pfsc-black);
  color: var(--pfsc-white);
  padding: var(--pfsc-spacing-2xl) var(--pfsc-spacing-lg);
  border-radius: var(--pfsc-radius-xl);
  margin-top: var(--pfsc-spacing-2xl);
}

.pfsc-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--pfsc-spacing-xl);
  margin-bottom: var(--pfsc-spacing-xl);
}

.pfsc-footer-section h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--pfsc-spacing-md);
}

.pfsc-footer-section p {
  color: #D1D5DB;
  font-size: 0.875rem;
  margin: 0 0 var(--pfsc-spacing-xs);
}

.pfsc-footer-section i {
  margin-right: var(--pfsc-spacing-xs);
}

.pfsc-footer-bottom {
  border-top: 1px solid #374151;
  padding-top: var(--pfsc-spacing-lg);
  text-align: center;
}

.pfsc-footer-bottom p {
  color: #9CA3AF;
  font-size: 0.875rem;
  margin: 0;
}

/* Loading States */
.pfsc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pfsc-spacing-lg);
  color: var(--pfsc-gray);
}

.pfsc-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #F3F4F6;
  border-top: 2px solid var(--pfsc-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: var(--pfsc-spacing-sm);
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .pfsc-container {
    padding: 0 var(--pfsc-spacing-md);
  }
  
  .pfsc-hero h2 {
    font-size: 2rem;
  }
  
  .pfsc-search-input {
    padding-right: 100px;
  }
  
  .pfsc-result-content {
    flex-direction: column;
    text-align: center;
  }
  
  .pfsc-categories-grid,
  .pfsc-popular-grid,
  .pfsc-tips-grid {
    grid-template-columns: 1fr;
  }
  
  .pfsc-pet-types-grid {
    justify-content: center;
  }
}