/* Business Card product — preview styles only. Base shell comes from studio-base.css */

/* ── Two-column layout ──────────────────────────────────────────────────────── */
.bc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}
@media (max-width: 720px) {
  .bc-layout { grid-template-columns: 1fr; }
}

/* ── Form sections ──────────────────────────────────────────────────────────── */
.bc-section {
  margin-bottom: 1.5rem;
}
.bc-section__title {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--studio-sub);
  margin-bottom: .75rem;
  padding-bottom: .375rem;
  border-bottom: 1px solid var(--studio-border);
}
.bc-field {
  margin-bottom: .75rem;
}
.bc-field--inline {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.bc-field__help {
  font-size: .75rem;
  color: var(--studio-sub);
  margin-top: .2rem;
}
.bc-field__error {
  font-size: .75rem;
  color: #c0392b;
  margin-top: .2rem;
  min-height: 1em;
}
.bc-btn-remove {
  margin-top: .4rem;
  font-size: .8rem;
  padding: .2rem .6rem;
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
  color: var(--studio-sub);
  cursor: pointer;
}
.bc-btn-remove:hover { color: #c0392b; border-color: #c0392b; }
.bc-reveal {
  margin-top: .5rem;
}
.bc-reveal[hidden] { display: none; }

.bc-color-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.bc-color-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--studio-ink);
}
.bc-color-item input[type="color"] {
  width: 48px;
  height: 36px;
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius);
  padding: 2px;
  cursor: pointer;
  background: var(--studio-surface);
}
.bc-orientation-row {
  display: flex;
  gap: 1.5rem;
}
.bc-orientation-row label {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-weight: 400;
  font-size: .9375rem;
  cursor: pointer;
}

/* ── Preview panel ──────────────────────────────────────────────────────────── */
.bc-preview-panel {
  position: sticky;
  top: 1rem;
}
.bc-preview-label {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--studio-sub);
  margin-bottom: .75rem;
}
.bc-preview-wrap {
  border-radius: var(--studio-radius);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--studio-card);
  border: 1px solid var(--studio-border);
  padding: 1.5rem;
}

/* ── Business card surface ──────────────────────────────────────────────────── */
.bc-card {
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  position: relative;
  overflow: hidden;
  transition: background .2s, color .2s;
}

/* Portrait: single centred column */
.bc-card--portrait {
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 340px;
  gap: .55rem;
}

/* Landscape: left info column + right QR column */
.bc-card--landscape {
  flex-direction: row;
  gap: 1.5rem;
  width: 100%;
  max-width: 660px;
  align-items: flex-start;
}

/* ── Card elements ──────────────────────────────────────────────────────────── */

/* Long content (URLs, emails) must wrap inside the card */
.bc-card__company,
.bc-card__name,
.bc-card__job-title,
.bc-card__tagline,
.bc-card__socials {
  overflow-wrap: anywhere;
}
.bc-card__contact {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

/* Logo slot — no gap rendered when absent */
.bc-card__logo {
  display: block;
  max-height: 72px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
}

/* Company — wordmark-styled */
.bc-card__company {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Name — dominant element */
.bc-card__name {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
}

/* Job title — muted */
.bc-card__job-title {
  font-size: .95rem;
  opacity: .6;
}

/* Amber separator rule */
.bc-card__rule {
  width: 40px;
  height: 3px;
  flex-shrink: 0;
  border-radius: 2px;
  margin-top: .15rem;
  margin-bottom: .15rem;
}
.bc-card--portrait .bc-card__rule {
  margin-left: auto;
  margin-right: auto;
}

/* Contact block */
.bc-card__contact {
  font-size: .82rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Tagline */
.bc-card__tagline {
  font-size: .82rem;
  font-style: italic;
  opacity: .65;
}

/* ── Landscape left / right columns ─────────────────────────────────────────── */
.bc-card__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  text-align: left;
}

.bc-card__right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

/* ── QR tile (white rounded container) ──────────────────────────────────────── */
.bc-card__qr-tile {
  background: #fff;
  border-radius: 8px;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.bc-card__qr-tile svg.bc-card__qr-img {
  width: 120px;
  height: 120px;
  display: block;
}

/* QR note */
.bc-card__qr-note {
  font-size: .7rem;
  color: rgba(0,0,0,.45);
  text-align: center;
  max-width: 120px;
  line-height: 1.3;
}

/* Social pills below QR */
.bc-card__socials {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
  margin-top: .25rem;
}
.bc-card__social-pill {
  display: inline-block;
  background: #0C2462;
  color: #F5F1E8;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .2rem .65rem;
  white-space: nowrap;
}

/* ── Landscape → single column collapse below 480px ─────────────────────────── */
@media (max-width: 480px) {
  .bc-card--landscape {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bc-card--landscape .bc-card__left {
    text-align: center;
  }
  .bc-card--landscape .bc-card__rule {
    margin-left: auto;
    margin-right: auto;
  }
  .bc-card--landscape .bc-card__right {
    width: 100%;
  }
  .bc-card--landscape .bc-card__logo {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── License slot area ──────────────────────────────────────────────────────── */
#studio-license-slot {
  margin-top: 1.5rem;
}
