/* BDStall — pages/tv-calculator.css */

.tvc-page {
  background: #F7F6F2;
  min-height: 60vh;
  padding: 24px 16px 56px;
}

.tvc-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Header ── */
.tvc-header {
  margin-bottom: 20px;
}

.tvc-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1C1C1A;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tvc-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #EAF8EE;
  border: 1px solid #B9EDD0;
  border-radius: 10px;
  color: #149A49;
  flex-shrink: 0;
}

.tvc-subtitle {
  font-size: 0.9375rem;
  color: #6B6558;
  margin: 0;
  padding-left: 54px;
}

/* ── Two-column layout ── */
.tvc-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

@media (max-width: 820px) {
  .tvc-layout { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   FORM CARD
   ══════════════════════════════════════ */
.tvc-form-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #E8E8E4;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Step ── */
.tvc-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1C1C1A;
  margin-bottom: 12px;
}

.tvc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #149A49;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Option grids ── */
.tvc-options {
  display: grid;
  gap: 8px;
}

.tvc-options--2col    { grid-template-columns: repeat(2, 1fr); }
.tvc-options--distance {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

@media (max-width: 480px) {
  .tvc-options--distance { grid-template-columns: repeat(3, 1fr); }
}

/* ── Option card ── */
.tvc-opt { cursor: pointer; }

.tvc-opt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 10px;
  border: 2px solid #E8E8E4;
  background: #FAFAF9;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: pointer;
  user-select: none;
}

.tvc-opt-card:hover {
  border-color: #B9EDD0;
  background: #F4FBF7;
}

.tvc-opt-card.selected {
  border-color: #149A49;
  background: #F4FBF7;
  box-shadow: 0 0 0 3px rgba(20,154,73,0.12);
}

.tvc-opt-card--compact {
  padding: 8px 4px;
  gap: 2px;
}

.tvc-opt-card--viewer {
  padding: 16px 10px;
  gap: 6px;
}

/* ── Option card content ── */
.tvc-opt-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.tvc-opt-badge--gray   { background: #F0EFE9; color: #6B6558; }
.tvc-opt-badge--blue   { background: #DBEAFE; color: #1D4ED8; }
.tvc-opt-badge--green  { background: #DCFCE7; color: #15803D; }
.tvc-opt-badge--purple { background: #F3E8FF; color: #7E22CE; }

.tvc-opt-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1C1C1A;
  line-height: 1.2;
}

.tvc-opt-sub {
  font-size: 0.6875rem;
  color: #9B978E;
  line-height: 1;
}

.tvc-opt-icon {
  color: #6B6558;
  display: flex;
}
.tvc-opt-card.selected .tvc-opt-icon { color: #149A49; }
.tvc-opt-card.selected .tvc-opt-title { color: #0D7A3E; }

/* ══════════════════════════════════════
   RESULT CARD
   ══════════════════════════════════════ */
.tvc-result-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #E8E8E4;
  padding: 28px 24px;
  text-align: center;
  position: sticky;
  top: 80px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Idle state ── */
.tvc-result-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tvc-result-idle-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #F0EFE9;
  border: 1px solid #E0DED8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B0ACA4;
}

.tvc-result-idle-text {
  font-size: 0.9rem;
  color: #9B978E;
  max-width: 220px;
  line-height: 1.5;
  margin: 0;
}

.tvc-progress {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.tvc-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E0DED8;
  transition: background 0.2s;
}

.tvc-progress-dot.filled { background: #149A49; }

/* ── Result state ── */
.tvc-result-show {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tvc-result-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9B978E;
}

.tvc-result-size {
  font-size: 3.5rem;
  font-weight: 900;
  color: #149A49;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ── TV visual ── */
.tvc-tv-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 4px 0;
}

.tvc-tv-screen {
  background: #1C1C1A;
  border-radius: 6px;
  border: 3px solid #3A3A38;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.4s cubic-bezier(0.34,1.56,0.64,1), height 0.4s cubic-bezier(0.34,1.56,0.64,1);
  width: 120px;
  height: 68px;
  position: relative;
}

.tvc-tv-size-label {
  font-size: 0.875rem;
  font-weight: 800;
  color: #EAF8EE;
  letter-spacing: 0.02em;
}

.tvc-tv-stand {
  width: 40px;
  height: 6px;
  background: #3A3A38;
  border-radius: 0 0 3px 3px;
}

.tvc-result-context {
  font-size: 0.8125rem;
  color: #6B6558;
  line-height: 1.55;
  margin: 0;
  max-width: 260px;
}

.tvc-browse-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #149A49;
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
  margin-top: 4px;
}
.tvc-browse-btn:hover { background: #0D7A3E; color: white; }

/* ══════════════════════════════════════
   INFO SECTION
   ══════════════════════════════════════ */
.tvc-info {
  background: white;
  border-radius: 12px;
  border: 1px solid #E8E8E4;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tvc-info-text {
  flex: 1;
  min-width: 280px;
}

.tvc-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1C1C1A;
  margin: 0 0 10px;
}

.tvc-info-text p {
  font-size: 0.875rem;
  color: #6B6558;
  line-height: 1.7;
  margin: 0 0 8px;
}

.tvc-info-text p:last-child { margin-bottom: 0; }

.tvc-info-bn {
  color: #9B978E !important;
  font-size: 0.8125rem !important;
  border-top: 1px dashed #E8E8E4;
  padding-top: 8px;
  margin-top: 8px !important;
}

.tvc-info-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #F7F6F2;
  border: 1px solid #E0DED8;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1C1C1A;
  text-decoration: none;
  white-space: nowrap;
  align-self: flex-start;
  transition: border-color 0.15s, background 0.15s;
}
.tvc-info-link:hover { background: #EAF8EE; border-color: #B9EDD0; color: #0D7A3E; }
.tvc-info-link img { border-radius: 4px; }

@media (max-width: 600px) {
  .tvc-form-card { padding: 16px; gap: 20px; }
  .tvc-result-card { padding: 20px 16px; position: static; }
  .tvc-info { padding: 16px; }
  .tvc-subtitle { padding-left: 0; }
  .tvc-options--2col { grid-template-columns: 1fr 1fr; }
}
