/* =============================================
   CARDMAP SHORTCODES — styles v1.0
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
  --cm-white:   #ffffff;
  --cm-bg:      #f7f8fa;
  --cm-border:  #e5e8ef;
  --cm-text:    #1a1d23;
  --cm-muted:   #6b7280;
  --cm-green:   #059669;
  --cm-red:     #dc2626;
  --cm-gold:    #d97706;
  --cm-shadow:  0 2px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  --cm-shadow-hover: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.08);
  --cm-radius:  14px;
  --cm-accent:  #1a1d23;
}

/* ─────────────── CARD BOX ─────────────── */

.cm-card-box {
  background: var(--cm-white);
  border: 1px solid var(--cm-border);
  border-top: 4px solid var(--cm-accent);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
  margin: 2rem 0;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
  font-family: 'DM Sans', sans-serif;
}

.cm-card-box:hover {
  box-shadow: var(--cm-shadow-hover);
  transform: translateY(-2px);
}

.cm-card-header {
  background: linear-gradient(135deg, var(--cm-accent) 0%, color-mix(in srgb, var(--cm-accent) 70%, #000) 100%);
  color: white;
  padding: 1.5rem 1.75rem 1.25rem;
}

.cm-card-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 99px;
  margin-bottom: .75rem;
}

.cm-card-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: white;
  margin-bottom: .5rem;
  line-height: 1.3;
}

.cm-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cm-card-network {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.15);
  padding: .2rem .6rem;
  border-radius: 6px;
}

.cm-card-rating-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cm-stars { display: flex; gap: .1rem; }
.cm-star { font-size: 1rem; }
.cm-star-full  { color: #fbbf24; }
.cm-star-half  { color: #fbbf24; opacity: .6; }
.cm-star-empty { color: rgba(255,255,255,.3); }

.cm-rating-score {
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}

/* Body */
.cm-card-body {
  padding: 1.5rem 1.75rem;
}

.cm-card-highlight {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: color-mix(in srgb, var(--cm-accent) 8%, transparent);
  border-left: 3px solid var(--cm-accent);
  padding: .75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--cm-text);
}

.cm-highlight-icon { font-size: 1rem; }

/* Stats grid */
.cm-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 560px) {
  .cm-card-stats { grid-template-columns: repeat(4, 1fr); }
}

.cm-stat {
  background: var(--cm-bg);
  border: 1px solid var(--cm-border);
  border-radius: 10px;
  padding: .75rem;
  text-align: center;
}

.cm-stat-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--cm-muted);
  margin-bottom: .3rem;
}

.cm-stat-value {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--cm-text);
}

.cm-free { color: var(--cm-green) !important; }
.cm-return { color: var(--cm-gold); }

/* Pros / Cons */
.cm-card-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 540px) {
  .cm-card-pros-cons { grid-template-columns: 1fr; }
}

.cm-pros, .cm-cons {
  background: var(--cm-bg);
  border-radius: 10px;
  padding: 1rem;
}

.cm-pc-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .6rem;
}

.cm-pros .cm-pc-title { color: var(--cm-green); }
.cm-cons .cm-pc-title { color: var(--cm-red); }

.cm-pros ul, .cm-cons ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-pros li, .cm-cons li {
  font-size: .85rem;
  color: var(--cm-text);
  padding: .25rem 0;
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  line-height: 1.4;
}

.cm-check { color: var(--cm-green); font-weight: 700; flex-shrink: 0; }
.cm-x     { color: var(--cm-red);   font-weight: 700; flex-shrink: 0; }

/* Welcome bonus */
.cm-welcome-bonus {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .875rem;
  color: #92400e;
  margin-bottom: .5rem;
}

.cm-welcome-icon { font-size: 1rem; flex-shrink: 0; }

/* Footer / CTA */
.cm-card-footer {
  border-top: 1px solid var(--cm-border);
  padding: 1.25rem 1.75rem;
  background: var(--cm-bg);
  text-align: center;
}

.cm-cta-primary {
  display: inline-block;
  background: var(--cm-accent);
  color: white !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: .85rem 2.5rem;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all .2s ease;
  letter-spacing: .01em;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cm-accent) 30%, transparent);
}

