/* ==========================================================================
   FOUNDER'S AUTONOMOUS STUDIO & ENGINE CSS
   Design System: Industrial Drafting Canvas, Blueprints & Precision Telemetry
   ========================================================================== */

:root {
  --studio-bg: #F4EFE6;
  --studio-panel: #FFFDF9;
  --studio-card: #FFFBF3;
  --studio-blue: #144272;
  --studio-blue-light: #205295;
  --studio-accent-blue: #3B60C5;
  --studio-border: #D1C7B7;
  --studio-border-dark: #A19D94;
  --studio-text: #1E1E1E;
  --studio-text-muted: #6B6860;
  --studio-green: #2E7D32;
  --studio-orange: #D34B32;
  --studio-gold: #E8B042;
}

.studio-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--studio-border-dark);
  padding-bottom: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.studio-title-area h1 {
  font-family: var(--font-sans);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--studio-blue);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.studio-title-area p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--studio-text-muted);
}

.studio-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EBF3FA;
  border: 1px solid var(--studio-accent-blue);
  border-radius: 3px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--studio-blue);
  font-weight: 600;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--studio-green);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.25);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Tabs Navigation */
.studio-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--studio-border);
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.studio-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--studio-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.studio-tab-btn:hover {
  color: var(--studio-blue);
  background: rgba(255, 255, 255, 0.4);
}

.studio-tab-btn.active {
  color: var(--studio-blue);
  background: var(--studio-panel);
  border-color: var(--studio-border-dark);
  border-bottom: 2px solid var(--studio-panel);
  margin-bottom: -1px;
}

/* Main Studio Layout Panes */
.studio-pane {
  display: none;
  background: var(--studio-panel);
  border: 1px solid var(--studio-border-dark);
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.05);
  padding: 32px;
}

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

/* Grid splits */
.studio-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 960px) {
  .studio-split-grid {
    grid-template-columns: 1fr;
  }
}

/* Panel Sections */
.studio-card-box {
  background: var(--studio-card);
  border: 1px solid var(--studio-border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.studio-card-box h2, .studio-card-box h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--studio-text);
  margin-bottom: 12px;
}

.studio-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.studio-form-group label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--studio-text);
}

.studio-input, .studio-select, .studio-textarea {
  background: #fff;
  border: 1px solid var(--studio-border-dark);
  border-radius: 3px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--studio-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.studio-input:focus, .studio-select:focus, .studio-textarea:focus {
  border-color: var(--studio-blue);
  box-shadow: 0 0 0 2px rgba(20, 66, 114, 0.15);
}

.studio-textarea {
  min-height: 120px;
  resize: vertical;
}

/* SEO Keyword Table Matrix */
.seo-results-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 16px;
}

.seo-results-table th {
  background: var(--studio-blue);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.seo-results-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--studio-border);
  background: #FFFDF9;
}

.seo-results-table tr:hover td {
  background: #F8F5EC;
}

.badge-intent {
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-intent-info { background: #E3F2FD; color: #1565C0; }
.badge-intent-comm { background: #E8F5E9; color: #2E7D32; }
.badge-intent-trans { background: #FFF3E0; color: #E65100; }

.difficulty-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
}
.diff-easy { background: #E8F5E9; color: #2E7D32; }
.diff-med { background: #FFF8E1; color: #F57F17; }
.diff-hard { background: #FFEBEE; color: #C62828; }

/* Action Buttons */
.btn-studio-primary {
  background: var(--studio-blue);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-studio-primary:hover {
  background: var(--studio-blue-light);
  transform: translateY(-1px);
}

.btn-studio-secondary {
  background: #FFFBF3;
  color: var(--studio-blue);
  border: 1px solid var(--studio-blue);
  border-radius: 3px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-studio-secondary:hover {
  background: #EBF3FA;
}

/* Code Snippet Box */
.studio-code-box {
  background: #144272;
  color: #FFFBF3;
  padding: 18px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 14px 0;
  position: relative;
}

.btn-copy-code {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  border-radius: 2px;
  cursor: pointer;
}
.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Telemetry Activity Log */
.telemetry-log-feed {
  background: #0E1626;
  color: #A5D6A7;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 18px;
  border-radius: 4px;
  height: 260px;
  overflow-y: auto;
}

.telemetry-entry {
  margin-bottom: 8px;
  line-height: 1.4;
}

.telemetry-time {
  color: #81D4FA;
  margin-right: 8px;
}

/* Responsive adjustments for mobile viewports */
@media (max-width: 600px) {
  .studio-container {
    padding: 90px 12px 60px;
    overflow-x: hidden;
  }
  .studio-pane {
    padding: 16px 12px;
    overflow-x: hidden;
  }
  .studio-card-box {
    padding: 16px 12px;
  }
  .studio-input, .studio-select, .studio-textarea {
    width: 100%;
    box-sizing: border-box;
  }
  .studio-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .studio-tab-btn {
    padding: 10px 14px;
    font-size: 11px;
  }
  .btn-studio-primary {
    width: 100%;
    justify-content: center;
    font-size: 11.5px;
    padding: 10px 14px;
  }
}
