/*
 * Shared components
 */

.cm-button,
button.cm-button,
a.cm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.cm-button:hover,
button.cm-button:hover,
a.cm-button:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.cm-button--ghost,
button.cm-button--ghost,
a.cm-button--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.cm-button--ghost:hover,
button.cm-button--ghost:hover,
a.cm-button--ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.cm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.cm-badge--accent {
  background: rgba(247, 147, 26, 0.12);
  color: var(--accent);
}

.cm-card,
.cm-market-card,
.cm-advertise-card,
.cm-advertise-placement-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.cm-card:hover,
.cm-market-card:hover,
.cm-advertise-card:hover,
.cm-advertise-placement-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cm-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.cm-section-heading-title,
.cm-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.cm-section-heading-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.cm-section-heading-link:hover {
  color: var(--accent);
}

.cm-newsletter-box {
  background: linear-gradient(135deg, var(--accent), #e67e22);
  color: var(--text);
  padding: 28px;
  border-radius: var(--radius-lg);
}

.cm-newsletter-form {
  max-width: 520px;
}

.cm-newsletter-form .mailpoet_form,
.cm-newsletter-form .mailpoet_form_column,
.cm-newsletter-form .mailpoet_paragraph {
  margin: 0;
}

.cm-form-wrap--fluentform,
.cm-form-wrap--mailpoet {
  width: 100%;
}

.cm-form-placeholder {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cm-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cm-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--text-inverse);
  font-size: 13px;
  font-weight: 700;
}

.cm-social-link:hover {
  background: var(--accent);
  color: var(--text);
}

.cm-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: var(--text-inverse);
  font-size: 12px;
  font-weight: 700;
}

.cm-ad-slot {
  margin: 24px 0;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.cm-ad-slot-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cm-ad-slot-box {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.cm-tv-lazy {
  display: block;
}

.cm-tv-lazy--market-overview {
  min-height: 480px;
}

.cm-tv-lazy--advanced-chart {
  min-height: 360px;
}

.cm-tv-lazy--screener {
  min-height: 700px;
}

@media (max-width: 767px) {
  .cm-tv-lazy--market-overview {
    min-height: 420px;
  }

  .cm-tv-lazy--advanced-chart {
    min-height: 300px;
  }

  .cm-tv-lazy--screener {
    min-height: 560px;
  }
}
