/* YourCare Supplier Pages CSS */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #334155;
  background-color: #ffffff;
}

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

/* Header */
.site-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ea580c;
}

/* Breadcrumb */
.breadcrumb {
  margin: 2rem 0 1rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #ea580c;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Supplier Profile */
.supplier-profile {
  padding: 2rem 0;
}

.supplier-header {
  margin-bottom: 2rem;
}

.supplier-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.supplier-category {
  color: #ea580c;
  font-weight: 500;
  margin: 0 0 1rem 0;
}

.featured-badge {
  background: #fef3c7;
  color: #d97706;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.supplier-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .supplier-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.supplier-info h2 {
  color: #1e293b;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
}

.description {
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-item {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.contact-item a {
  color: #ea580c;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item address {
  font-style: normal;
}

/* Sidebar */
.supplier-sidebar {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 0.5rem;
  height: fit-content;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #ea580c;
  color: white;
  border-color: #ea580c;
}

.btn-primary:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-secondary {
  background: white;
  color: #4b5563;
  border-color: #d1d5db;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.similar-suppliers h3 {
  color: #1e293b;
  margin: 0 0 1rem 0;
}

.similar-supplier {
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
}

.similar-supplier h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.similar-supplier h4 a {
  color: #ea580c;
  text-decoration: none;
}

.similar-supplier h4 a:hover {
  text-decoration: underline;
}

.similar-supplier p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Directory Page */
.supplier-directory,
.category-page {
  padding: 2rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem 0;
}

.page-header p {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
}

.supplier-count {
  color: #ea580c;
  font-weight: 500;
}

.directory-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .directory-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.filters {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 0.5rem;
  height: fit-content;
}

.filters h2 {
  color: #1e293b;
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list a {
  color: #4b5563;
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.category-list a:hover {
  background: #e2e8f0;
  color: #ea580c;
}

.count {
  color: #9ca3af;
  font-size: 0.875rem;
}

.suppliers-grid h2 {
  color: #1e293b;
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.supplier-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.supplier-card:hover {
  border-color: #ea580c;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.supplier-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.supplier-card h3 a {
  color: #1e293b;
  text-decoration: none;
}

.supplier-card h3 a:hover {
  color: #ea580c;
}

.supplier-card .category {
  color: #ea580c;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.supplier-card .location {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.supplier-card .description {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
}

.supplier-card .featured {
  background: #fef3c7;
  color: #d97706;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  float: right;
  margin-top: -0.5rem;
}

/* Footer */
.site-footer {
  background: #1e293b;
  color: white;
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin: 0 0 1rem 0;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-section a:hover {
  color: #ea580c;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.875rem;
}