/* ═══════════════════════════════════════════════
   Byte & Character Counter Tool — Styles
   ═══════════════════════════════════════════════ */

.bcc-field-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bcc-field-hint {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.68rem;
  opacity: .6;
}

/* Input area */
.bcc-input-wrap {
  position: relative;
  margin-bottom: 24px;
}

.bcc-textarea {
  width: 100%;
  padding: 18px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.6;
  resize: vertical;
  min-height: 180px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bcc-textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 10px rgba(229, 179, 0, 0.05);
}

/* Metrics Dashboard Grid */
.bcc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.bcc-metric-card {
  padding: 20px 16px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.12s, transform 0.12s;
}

.bcc-metric-card:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.bcc-metric-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bcc-metric-val {
  font-family: var(--cond);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--yellow);
  word-break: break-all;
}

.bcc-metric-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Character Breakdown Panel */
.bcc-analysis-panel {
  border: 1px solid var(--border);
  background: #0a0a0a;
  margin-top: 24px;
}

.bcc-analysis-title {
  padding: 12px 16px;
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bcc-analysis-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--white);
}

.bcc-analysis-row:last-child {
  border-bottom: none;
}

.bcc-analysis-row span:last-child {
  color: var(--yellow);
}

/* Radio Override for Bento Grid */
.bento-options-grid input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.12s, background 0.12s;
}

.bento-options-grid input[type="radio"]:checked {
  background: var(--yellow);
  border-color: var(--yellow);
}

.bento-options-grid input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ink, #0c0c0c);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* FAQ Accordion Styling */
.bcc-faq-item {
  border-bottom: 1px solid var(--border);
}
.bcc-faq-item:last-child {
  border-bottom: none;
}

.bcc-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  transition: background 0.12s, color 0.12s;
  background: none;
  border: none;
  cursor: pointer;
}

.bcc-faq-q:hover {
  background: #0d0d0d;
  color: var(--yellow);
}

.bcc-faq-icon {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.12s;
}

.bcc-faq-q[aria-expanded="true"] {
  background: #0d0d0d;
  color: var(--yellow);
}
.bcc-faq-q[aria-expanded="true"] .bcc-faq-icon {
  transform: rotate(45deg);
  color: var(--yellow);
}

.bcc-faq-a {
  display: none;
  padding: 0 28px 20px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  background: #0a0a0a;
}

.bcc-faq-a.open {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .bcc-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .bcc-metrics-grid {
    grid-template-columns: 1fr;
  }
}
