/* ============================================================
   MeghBiz - Main Stylesheet
   ============================================================ */

/* --- Brand Colors (match logo) --- */
:root {
  --bs-success: #2d6a4f;
  --bs-success-rgb: 45, 106, 79;
  --meghbiz-green: #2d6a4f;
  --meghbiz-green-light: #40916c;
  --meghbiz-accent: #f77f00;
}

.bg-success {
  background-color: #2d6a4f !important;
}
.btn-success {
  background-color: #2d6a4f;
  border-color: #2d6a4f;
}
.btn-success:hover {
  background-color: #245a42;
  border-color: #245a42;
}
.btn-outline-success {
  color: #2d6a4f;
  border-color: #2d6a4f;
}
.btn-outline-success:hover {
  background-color: #2d6a4f;
  border-color: #2d6a4f;
  color: #fff;
}
.text-success {
  color: #2d6a4f !important;
}

/* --- General --- */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.container.py-4,
.container.py-5 {
  flex: 1;
}

footer {
  margin-top: auto;
}

a {
  color: #2d6a4f;
}

a:hover {
  color: #245a42;
}

/* --- Navbar --- */
.navbar-brand {
  font-size: 1.3rem;
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
}

.hero-section h1 {
  font-weight: 700;
}

.hero-section .form-control,
.hero-section .form-select {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- Cards --- */
.card {
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.startup-card:hover,
.product-card:hover,
.category-card:hover,
.district-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.category-card {
  border: 2px solid transparent;
}

.category-card:hover {
  border-color: #2d6a4f;
}

.district-card {
  border: 1px solid #dee2e6;
}

.district-card:hover {
  border-color: #2d6a4f;
  background: #f8f9fa;
}

/* --- Product Card --- */
.product-card .card-img-top {
  border-radius: 10px 10px 0 0;
}

.product-card .card-footer {
  border-radius: 0 0 10px 10px;
  border-top: 0;
}

/* --- Badges --- */
.badge {
  font-weight: 500;
}

/* --- Star Rating --- */
.star-rating i {
  margin-right: 1px;
}
.star-rating-input i {
  transition: color 0.15s;
}
.star-rating-input i.active,
.star-rating-input i:hover,
.star-rating-input i:hover ~ i {
  /* handled by JS */
}

/* --- Social Sharing --- */
.social-share .btn {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* --- Gallery Thumbnails --- */
.gallery-thumb {
  transition: border-color 0.2s;
}
.gallery-thumb:hover {
  border-color: #2d6a4f !important;
}

/* --- Verified Badge --- */
.badge .bi-patch-check-fill {
  font-size: 0.85em;
}

/* --- High Contrast Mode (PWD) --- */
body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}
body.high-contrast .card,
body.high-contrast .navbar,
body.high-contrast footer,
body.high-contrast .bg-light,
body.high-contrast .bg-dark {
  background: #111 !important;
  color: #fff !important;
  border-color: #fff !important;
}
body.high-contrast a {
  color: #ff0 !important;
}
body.high-contrast .text-muted {
  color: #ccc !important;
}
body.high-contrast .btn-outline-success,
body.high-contrast .btn-success {
  border-color: #ff0 !important;
  color: #ff0 !important;
}
body.high-contrast .form-control,
body.high-contrast .form-select {
  background: #222 !important;
  color: #fff !important;
  border-color: #666 !important;
}

/* --- Focus Indicators (PWD) --- */
*:focus-visible {
  outline: 3px solid #ff0 !important;
  outline-offset: 2px;
}

/* --- Skip Link --- */
.skip-link:focus {
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 99999;
  clip: auto;
  width: auto;
  height: auto;
}

/* --- Accessibility Toolbar --- */
#accessibilityBar {
  font-size: 0.85rem;
}

/* --- Blog Content --- */
.blog-content img {
  max-width: 100%;
  height: auto;
}

/* --- Buttons --- */
.btn-xs {
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
}

/* --- Pagination --- */
.pagination .page-link {
  color: #2d6a4f;
}

.pagination .page-item.active .page-link {
  background-color: #2d6a4f;
  border-color: #2d6a4f;
}

/* --- Footer --- */
footer.bg-dark .text-muted {
  color: #adb5bd !important;
}
footer.bg-dark a.text-muted {
  color: #ced4da !important;
}
footer.bg-dark a:hover {
  color: #fff !important;
}
footer.bg-dark h5,
footer.bg-dark h6 {
  color: #f8f9fa !important;
}

/* --- Auth Pages --- */
.card.shadow {
  border: none;
  border-radius: 12px;
}

/* --- Search Page --- */
.form-control:focus,
.form-select:focus {
  border-color: #2d6a4f;
  box-shadow: 0 0 0 0.2rem rgba(45, 106, 79, 0.2);
}

/* --- Tables --- */
.table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #666;
}

/* --- Accordion (Inquiries) --- */
.accordion-button:not(.collapsed) {
  background-color: #d1e7dd;
  color: #2d6a4f;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 1.6rem;
  }

  .hero-section .lead {
    font-size: 0.95rem;
  }

  .category-card .card-body {
    padding: 0.75rem;
  }

  .category-card .fs-1 {
    font-size: 1.5rem !important;
  }

  .category-card h6 {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .hero-section {
    padding: 2rem 0 !important;
  }
}

/* --- Social Login Buttons --- */
.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
}
.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #dee2e6;
}
.divider-text span {
  padding: 0 0.75rem;
}
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.btn-google {
  background: #fff;
  color: #444;
  border: 1px solid #dadce0;
}
.btn-google:hover {
  background: #f7f8f8;
  border-color: #c6c6c6;
  color: #333;
}
.btn-facebook {
  background: #1877f2;
  color: #fff;
  border: 1px solid #1877f2;
}
.btn-facebook:hover {
  background: #166fe5;
  color: #fff;
}
.btn-apple {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
.btn-apple:hover {
  background: #333;
  color: #fff;
}
