/* Androdom Open Graph & Twitter Card Image Generator Stylesheet */
@import "../loremipsum/style.css";

/* Workspace & Layout Metrics */
.workspace {
  flex: 1;
  width: 100%;
  padding-bottom: 4rem;
}

.workspace-layout {
  display: flex;
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Enhanced Sidebar Controls */
.sidebar {
  width: 360px;
  flex-shrink: 0;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--navbar-height, 60px) + 1rem);
}

.settings-group {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-group h3 {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 0.25rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* File Upload Controls */
.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
}

.upload-btn-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

/* Range Sliders & Headers */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-value {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--accent-color);
  font-family: monospace;
}

.form-range {
  width: 100%;
  accent-color: var(--accent-color);
  cursor: pointer;
}

/* Color Pickers Dual Wrapper */
.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.color-picker-input {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 0.4rem;
  padding: 2px;
  background: var(--bg-panel);
  cursor: pointer;
  flex-shrink: 0;
}

.hex-input {
  font-family: monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Canvas Container & Live Edit Floating Bar */
.canvas-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Settings Group Header with Template Badge */
.settings-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.settings-group-header h3 {
  margin: 0;
  padding: 0;
  border: none;
}

.template-badge-pill {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--accent-color);
  background: var(--accent-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--accent-color);
  white-space: nowrap;
}

.svg-inline-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.tab-svg-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
}

/* Wireframe 9: Version Changelog */
.wireframe-changelog {
  flex-direction: column;
  justify-content: space-between;
}
.wireframe-changelog .wf-ver-badge { font-size: 5px; font-weight: bold; background: var(--accent-color); color: white; padding: 1px 4px; border-radius: 2px; width: max-content; }
.wireframe-changelog .wf-title { width: 90%; height: 7px; background: var(--text-muted); opacity: 0.7; border-radius: 2px; }
.wireframe-changelog .wf-bullets { display: flex; flex-direction: column; gap: 2px; }
.wireframe-changelog .wf-bullets div { width: 70%; height: 3px; background: var(--accent-color); opacity: 0.5; border-radius: 1px; }

/* Wireframe 10: Live Event / Webinar */
.wireframe-event {
  flex-direction: column;
  justify-content: space-between;
}
.wireframe-event .wf-live-tag { font-size: 5px; font-weight: bold; background: #BE555F; color: white; padding: 1px 4px; border-radius: 2px; width: max-content; }
.wireframe-event .wf-title { width: 85%; height: 7px; background: var(--text-muted); opacity: 0.7; border-radius: 2px; }
.wireframe-event .wf-speaker-box { width: 100%; height: 14px; background: var(--accent-glow); border: 1px dashed var(--accent-color); border-radius: 3px; }

.overlay-field {
  pointer-events: auto;
  cursor: text;
  border: 1.5px dashed transparent;
  border-radius: 6px;
  padding: 4px 8px;
  color: transparent;
  caret-color: var(--accent-color);
  transition: all 0.2s ease;
  user-select: text;
  width: max-content;
  max-width: 90%;
  font-weight: 600;
  font-size: 0.85rem;
}

.overlay-field:hover {
  border-color: var(--accent-color);
  background: rgba(205, 92, 62, 0.12);
}

.overlay-field:focus {
  outline: none;
  border-color: var(--accent-color);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.live-edit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 0.775rem;
}

.live-edit-badge {
  font-weight: 600;
  color: var(--accent-color);
}

.live-edit-hint {
  color: var(--text-secondary);
}

/* Color Swatches Grid */
.color-swatches-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.swatch-btn {
  height: 32px;
  border-radius: 0.4rem;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.swatch-btn:hover {
  transform: scale(1.1);
  border-color: var(--accent-color);
}

.swatch-btn.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-glow);
  transform: scale(1.08);
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-card:hover {
  border-color: var(--accent-color);
}

.checkbox-card input[type="checkbox"] {
  accent-color: var(--accent-color);
  width: 16px;
  height: 16px;
}

/* Content Area Workspace */
.content-area {
  flex: 1;
  min-width: 0;
}

/* VISUAL TEMPLATE SELECTOR (myogimage.com Inspired) */
.template-selector-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
}

.template-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.template-selector-title h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: inline-block;
}

.template-count-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.template-category-tabs {
  display: flex;
  gap: 0.4rem;
}

.category-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab:hover {
  border-color: var(--accent-color);
  color: var(--text-primary);
}

