/**
 * PicDriver - Image to Hologram Converter Stylesheet
 * Cyberpunk OLED Glassmorphic Studio with Full Responsive Layout
 */

:root {
  --holo-cyan: #00f2fe;
  --holo-blue: #38bdf8;
  --holo-indigo: #6366f1;
  --holo-pink: #ec4899;
  --holo-green: #10b981;
  --holo-bg-pitch: #000000;
  --holo-panel-bg: rgba(15, 23, 42, 0.75);
  --holo-panel-border: rgba(56, 189, 248, 0.2);
}

/* Base resets & typography */
body {
  background-color: #030712;
  color: #f1f5f9;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Tool Header & Badge */
.tool-hero {
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, rgba(3, 7, 18, 0) 70%);
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--holo-cyan);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.tool-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #94a3b8;
}

/* Main Studio Workspace */
.tool-workspace {
  max-width: 1380px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.75rem;
  align-items: start;
}

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

/* Stage & Viewport Column */
.stage-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stage-wrapper {
  background: #000000;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 20px 40px -15px rgba(0, 242, 254, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
}

.stage-actions {
  display: flex;
  gap: 0.5rem;
}

.stage-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--holo-blue);
  color: #ffffff;
}

/* Hologram Canvas Viewer */
.canvas-viewport {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 680px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

#hologram-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* True Black Fullscreen Mode */
.fullscreen-mode {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0 !important;
  background: #000000 !important;
}

.fullscreen-mode .stage-header,
.fullscreen-mode .stage-subviews {
  display: none !important;
}

.fullscreen-mode .canvas-viewport {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  border-radius: 0 !important;
}

/* Secondary Views: 3D Virtual Simulation & Template */
.stage-subviews {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .stage-subviews {
    grid-template-columns: 1fr;
  }
}

.subview-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.subview-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.virtual-canvas-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #020617;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

#virtual-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Control Panels Column */
.controls-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-card {
  background: var(--holo-panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--holo-panel-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.panel-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Drag & Drop Upload Zone */
.drop-zone {
  border: 2px dashed rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.04);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.drop-zone:hover,
.drop-zone.drag-active {
  border-color: var(--holo-cyan);
  background: rgba(0, 242, 254, 0.08);
}

/* Upload Preview Box */
.upload-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 10px;
}

.upload-preview-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
}

.upload-preview-info {
  flex: 1;
  min-width: 0;
}

.upload-preview-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-preview-dims {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

.btn-clear-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.btn-clear-thumb:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.drop-zone-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem;
  color: var(--holo-blue);
}

.drop-zone-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}

.drop-zone-sub {
  font-size: 0.75rem;
  color: #64748b;
}

/* 3D Hologram Style Presets (Apply to Uploaded Image or Demo Models) */
.style-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.style-preset-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-align: left;
}

.style-preset-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--holo-blue);
  color: #fff;
  transform: translateY(-1px);
}

.style-preset-btn.active {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--holo-cyan);
  color: var(--holo-cyan);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.25);
}

.style-preset-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-preset-info {
  display: flex;
  flex-direction: column;
}

.style-preset-title {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.style-preset-sub {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 500;
}

.style-preset-btn.active .style-preset-sub {
  color: rgba(0, 242, 254, 0.7);
}

/* Sample Model Chips */
.sample-model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.sample-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.sample-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sample-chip.active {
  background: var(--holo-cyan);
  color: #020617;
  border-color: var(--holo-cyan);
  font-weight: 700;
}

.sample-chip.uploaded-active {
  background: linear-gradient(135deg, #6366f1, #00f2fe);
  color: #fff;
  border-color: #00f2fe;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
}

/* Preset Grid */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.3);
}

.preset-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: var(--holo-cyan);
  border-color: var(--holo-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* Color Filter Mode Pills */
.color-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.color-mode-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.color-mode-btn.active {
  background: var(--holo-cyan);
  color: #020617;
  border-color: var(--holo-cyan);
  font-weight: 700;
}

/* Sliders and Input Controls */
.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.control-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--holo-cyan);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 9999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--holo-blue);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Switch Toggles */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.3s;
  border-radius: 22px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: var(--holo-cyan);
}

input:checked + .slider-round:before {
  transform: translateX(16px);
  background-color: #020617;
}

/* Select dropdowns */
.holo-select {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  width: 100%;
}

.holo-select:focus {
  border-color: var(--holo-blue);
}

/* Primary Action Buttons */
.action-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Video Recording State */
.btn-secondary.recording {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
  animation: pulseRecording 1.5s infinite;
}

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  animation: blink 0.8s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

@keyframes pulseRecording {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  border: 1px solid var(--holo-blue);
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000000;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Educational SEO Content Sections */
.info-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.info-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.info-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #f8fafc;
}

.info-card p,
.info-card li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.info-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-box {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
}

.feature-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--holo-blue);
  margin-bottom: 0.5rem;
}

/* FAQ Accordions */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.faq-item summary {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

/* Sample Model Notification Banner */
.sample-model-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #fde68a;
  animation: fadeInNotice 0.25s ease-out;
}

@keyframes fadeInNotice {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-return-photo {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #020617;
  border: none;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-return-photo:hover {
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
  transform: scale(1.04);
}

.active-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  flex-shrink: 0;
}
