/**
 * MEDAILY - MULTI-DEVICE SIMULATOR STYLES
 * Simulação fidedigna de iPhone, iPad e MacBook
 */

.device-simulator-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem 4rem;
  overflow: hidden;
}

/* Barra de Controles do Simulador */
.device-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.device-selector-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.device-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.device-btn:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.device-btn.active {
  background: var(--color-primary);
  color: var(--color-primary-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.device-content-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.device-content-switch label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.device-content-select {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* Área de Exibição dos Dispositivos */
.device-stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: 100%;
}

.device-stage-container.view-all {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4.5rem;
}

/* ==========================================================================
   1. MOCKUP IPHONE (iPhone 16 Pro)
   ========================================================================== */
.mockup-iphone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.iphone-frame {
  width: 380px;
  height: 740px;
  background: #15161A;
  border: 10px solid #28292E;
  border-radius: 54px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Botões Laterais Físicos */
.iphone-frame::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 130px;
  width: 3px;
  height: 48px;
  background: #3A3B40;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 65px 0 #3A3B40, 0 120px 0 #3A3B40;
}

.iphone-frame::after {
  content: '';
  position: absolute;
  right: -13px;
  top: 170px;
  width: 3px;
  height: 70px;
  background: #3A3B40;
  border-radius: 0 2px 2px 0;
}

.iphone-status-bar {
  height: 42px;
  width: 100%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.iphone-dynamic-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 25px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.iphone-camera-lens {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111424;
  border: 1px solid #1C2436;
}

.iphone-screen-viewport {
  flex: 1;
  width: 100%;
  background: var(--color-bg);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: thin;
}

.iphone-home-indicator {
  height: 20px;
  width: 100%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.iphone-home-bar {
  width: 125px;
  height: 4px;
  background: var(--color-text-muted);
  border-radius: 3px;
  opacity: 0.6;
}

/* ==========================================================================
   2. MOCKUP IPAD (iPad Pro 11")
   ========================================================================== */
.mockup-ipad-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 780px;
}

.ipad-frame {
  width: 100%;
  max-width: 760px;
  height: 540px;
  background: #18191E;
  border: 14px solid #2A2B30;
  border-radius: 36px;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.38), 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ipad-top-sensor {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1A1F2E;
  z-index: 15;
}

.ipad-screen-viewport {
  flex: 1;
  width: 100%;
  background: var(--color-bg);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: thin;
}

/* ==========================================================================
   3. MOCKUP MACBOOK (MacBook Pro 16")
   ========================================================================== */
.mockup-macbook-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1040px;
}

.macbook-screen-lid {
  width: 100%;
  max-width: 960px;
  height: 560px;
  background: #18191E;
  border: 12px solid #1C1D21;
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.macbook-webcam-notch {
  height: 28px;
  background: #1C1D21;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.macbook-window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  left: 14px;
}

.macbook-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.macbook-dot.close { background: #FF5F56; }
.macbook-dot.min { background: #FFBD2E; }
.macbook-dot.max { background: #27C93F; }

.macbook-address-bar {
  background: #28292E;
  border-radius: 6px;
  padding: 0.15rem 1.25rem;
  font-size: 0.75rem;
  color: #A0A2AA;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.macbook-screen-viewport {
  flex: 1;
  width: 100%;
  background: var(--color-bg);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: thin;
}

.macbook-base {
  width: 100%;
  max-width: 1040px;
  height: 16px;
  background: linear-gradient(180deg, #3A3B40 0%, #202124 100%);
  border-radius: 0 0 16px 16px;
  position: relative;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

.macbook-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  background: #1A1B1E;
  border-radius: 0 0 6px 6px;
}

/* Estilos de Conteúdo Compacto nos Viewports dos Dispositivos */
.device-compact-landing {
  padding: 1.5rem 1rem;
}

.device-compact-landing .landing-hero-headline {
  font-size: 1.65rem;
  line-height: 1.2;
}

.device-compact-landing .landing-hero-subtitle {
  font-size: 0.92rem;
  line-height: 1.55;
}

.device-compact-landing .landing-hero-photo-frame {
  max-width: 100%;
}

.device-compact-landing .landing-hero-photo {
  height: 320px;
}

.device-compact-platform {
  padding: 1.25rem 0.85rem;
}
