/* Professional Business Marketplace Theme - 60-30-10 Color Rule */

/* Root Variables - Professional Color Palette */
:root {
  /* Primary Color (60%) - Deep Navy Blue: Trust & Stability */
  --primary-navy: #1e3a8a;
  --primary-navy-light: #2563eb;
  --primary-navy-dark: #1e293b;
  --primary-navy-rgb: 30, 58, 138;

  /* Secondary Color (30%) - Slate Gray: Sophistication & Balance */
  --secondary-slate: #475569;
  --secondary-slate-light: #64748b;
  --secondary-slate-dark: #334155;
  --secondary-slate-rgb: 71, 85, 105;

  /* Accent Color (10%) - Emerald Green: Growth & Success */
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-emerald-dark: #059669;
  --accent-emerald-rgb: 16, 185, 129;

  /* Bootstrap Override Variables */
  --bs-primary: #1e3a8a;
  --bs-primary-rgb: 30, 58, 138;
  --bs-secondary: #475569;
  --bs-secondary-rgb: 71, 85, 105;
  --bs-success: #10b981;
  --bs-success-rgb: 16, 185, 129;
  --bs-info: #0ea5e9;
  --bs-info-rgb: 14, 165, 233;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger: #ef4444;
  --bs-danger-rgb: 239, 68, 68;
  --bs-light: #f8fafc;
  --bs-light-rgb: 248, 250, 252;
  --bs-dark: #1e293b;
  --bs-dark-rgb: 30, 41, 59;

  /* Neutral Colors */
  --neutral-white: #ffffff;
  --neutral-gray-50: #f8fafc;
  --neutral-gray-100: #f1f5f9;
  --neutral-gray-200: #e2e8f0;
  --neutral-gray-300: #cbd5e1;
  --neutral-gray-400: #94a3b8;
  --neutral-gray-500: #64748b;
  --neutral-gray-600: #475569;
  --neutral-gray-700: #334155;
  --neutral-gray-800: #1e293b;
  --neutral-gray-900: #0f172a;

  /* Legacy compatibility */
  --bizvenini-blue: var(--primary-navy);
  --bizvenini-blue-dark: var(--primary-navy-dark);
  --bizvenini-gray: var(--secondary-slate);
  --bizvenini-gray-light: var(--neutral-gray-100);
  --bizvenini-gray-dark: var(--secondary-slate-dark);
}

/* Font Family */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--neutral-gray-700);
  background-color: var(--neutral-gray-50);
}

/* Professional Header/Hero Backgrounds */
.hero-bg {
  background: var(--primary-navy);
  min-height: 50vh;
}

.hero-bg-gradient {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
}

/* Professional Text Gradient */
.text-gradient {
  color: var(--primary-navy);
  font-weight: 700;
}

/* Card Styles */
.card-hover {
  transition: all 0.3s ease;
  border: 1px solid var(--neutral-gray-200);
  background: var(--neutral-white);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(30, 58, 138, 0.1);
  border-color: var(--primary-navy-light);
}