.cm-cta-primary:hover {
  background: color-mix(in srgb, var(--cm-accent) 85%, #000);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--cm-accent) 40%, transparent);
  color: white !important;
}

.cm-disclaimer {
  font-size: .72rem;
  color: var(--cm-muted);
  margin: .6rem 0 0;
}

/* ─────────────── CTA BLOCK ─────────────── */

.cm-cta-block {
  border: 2px solid var(--cm-border);
  border-left: 4px solid var(--cm-accent);
  border-radius: var(--cm-radius);
  background: white;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-family: 'DM Sans', sans-serif;
}

.cm-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cm-cta-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.cm-cta-card-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--cm-text);
}

.cm-cta-highlight {
  font-size: .82rem;
  color: var(--cm-accent);
  font-weight: 600;
}

.cm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--cm-accent);
  color: white !important;
  font-weight: 700;
  font-size: .9rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all .2s;
  white-space: nowrap;
}

.cm-cta-btn:hover {
  background: color-mix(in srgb, var(--cm-accent) 85%, #000);
  transform: translateY(-1px);
  color: white !important;
}

.cm-arrow { transition: transform .2s; }
.cm-cta-btn:hover .cm-arrow { transform: translateX(3px); }

.cm-cta-trust {
  display: flex;
  gap: 1rem;
  margin-top: .6rem;
  flex-wrap: wrap;
}

.cm-cta-trust span {
  font-size: .72rem;
  color: var(--cm-muted);
}

/* ─────────────── COMPARISON TABLE ─────────────── */

.cm-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
  font-family: 'DM Sans', sans-serif;
}

.cm-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: .875rem;
}

.cm-comparison-table thead {
  background: #1a1d23;
  color: white;
}

.cm-comparison-table th {
  padding: .9rem 1rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.cm-th-card { min-width: 160px; }

.cm-comparison-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--cm-border);
  vertical-align: middle;
  color: var(--cm-text);
}

.cm-comparison-table tbody tr:hover {
  background: var(--cm-bg);
}

.cm-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.cm-td-card { min-width: 180px; }

.cm-table-badge {
  display: inline-block;
  color: white;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .5rem;
  border-radius: 4px;
  margin-bottom: .35rem;
}

.cm-table-card-name {
  font-weight: 600;
  font-size: .85rem;
  color: var(--cm-text);
  line-height: 1.3;
}

.cm-table-rating {
  font-size: .75rem;
  color: var(--cm-gold);
  margin-top: .2rem;
}

.cm-cell-highlight {
  background: #f0fdf4 !important;
}

.cm-table-cta {
  display: inline-block;
  background: var(--cm-accent);
  color: white !important;
  font-weight: 700;
  font-size: .8rem;
  padding: .45rem .9rem;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all .2s;
  white-space: nowrap;
}

.cm-table-cta:hover {
  opacity: .85;
  transform: translateY(-1px);
  color: white !important;
}

/* ─────────────── FAQ ─────────────── */

.cm-faq {
  margin: 1.5rem 0;
  font-family: 'DM Sans', sans-serif;
}

.cm-faq-item {
  border: 1px solid var(--cm-border);
  border-radius: 10px;
  margin-bottom: .5rem;
  overflow: hidden;
  background: white;
}

.cm-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--cm-text);
  cursor: pointer;
  text-align: left;
  transition: background .2s;
}

.cm-faq-q:hover { background: var(--cm-bg); }
.cm-faq-q[aria-expanded="true"] { background: var(--cm-bg); }

.cm-faq-icon {
  font-size: 1.2rem;
  color: var(--cm-muted);
  transition: transform .25s;
  flex-shrink: 0;
  line-height: 1;
}

.cm-faq-q[aria-expanded="true"] .cm-faq-icon {
  transform: rotate(45deg);
}

.cm-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.cm-faq-a p {
  padding: .75rem 1.25rem 1.25rem;
  font-size: .9rem;
  color: var(--cm-muted);
  margin: 0;
  line-height: 1.6;
}

.cm-faq-note {
  font-size: .85rem;
  color: var(--cm-muted);
  font-style: italic;
  margin: 1rem 0;
}

/* ─────────────── RESPONSIVE ─────────────── */

@media (max-width: 640px) {
  .cm-card-header { padding: 1.25rem; }
  .cm-card-body   { padding: 1.25rem; }
  .cm-card-footer { padding: 1rem 1.25rem; }
  .cm-card-name   { font-size: 1.2rem; }
  .cm-cta-inner   { flex-direction: column; align-items: stretch; }
  .cm-cta-btn     { text-align: center; justify-content: center; }
}
