/* reviews.css - Premium styling for flatpack.help™ reviews page */

.reviews-toolbar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .reviews-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Search Box */
.reviews-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-light, #f8fafc);
  border: 1px solid var(--border-dark, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: 10px 14px;
  flex: 1;
  max-width: 500px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.reviews-search-box:focus-within {
  border-color: var(--primary, #2563eb);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.15),
    0 4px 6px -1px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.reviews-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-navy, #0f172a);
  padding-left: 8px;
}

#reviews-clear-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted, #94a3b8);
  font-size: 1.25rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

#reviews-clear-btn:hover {
  color: var(--text-navy, #0f172a);
}

/* Category Filters */
.reviews-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.reviews-filters::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  border: 1px solid var(--border-dark, #e2e8f0);
  background: var(--bg-light, #f8fafc);
  color: var(--text-secondary, #475569);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-pill:hover {
  background-color: var(--border-dark, #e2e8f0);
  color: var(--text-navy, #0f172a);
}

.filter-pill.active {
  background-color: var(--primary, #2563eb);
  color: #ffffff;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.review-item-card {
  background: #ffffff;
  border: 1px solid var(--border-dark, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.review-item-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 24px -10px rgba(0, 0, 0, 0.06),
    0 4px 8px -4px rgba(0, 0, 0, 0.03);
  border-color: #cbd5e1;
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.review-stars {
  color: #fbbf24;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

/* Platform Badges */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-trustpilot {
  background: rgba(0, 182, 122, 0.08);
  color: #00b67a;
}

.platform-google {
  background: rgba(66, 133, 244, 0.08);
  color: #4285f4;
}

.platform-yell {
  background: rgba(255, 224, 0, 0.15);
  color: #9a8200;
  border: 1px solid rgba(255, 224, 0, 0.3);
}

.platform-facebook {
  background: rgba(24, 119, 242, 0.08);
  color: #1877f2;
}

.platform-yelp {
  background: rgba(211, 35, 35, 0.08);
  color: #d32323;
}

.review-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-navy, #0f172a);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.35;
}

.review-item-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary, #475569);
  margin-top: 0;
  margin-bottom: 20px;
  flex: 1;
}

.review-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  border-top: 1px solid var(--border-dark, #e2e8f0);
  padding-top: 14px;
}

.review-item-author {
  font-weight: 700;
  color: var(--text-navy, #0f172a);
}

.review-item-date {
  font-weight: 500;
}

/* Search Highlight */
.search-highlight {
  background-color: rgba(253, 224, 71, 0.4);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* Reviews Hero stats */
.reviews-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 35px;
  width: 100%;
}

.reviews-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: var(--radius-md, 8px);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.reviews-stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}

.reviews-stat-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Portfolio Hero styles */
.portfolio-hero-section {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(0, 95, 198, 0.12), transparent 50%),
    linear-gradient(135deg, #0a1128 0%, #101f42 100%);
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.portfolio-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.8;
  pointer-events: none;
}

.portfolio-hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.portfolio-hero-section .friendly-badge {
  display: inline-block;
  background: rgba(0, 95, 198, 0.2);
  border: 1px solid rgba(0, 95, 198, 0.4);
  color: #60a5fa;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-hero-title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}