.business-card {
  transition: all 0.3s ease;
  border: 1px solid var(--neutral-gray-200);
  overflow: hidden;
  background: var(--neutral-white);
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(30, 58, 138, 0.12);
  border-color: var(--primary-navy-light);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Button Styles - Professional */
.btn-primary {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: var(--neutral-white);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-navy-light);
  border-color: var(--primary-navy-light);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-success {
  background-color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: var(--neutral-white);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: var(--accent-emerald-dark);
  border-color: var(--accent-emerald-dark);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline-primary {
  color: var(--primary-navy);
  border-color: var(--primary-navy);
  background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: var(--neutral-white);
}

.btn-outline-secondary {
  color: var(--secondary-slate);
  border-color: var(--secondary-slate);
  background: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background-color: var(--secondary-slate);
  border-color: var(--secondary-slate);
  color: var(--neutral-white);
}

/* Search Bar Styles */
.search-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.search-form-wrapper {
  width: 100%;
}

.search-input-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.search-input {
  flex: 1;
  border-radius: 12px;
  padding: 16px 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 4px 25px rgba(16, 185, 129, 0.2);
  outline: none;
  background: white;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-btn {
  border-radius: 12px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  border: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.search-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.search-btn:active {
  transform: translateY(0);
}

/* Mobile Search Styles */
@media (max-width: 576px) {
  .search-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .search-input {
    padding: 14px 18px;
    border-radius: 10px;
  }

  .search-btn {
    padding: 14px 24px;
    border-radius: 10px;
    width: 100%;
  }
}

/* Stats Cards */
.stats-card {
  background: var(--neutral-white);
  border: 1px solid var(--neutral-gray-200);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stats-card:hover {
  border-color: var(--primary-navy-light);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 1rem;
  color: var(--secondary-slate);
  font-weight: 500;
}

/* Category Cards */
.category-card {
  display: block;
  background: var(--neutral-white);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--neutral-gray-200);
  text-decoration: none !important;
  color: inherit !important;
  position: relative;
  overflow: hidden;
}

.category-card:hover,
.category-card:focus {
  text-decoration: none !important;
  color: inherit !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(30, 58, 138, 0.12);
  border-color: var(--primary-navy);
}

.category-card:active {
  transform: translateY(-2px);
  transition: all 0.1s ease;
}

.category-icon {
  font-size: 2.5rem;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  display: block;
}

.category-card:hover .category-icon {
  color: var(--accent-emerald);
  transform: scale(1.05);
}

.category-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--neutral-gray-800);
  transition: color 0.3s ease;
}

.category-card:hover .category-title {
  color: var(--primary-navy);
}

.category-count {
  color: var(--secondary-slate);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.category-card:hover .category-count {
  color: var(--accent-emerald);
}

/* Navigation Styles */
.navbar {
  background: var(--neutral-white);
  box-shadow: 0 1px 3px rgba(30, 58, 138, 0.08);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--secondary-slate) !important;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-navy) !important;
}

.navbar-nav .nav-link.active {
  color: var(--primary-navy) !important;
  font-weight: 600;
}

/* Footer Styles */
.footer {
  background-color: var(--neutral-gray-800);
  color: var(--neutral-gray-300);
  padding: 3rem 0 1rem;
}

.footer h5,
.footer h6 {
  color: var(--neutral-white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--neutral-gray-300) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent-emerald) !important;
  transform: translateX(4px);
}

.footer-social {
  color: var(--neutral-gray-400) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social:hover {
  color: var(--accent-emerald) !important;
  background-color: rgba(16, 185, 129, 0.1);
}

.footer-text {
  color: var(--neutral-gray-400) !important;
}

/* Form Styles */
.form-control,
.form-select {
  border-color: var(--neutral-gray-300);
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  outline: none;
}

/* Alert Styles */
.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald-dark);
  border-left: 4px solid var(--accent-emerald);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #dc2626;
  border-left: 4px solid #ef4444;
}

.alert-info {
  background-color: rgba(14, 165, 233, 0.1);
  border-color: #0ea5e9;
  color: #0369a1;
  border-left: 4px solid #0ea5e9;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
  color: #d97706;
  border-left: 4px solid #f59e0b;
}

/* Badge Styles */
.badge {
  font-weight: 500;
  padding: 0.4em 0.8em;
  border-radius: 4px;
}

.badge.bg-primary {
  background-color: var(--primary-navy) !important;
}

.badge.bg-success {
  background-color: var(--accent-emerald) !important;
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-navy) !important;
}

.text-secondary-custom {
  color: var(--secondary-slate) !important;
}

.text-accent-custom {
  color: var(--accent-emerald) !important;
}

.bg-primary-custom {
  background-color: var(--primary-navy) !important;
}

.bg-secondary-custom {
  background-color: var(--secondary-slate) !important;
}

.bg-accent-custom {
  background-color: var(--accent-emerald) !important;
}

.border-primary-custom {
  border-color: var(--primary-navy) !important;
}

.border-accent-custom {
  border-color: var(--accent-emerald) !important;
}

.shadow-professional {
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08) !important;
}

.shadow-professional-lg {
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.12) !important;
}

.hover-primary:hover {
  color: var(--primary-navy) !important;
}

.hover-accent:hover {
  color: var(--accent-emerald) !important;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--neutral-gray-200);
  border-top: 2px solid var(--primary-navy);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-bg {
    min-height: 40vh;
    padding: 2rem 0;
  }

  .stats-number {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }
}

/* Focus States for Accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-navy);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary-navy);
  outline-offset: 2px;
}

/* Professional Link Styles */
a {
  color: var(--primary-navy);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-navy-light);
}

/* Table Styles */
.table {
  color: var(--neutral-gray-700);
}

.table thead th {
  background-color: var(--neutral-gray-100);
  color: var(--neutral-gray-800);
  font-weight: 600;
  border-color: var(--neutral-gray-200);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--neutral-gray-50);
}

/* Professional Card Variants */
.card {
  border-color: var(--neutral-gray-200);
  box-shadow: 0 1px 3px rgba(30, 58, 138, 0.06);
}

.card-header {
  background-color: var(--neutral-gray-100);
  border-bottom-color: var(--neutral-gray-200);
  font-weight: 600;
  color: var(--neutral-gray-800);
}
