/* ============================================
   Reusable UI Components
   ============================================ */

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--text-btn);
  font-weight: 500;
  line-height: 1;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.85;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1.5px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
  background-color: rgba(255,106,0,0.05);
}

.btn-lg {
  padding: 16px 40px;
  font-size: var(--text-btn);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* --- Tags / Badges --- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--tag-bg);
  color: var(--tag-text);
  font-size: var(--text-tag);
  font-weight: 500;
  letter-spacing: var(--ls-tag);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.tag-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 12px;
}

/* --- Cards --- */

.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 32px 24px;
  transition: all var(--duration-normal) var(--ease-standard);
}

.card-hover:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.card-gray {
  background-color: var(--bg-gray);
  border: none;
}

/* --- Star Rating --- */

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.star-lg {
  width: 24px;
  height: 24px;
}

.star-filled {
  fill: var(--brand-orange);
}

.star-empty {
  fill: var(--border-light);
}

.star-half {
  fill: var(--brand-orange);
}

/* --- Avatar --- */

.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--border-light);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Tables --- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.data-table thead {
  background-color: var(--bg-gray);
}

.data-table th,
.data-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #F0F0F0;
}

.data-table th {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-light);
}

.data-table td {
  font-size: 14px;
  color: var(--text-secondary);
}

.data-table tbody tr:nth-child(even) {
  background-color: #FAFAFA;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .col-center {
  text-align: center;
}

/* --- Breadcrumb --- */

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--brand-orange);
}

.breadcrumb-sep {
  color: var(--border-medium);
}

/* --- SVG Icon utilities --- */

.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* --- Review Card --- */

.review-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

.review-card:hover {
  box-shadow: var(--shadow-card);
}

.review-stars {
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-author-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.review-author-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Step Card --- */

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--brand-orange);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.step-icon {
  margin-bottom: 12px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 220px;
}

/* --- Feature Check List --- */

.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.check-list li svg {
  flex-shrink: 0;
  margin-top: 1px;
}
