/* ==========================================================================
   DEVICE FRAME - DELIKATESSA B2B MOBILE APP
   Clean mobile display: Desktop phone mockup & native full-bleed on mobile
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: #0b1120;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(5, 150, 105, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #070d18 0%, #0f172a 100%);
  color: var(--primary-900);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   CANVAS CONTAINER
   ========================================================================== */
.prototype-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

/* Phone Bezel Frame (Desktop) */
.device-frame {
  width: var(--device-width);
  height: var(--device-height);
  max-height: 96vh;
  background: #000000;
  border-radius: 52px;
  padding: 12px;
  box-shadow: 
    0 25px 70px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 35px rgba(5, 150, 105, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 4px solid #334155;
  transition: all var(--transition-smooth);
}

/* Hardware Buttons */
.device-frame::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 110px;
  width: 4px;
  height: 48px;
  background: #475569;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 60px 0 #475569, 0 120px 0 #475569;
}

.device-frame::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 140px;
  width: 4px;
  height: 68px;
  background: #475569;
  border-radius: 0 3px 3px 0;
}

/* Screen Area */
.device-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: var(--surface-subtle);
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 114px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #fff;
  font-size: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dynamic-island .camera-lens {
  width: 9px;
  height: 9px;
  background: #0f172a;
  border-radius: 50%;
  border: 1.5px solid #1e293b;
}

.dynamic-island .sensor {
  width: 6px;
  height: 6px;
  background: #111;
  border-radius: 50%;
}

/* Status Bar */
.status-bar {
  height: 42px;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-900);
  z-index: 900;
  background: transparent;
  user-select: none;
  flex-shrink: 0;
}

.status-bar .time {
  letter-spacing: -0.02em;
}

.status-bar .status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icons svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Home Indicator Bar */
.home-indicator {
  display: none !important;
}

/* ==========================================================================
   NATIVE MOBILE VIEWPORT & RESPONSIVE BEHAVIOR
   When opened on a mobile device or responsive inspector:
   Pure edge-to-edge mobile app design with zero desktop frames!
   ========================================================================== */
@media (max-width: 600px), (max-height: 720px) {
  body {
    background: #ffffff;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  .prototype-canvas {
    padding: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .device-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    overflow: hidden !important;
    flex: 1 !important;
    min-height: 0 !important;
  }

  .device-frame::before,
  .device-frame::after {
    display: none !important;
  }

  .device-screen {
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .dynamic-island {
    display: none !important;
  }

  .home-indicator {
    display: none !important;
  }

  .status-bar {
    display: none !important;
  }
}
