/* ═══════════════════════════════════════════════
   SEO Meta Tag Checker — Styles
   ═══════════════════════════════════════════════ */

.smc-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.smc-field-wrap {
  display: flex;
  flex-direction: column;
}

.smc-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.smc-field-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.smc-counter-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}

.smc-input {
  width: 100%;
  padding: 12px 16px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.15s;
}

.smc-input:focus {
  border-color: var(--yellow);
}

.smc-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--white);
  resize: vertical;
  outline: none;
  line-height: 1.5;
  transition: border-color 0.15s;
}

.smc-textarea:focus {
  border-color: var(--yellow);
}

/* Progress bars */
.smc-progress-wrap {
  height: 3px;
  background: #1a1a1a;
  width: 100%;
  overflow: hidden;
  margin-top: 6px;
}

.smc-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--muted);
  transition: width 0.2s, background 0.2s;
}

.smc-progress-bar.green {
  background: var(--green, #00c875);
}

.smc-progress-bar.amber {
  background: #f59e0b;
}

.smc-progress-bar.red {
  background: #ff3b3b;
}

/* Helper text below inputs */
.smc-field-note {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

.smc-field-note.green {
  color: var(--green, #00c875);
}

.smc-field-note.amber {
  color: #f59e0b;
}

.smc-field-note.red {
  color: #ff3b3b;
}

/* Live SERP Section */
.smc-serp-section {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  margin-top: 30px;
}

.smc-serp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.smc-serp-title {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Device Toggles */
.smc-device-toggles {
  display: inline-flex;
  border: 1px solid var(--border);
  background: #0a0a0a;
}

.smc-toggle-btn {
  padding: 6px 14px;
  border: none;
  background: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.smc-toggle-btn:hover {
  color: var(--white);
  background: #111;
}

.smc-toggle-btn.active {
  background: var(--yellow);
  color: var(--ink, #0c0c0c);
  font-weight: 700;
}

/* Google Mock Card Styling */
.smc-preview-card {
  border: 1px solid var(--border);
  background: #171717; /* Slate dark search theme card background */
  padding: 24px;
  display: flex;
  justify-content: center;
  transition: width 0.3s;
}

.smc-google-snippet {
  font-family: Arial, sans-serif;
  text-align: left;
  width: 100%;
  max-width: 600px;
  background: #202124; /* Google Dark Mode background */
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.smc-g-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.smc-g-fav {
  font-size: 14px;
  margin-right: 8px;
  color: #bdc1c6;
}

.smc-g-url-info {
  display: flex;
  flex-direction: column;
}

.smc-g-site-name {
  color: #e8eaed;
  font-weight: normal;
  line-height: 1.3;
}

.smc-g-url-breadcrumb {
  color: #bdc1c6;
  font-size: 11px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 480px;
}

.smc-g-more {
  margin-left: auto;
  color: #bdc1c6;
  cursor: pointer;
  font-size: 14px;
}

.smc-g-title {
  font-size: 20px;
  line-height: 1.3;
  color: #8ab4f8; /* Google Dark Mode title link blue */
  font-weight: 400;
  margin: 0 0 4px 0;
  word-break: break-word;
  cursor: pointer;
  text-decoration: none;
}

.smc-g-title:hover {
  text-decoration: underline;
}

.smc-g-title.empty {
  color: #5f6368;
}

.smc-g-desc {
  font-size: 14px;
  line-height: 1.57;
  color: #bdc1c6; /* Google Dark Mode body grey */
  margin: 0;
  word-break: break-word;
}

.smc-g-desc.empty {
  color: #5f6368;
  font-style: italic;
}

/* Simulation view adjustments */
.smc-preview-card.mobile .smc-google-snippet {
  max-width: 375px;
  border-radius: 12px;
  padding: 12px;
}

.smc-preview-card.mobile .smc-g-title {
  font-size: 18px;
}

.smc-preview-card.mobile .smc-g-desc {
  font-size: 13px;
  line-height: 1.5;
}

/* FAQ accordion - identical to bcc style */
.smc-faq-item {
  border-bottom: 1px solid var(--border);
}
.smc-faq-item:last-child {
  border-bottom: none;
}

.smc-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;
}

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

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

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

.smc-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;
}

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

.smc-faq-a ul {
  margin-top: 8px;
  padding-left: 20px;
}

.smc-faq-a li {
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .smc-preview-card {
    padding: 12px;
  }
}
