/* ========================================
   MINIMALIST MERCHANT CARD - Clean Flat Design
   ======================================== */

.merchant-page-header-modern {
  margin-bottom: 3rem;
}

.merchant-card-minimal {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  transition: all 0.2s ease;
}

.merchant-card-minimal:hover {
  border-color: #17a2b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.1);
}

/* ========================================
   Top Section: Logo + Name
   ======================================== */

.merchant-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 1.5rem;
}

.merchant-logo-modern {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.merchant-logo-modern img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.merchant-info-modern {
  flex: 1;
  min-width: 0;
}

.merchant-name-modern {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.3;
}

.verified-badge-minimal {
  display: inline-flex;
  align-items: center;
  color: #10b981;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.merchant-desc-minimal {
  font-size: 0.9375rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ========================================
   Ratings Section: Cards Layout
   ======================================== */

.merchant-ratings-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rating-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.rating-card:hover {
  border-color: #17a2b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.1);
}

/* Trustpilot Styling */
.trustpilot-card {
  color: #00b67a;
}

.trustpilot-card:hover {
  border-color: #00b67a;
}

/* Google Styling */
.google-card {
  color: #4285f4;
}

.google-card:hover {
  border-color: #4285f4;
}

/* Internal Reviews Styling */
.internal-card {
  color: #8b5cf6;
}

.internal-card:hover {
  border-color: #8b5cf6;
}

.rating-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.9;
}

.rating-icon {
  font-size: 1rem;
}

.rating-source {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.rating-card-score {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: currentColor;
}

.rating-card-reviews {
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
}

.rating-card-link {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: currentColor;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s ease;
}

.rating-card-link:hover {
  gap: 0.625rem;
  text-decoration: underline;
}

.rating-card-link i {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ========================================
   Stats Section: Minimal Layout
   ======================================== */

.merchant-stats-minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 1.5rem;
}

.stat-item-minimal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.stat-item-minimal > i {
  font-size: 1.5rem;
  color: #3b82f6;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 8px;
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: #666;
  font-weight: 500;
}

/* ========================================
   Action Buttons: Minimal Style
   ======================================== */

.merchant-actions-minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-minimal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary-minimal {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary-minimal:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-outline-minimal {
  background: #ffffff;
  color: #3b82f6;
  border-color: #3b82f6;
}

.btn-outline-minimal:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-minimal i {
  font-size: 0.875rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .merchant-card-minimal {
    padding: 1.5rem;
  }

  .merchant-card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .merchant-logo-modern {
    width: 100px;
    height: 100px;
  }

  .merchant-name-modern {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .merchant-ratings-section {
    grid-template-columns: 1fr;
  }

  .merchant-stats-minimal {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item-minimal {
    min-width: 100%;
  }

  .merchant-actions-minimal {
    flex-direction: column;
  }

  .btn-minimal {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .merchant-card-minimal {
    padding: 1.25rem;
  }

  .merchant-logo-modern {
    width: 80px;
    height: 80px;
  }

  .merchant-name-modern {
    font-size: 1.375rem;
  }

  .rating-card-score {
    font-size: 2rem;
  }

  .btn-minimal {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* ========================================
   Animation
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.merchant-card-minimal {
  animation: fadeInUp 0.5s ease forwards;
}

.rating-card {
  animation: fadeInUp 0.6s ease forwards;
}

.rating-card:nth-child(2) {
  animation-delay: 0.1s;
}

.rating-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .merchant-card-minimal {
    box-shadow: none;
    border: 1px solid #e8e8e8;
  }

  .merchant-actions-minimal,
  .rating-card-link {
    display: none;
  }
}