.category-tab.active {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

.template-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.visual-template-card {
  background: var(--bg-panel);
  border: 2px solid var(--border-color);
  border-radius: 0.6rem;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 95px;
}

.visual-template-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.visual-template-card.active {
  border-color: var(--accent-color);
  background: var(--accent-glow);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.vt-name {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mini Wireframe CSS Visual Previews */
.mini-wireframe {
  height: 52px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.4rem;
  position: relative;
  overflow: hidden;
  padding: 0.35rem;
  display: flex;
}

/* Wireframe 1: Image Right */
.wireframe-image-right {
  justify-content: space-between;
  align-items: center;
}
.wireframe-image-right .wf-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 55%;
}
.wireframe-image-right .wf-pill { width: 14px; height: 3px; background: var(--accent-color); border-radius: 2px; }
.wireframe-image-right .wf-title { width: 100%; height: 7px; background: var(--text-muted); opacity: 0.6; border-radius: 2px; }
.wireframe-image-right .wf-line { width: 70%; height: 4px; background: var(--text-muted); opacity: 0.3; border-radius: 2px; }
.wireframe-image-right .wf-right-box { width: 38%; height: 100%; background: var(--accent-glow); border: 1px solid var(--accent-color); border-radius: 3px; }

/* Wireframe 2: Hero Preview */
.wireframe-hero {
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.wireframe-hero .wf-center-pill { width: 16px; height: 3px; background: var(--accent-color); border-radius: 2px; }
.wireframe-hero .wf-title { width: 80%; height: 6px; background: var(--text-muted); opacity: 0.6; border-radius: 2px; }
.wireframe-hero .wf-hero-box { width: 90%; height: 20px; background: var(--accent-glow); border: 1px dashed var(--accent-color); border-radius: 3px; }

/* Wireframe 3: Corporate Split */
.wireframe-corporate {
  gap: 4px;
}
.wireframe-corporate .wf-side-panel { width: 35%; height: 100%; background: var(--bg-main); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.wireframe-corporate .wf-avatar { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-color); }
.wireframe-corporate .wf-subline { width: 80%; height: 3px; background: var(--text-muted); opacity: 0.4; }
.wireframe-corporate .wf-main-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.wireframe-corporate .wf-title { width: 90%; height: 7px; background: var(--text-muted); opacity: 0.7; border-radius: 2px; }
.wireframe-corporate .wf-line { width: 60%; height: 4px; background: var(--text-muted); opacity: 0.3; border-radius: 2px; }
.wireframe-corporate .wf-grad-line { width: 100%; height: 2px; background: linear-gradient(90deg, var(--accent-color), transparent); }

/* Wireframe 4: Testimonial */
.wireframe-testimonial {
  gap: 4px;
}
.wireframe-testimonial .wf-avatar-col { width: 35%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.wireframe-testimonial .wf-circle-avatar { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-color); }
.wireframe-testimonial .wf-stars { font-size: 6px; color: #f59e0b; line-height: 1; }
.wireframe-testimonial .wf-quote-col { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.wireframe-testimonial .wf-quote-mark { font-size: 10px; color: var(--accent-color); font-weight: bold; line-height: 1; }
.wireframe-testimonial .wf-title { width: 100%; height: 6px; background: var(--text-muted); opacity: 0.7; border-radius: 2px; }
.wireframe-testimonial .wf-line { width: 70%; height: 4px; background: var(--text-muted); opacity: 0.3; border-radius: 2px; }

/* Wireframe 5: Product Showcase */
.wireframe-product {
  position: relative;
  justify-content: space-between;
  align-items: center;
}
.wireframe-product .wf-badge-new { position: absolute; top: 2px; left: 2px; font-size: 5px; font-weight: bold; background: #6C8E6C; color: white; padding: 1px 3px; border-radius: 2px; }
.wireframe-product .wf-left-img { width: 30px; height: 30px; background: var(--accent-glow); border: 1px solid var(--accent-color); border-radius: 4px; margin-top: 6px; }
.wireframe-product .wf-right-checklist { flex: 1; margin-left: 6px; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.wireframe-product .wf-check-item { font-size: 6px; color: #6C8E6C; font-weight: bold; line-height: 1; }

/* Wireframe 6: Tech Stack / Logos */
.wireframe-logos {
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.wireframe-logos .wf-title { width: 80%; height: 7px; background: var(--text-muted); opacity: 0.7; border-radius: 2px; margin-top: 2px; }
.wireframe-logos .wf-logo-row { display: flex; gap: 4px; }
.wireframe-logos .wf-logo-badge { width: 12px; height: 12px; border-radius: 3px; background: var(--accent-glow); border: 1px solid var(--accent-color); }

/* Wireframe 7: Terminal Code */
.wireframe-terminal {
  flex-direction: column;
  background: #0b0f19;
  border-color: #1e293b;
  justify-content: space-between;
}
.wireframe-terminal .wf-dots { display: flex; gap: 2px; }
.wireframe-terminal .wf-dots span { width: 3px; height: 3px; border-radius: 50%; background: #BE555F; }
.wireframe-terminal .wf-dots span:nth-child(2) { background: #f59e0b; }
.wireframe-terminal .wf-dots span:nth-child(3) { background: #6C8E6C; }
.wireframe-terminal .wf-prompt { font-size: 5px; color: #6C8E6C; font-family: monospace; }
.wireframe-terminal .wf-title { width: 90%; height: 6px; background: #ffffff; opacity: 0.8; border-radius: 2px; }

/* Wireframe 8: Minimal Quote */
.wireframe-basic {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.wireframe-basic .wf-circle-avatar { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-color); }
.wireframe-basic .wf-title { width: 75%; height: 6px; background: var(--text-muted); opacity: 0.7; border-radius: 2px; }
.wireframe-basic .wf-line { width: 50%; height: 4px; background: var(--text-muted); opacity: 0.3; border-radius: 2px; }

/* Canvas Live Preview */
.canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
}

.canvas-wrapper canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background-color: #0b0f19;
}

/* Action Bar Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.action-grid .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none !important;
}

/* Code Snippet Box */
.code-output-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.code-output-box pre {
  margin: 0.5rem 0 0 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: monospace;
  font-size: 0.825rem;
  color: var(--accent-color);
  background: var(--bg-panel);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

/* Centered Full-Width SEO Section Container (OUTSIDE of .workspace-layout) */
.seo-container {
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .workspace-layout {
    flex-direction: column;
    padding: 1rem;
  }
  .sidebar {
    width: 100%;
  }
  .sidebar-inner {
    position: static;
  }
  .template-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
