/* ── Google SERP Previewer Subpage Stylesheet ── */

/* Workspace Grid & Cards */
.workspace-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 60px;
  animation: fadeUp 0.5s var(--ease);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 32px;
  align-items: start;
}

.fav-preview-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-panel .ws-card {
  padding: 32px !important;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.control-panel .ws-card .control-group {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

.ws-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ws-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ws-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.ws-card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inputs & Form Groups */
.control-group {
  margin-bottom: 20px;
}

.control-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-70);
  margin-bottom: 8px;
}

.control-group input[type="text"],
.control-group select,
.control-group textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.control-group input:focus,
.control-group select:focus,
.control-group textarea:focus {
  outline: none;
  border-color: var(--border-hover);
  background: var(--surface-3);
}

.counter {
  font-size: 0.75rem;
  color: var(--fg-40);
  font-weight: 600;
}

/* Progress and pixel gauges */
.progress-bar-container {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #10b981;
  transition: width 0.2s, background-color 0.2s;
}

.progress-bar.warning {
  background: #f59e0b;
}

.progress-bar.error {
  background: #ef4444;
}

.gauge-label {
  display: block;
  font-size: 0.72rem;
  color: var(--fg-40);
  margin-top: 8px;
  font-weight: 600;
}

/* Tab controls */
.tab-triggers {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--fg-40);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--fg-70);
}

.tab-btn.active {
  background: var(--surface-3);
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.hidden {
  display: none !important;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Google Search Preview Cards (Dark theme Google Mock) ── */
.serp-card {
  background: #202124;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  max-width: 650px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Desktop styles */
.serp-card.desktop {
  font-family: Arial, sans-serif;
}

.serp-breadcrumbs {
  font-size: 14px;
  color: #bdc1c6;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.serp-breadcrumbs .chevron {
  color: #9aa0a6;
}

.serp-title {
  font-size: 20px;
  color: #8ab4f8;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-word;
}

.serp-title:hover {
  text-decoration: underline;
}

.serp-desc {
  font-size: 14px;
  line-height: 1.57;
  color: #bdc1c6;
  margin: 0;
  word-break: break-word;
}

/* Mobile styles */
.serp-card.mobile {
  font-family: Roboto, Arial, sans-serif;
  max-width: 375px;
}

.mobile-site-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mobile-favicon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #303134;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8ab4f8;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.06);
}

.mobile-site-name {
  font-size: 14px;
  color: #e8eaed;
  font-weight: 400;
}

.mobile-site-path {
  font-size: 12px;
  color: #9aa0a6;
}

.serp-card.mobile .serp-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.serp-card.mobile .serp-desc {
  font-size: 14px;
}

/* Rich Ratings */
.serp-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 13px;
  color: #bdc1c6;
}

.rating-stars {
  color: #fbbc05;
}

.rating-meta {
  color: #9aa0a6;
}

/* FAQ accordion */
.serp-faq {
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 8px;
}

.faq-item {
  font-size: 13px;
  color: #bdc1c6;
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  cursor: pointer;
}

.faq-header:hover {
  color: #e8eaed;
}

.faq-question-text {
  font-weight: 600;
}

.faq-body {
  padding: 4px 0 10px 0;
  color: #9aa0a6;
  line-height: 1.5;
}
