/* ============================================
   BLYDE - Components
   ============================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ease);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  transition: background 0.15s;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-verified {
  position: relative;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  background: #1d9bf0;
  box-shadow:
    0 0 0 2px #fff,
    0 2px 12px rgba(29, 155, 240, 0.40),
    0 1px 3px rgba(0, 0, 0, 0.10);
  color: transparent;
  font-size: 0;
  line-height: 1;
  vertical-align: middle;
  overflow: visible;
  flex-shrink: 0;
  cursor: default;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease;
}

.badge-verified:hover {
  transform: scale(1.25);
  box-shadow:
    0 0 0 2px #fff,
    0 4px 20px rgba(29, 155, 240, 0.60),
    0 1px 4px rgba(0, 0, 0, 0.12);
}

.badge-verified::before {
  content: '';
  display: block;
  width: 54%;
  height: 54%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 8L5.5 11.5L12.5 3' fill='none' stroke='%23fff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.badge-verified::after {
  content: 'Verified';
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 17, 23, 0.90);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 50;
}

.badge-verified:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.badge-verified > * {
  display: none !important;
}

.badge-live {
  background: #dcfce7;
  color: #15803d;
}

.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---- Forms ---- */
.form-group { margin-bottom: var(--space-lg); }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-label .required { color: var(--error); margin-left: 2px; }

.form-control {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
}

.form-control:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15,17,23,0.06);
}

.form-control::placeholder { color: var(--muted); }

.form-control-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-padded { padding: var(--space-lg); }

.card-hover {
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

.logo-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ---- Stat Card ---- */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.stat-icon-gold { background: var(--gold-pale); }
.stat-icon-blue { background: #dbeafe; }
.stat-icon-green { background: #d1fae5; }
.stat-icon-purple { background: #ede9fe; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ---- Testimonial Card ---- */
.testimonial-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.testimonial-card blockquote {
  font-size: 0.88rem;
  font-style: italic;
  opacity: 0.88;
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  font-family: var(--font-display);
}

.avatar-lg {
  width: 44px; height: 44px;
  font-size: 1rem;
}

.testimonial-author strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.75rem;
  opacity: 0.55;
}

/* ---- Notice Boxes ---- */
.notice {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.notice-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning);
}

.notice-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.notice-info {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

/* ---- Tags ---- */
.tag {
  display: inline-block;
  background: var(--cream-dark);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.tag-dark {
  background: var(--ink);
  color: var(--white);
}

.tag-gold {
  background: var(--gold-pale);
  color: var(--gold);
}

/* ---- Section ---- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-top: 10px;
  max-width: 520px;
}

/* ---- Rating ---- */
.rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}

.rating .count {
  color: var(--muted);
  font-weight: 400;
}

/* ---- Secure Note ---- */
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ---- Checkbox styled ---- */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--ink);
  width: 15px; height: 15px;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up { animation: fadeUp 0.5s ease both; }
.anim-fade-up-1 { animation: fadeUp 0.5s ease 0.1s both; }
.anim-fade-up-2 { animation: fadeUp 0.5s ease 0.2s both; }
.anim-fade-up-3 { animation: fadeUp 0.5s ease 0.3s both; }
.anim-fade-up-4 { animation: fadeUp 0.5s ease 0.4s both; }
