/**
 * dopic.app - Mobile Stylesheet for [mc-skin]
 * Minecraft 3D Skin Viewer - iOS Premium Design System
 */

/* =========================================================================
   1. TOP 3D INTERACTIVE STAGE CARD
   ========================================================================= */
.mc-m-stage-card {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid var(--border-light, #e2e8f0) !important;
  border-radius: 20px !important;
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.08) !important;
  padding: 0.85rem !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  margin-bottom: 0.85rem !important;
}

.mc-stage-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 0.15rem !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.mc-stage-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.mc-stage-title {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.mc-stage-badge {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: #059669 !important;
  background: #ecfdf5 !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  border: 1px solid #a7f3d0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 120px !important;
}

.mc-pose-badge {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  background: #f8fafc !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* 3D Canvas Viewport Box */
.mc-canvas-viewport {
  width: 100% !important;
  height: clamp(280px, 40vh, 330px) !important;
  background: radial-gradient(circle at 50% 40%, #0f172a 0%, #070a13 100%) !important;
  border: 1.5px solid #1e293b !important;
  border-radius: 16px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

.mc-canvas-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  touch-action: none !important; /* Critical for smooth 3D orbit controls without page scrolling */
}

.mc-canvas-hint {
  position: absolute !important;
  bottom: 8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 3px 12px !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

/* In-stage Quick Action Pills */
.mc-stage-actions {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
}

.mc-stage-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0.5rem 0.35rem !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: all 0.15s ease !important;
}

.mc-stage-btn:active {
  transform: scale(0.97) !important;
}

.mc-stage-btn.active {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
  font-weight: 800 !important;
}

/* =========================================================================
   2. GENERIC MOBILE CARDS (White Frosted iOS Style)
   ========================================================================= */
.mc-m-card {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid var(--border-light, #e2e8f0) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06) !important;
  padding: 0.95rem 1rem !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  margin-bottom: 0.85rem !important;
}

.mc-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.mc-card-title {
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.mc-card-badge {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: #059669 !important;
  background: #ecfdf5 !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  border: 1px solid #a7f3d0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* =========================================================================
   3. 8 POPULAR COOL SKIN PRESETS GRID
   ========================================================================= */
.mc-presets-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.mc-preset-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 0.48rem 0.55rem !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-align: left !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  gap: 4px !important;
}

.mc-preset-pill:active {
  transform: scale(0.97) !important;
}

.mc-preset-pill.active {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.22) !important;
}

.pill-left {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  overflow: hidden !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.pill-icon {
  font-size: 0.95rem !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.pill-name {
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
}

.mc-preset-pill.active .pill-name {
  color: #047857 !important;
  font-weight: 800 !important;
}

.pill-tag {
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  padding: 1px 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  max-width: 60px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
}

.mc-preset-pill.active .pill-tag {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* =========================================================================
   4. POSES & ACTIONS GRID
   ========================================================================= */
.mc-poses-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
}

.mc-pose-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 0.45rem 0.2rem !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.mc-pose-btn:active {
  transform: scale(0.96) !important;
}

.mc-pose-btn.active {
  background: #10b981 !important;
  border-color: #10b981 !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
}

.pose-icon {
  font-size: 1.1rem !important;
}

.pose-text {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
}

.mc-pose-btn.active .pose-text {
  color: #ffffff !important;
}

/* =========================================================================
   5. CUSTOM IMPORT (PLAYER ID SEARCH & LOCAL UPLOAD)
   ========================================================================= */
.mc-id-search-row {
  display: flex !important;
  gap: 8px !important;
  width: 100% !important;
}

.mc-id-input {
  flex: 1 !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 0.6rem 0.85rem !important;
  font-size: 0.82rem !important;
  color: #0f172a !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.mc-id-input:focus {
  border-color: #10b981 !important;
  background: #ffffff !important;
}

.btn-fetch-id {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 0 1.1rem !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28) !important;
  transition: all 0.15s ease !important;
}

.btn-fetch-id:active {
  transform: scale(0.96) !important;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2) !important;
}

.btn-m-upload-skin {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0.65rem 1rem !important;
  background: #f8fafc !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-radius: 12px !important;
  color: #334155 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.btn-m-upload-skin:active {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
}

/* =========================================================================
   6. PRIMARY DOWNLOAD ACTION BUTTONS (Skin File & 3D Pose - Vertical Stack)
   ========================================================================= */
.m-export-actions-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 0.6rem !important;
  margin-bottom: 1.75rem !important;
}

.btn-download-primary,
.btn-m-download-skin {
  width: 100% !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.38) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  padding: 0.75rem 1rem !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-download-primary:active,
.btn-m-download-skin:active {
  transform: scale(0.98) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.btn-m-download-render {
  width: 100% !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #0f172a !important;
  color: #38bdf8 !important;
  border: 1.5px solid #1e293b !important;
  border-radius: 14px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  padding: 0.65rem 1rem !important;
  text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.15) !important;
  transition: all 0.2s ease !important;
}
.btn-m-download-render:active {
  background: #1e293b !important;
  transform: scale(0.98) !important;
}

/* =========================================================================
   7. SEO Hub Clean iOS Light Aesthetic (Ensure High-Contrast Legibility)
   ========================================================================= */
.m-app-container .seo-block-title,
.seo-block-title {
  color: #0f172a !important;
}

.m-app-container .seo-block-sub,
.seo-block-sub {
  color: #64748b !important;
}

.seo-step-card,
.seo-usecase-card,
.seo-feature-card,
.seo-faq-item,
.seo-specs-table-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
}

.seo-step-num {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
}

.seo-step-title,
.seo-usecase-title,
.seo-feature-title,
.seo-faq-q-text {
  color: #0f172a !important;
}

.seo-step-desc,
.seo-usecase-desc,
.seo-feature-desc,
.seo-faq-a-text {
  color: #64748b !important;
}

.seo-faq-question {
  background: #ffffff !important;
  color: #0f172a !important;
}

.seo-faq-item.active .seo-faq-question {
  color: #059669 !important;
}

.seo-faq-answer {
  background: #f8fafc !important;
  color: #475569 !important;
}

.seo-cta-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  border: 1px solid #a7f3d0 !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08) !important;
}

.seo-cta-title {
  color: #065f46 !important;
}

.seo-cta-desc {
  color: #047857 !important;
}
