/* ==========================================================================
   WOLFMEDIA — TEAM SYNDICATE & ANTI-GRAVITY IPHONE 17 PRO MAX WEB BROWSER
   Sticky Centering, 3D Float Tilt Effect, iPhone 17 Pro Max Frame & Live Iframe
   ========================================================================== */

/* 1. SECTION WRAPPER */
.crew-spotlight-section {
  position: relative;
  background-color: #050505;
  background-image: 
    radial-gradient(ellipse at 50% 20%, rgba(0, 240, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(123, 47, 255, 0.06) 0%, transparent 50%);
  overflow: visible;
}

/* 2. HUD CONTROL BUTTONS */
.crew-hud-btn {
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8E8E8;
  background: rgba(20, 22, 28, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
}

.crew-hud-btn:hover {
  border-color: #00f0ff;
  color: #FFFFFF;
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.crew-hud-btn.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* 3. SHOWCASE MAIN GRID: LEFT LIST, STICKY CENTER, RIGHT LIST */
.crew-showcase-container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(390px, 440px) minmax(260px, 310px);
  justify-content: center;
  gap: 2rem;
  align-items: start;
  min-height: 980px;
}

@media (max-width: 1200px) {
  .crew-showcase-container {
    grid-template-columns: 240px 1fr 240px;
    gap: 1.25rem;
  }
}

@media (max-width: 1024px) {
  .crew-showcase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    min-height: auto;
  }
}

/* 4. CENTER STICKY STAGE (ANTI-GRAVITY CONTAINER) */
.crew-center-stage {
  position: sticky;
  top: 8vh;
  z-index: 25;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  transform-style: preserve-3d;
  width: 100%;
}

@media (max-width: 1024px) {
  .crew-center-stage {
    position: static;
    top: auto;
    width: 100%;
    order: -1;
  }
}

.iphone-17-wrapper {
  width: 100%;
  max-width: 420px;
  perspective: 1400px;
  transform-style: preserve-3d;
}

/* 5. IPHONE 17 PRO MAX CHASSIS & BEZEL */
.iphone-17-chassis {
  position: relative;
  width: 100%;
  height: 820px;
  background: #0d0f14;
  border-radius: 54px;
  padding: 10px;
  box-shadow: 
    0 35px 80px rgba(0, 0, 0, 0.95), 
    0 0 50px rgba(0, 240, 255, 0.22), 
    inset 0 0 0 2px rgba(255, 255, 255, 0.18),
    inset 0 0 0 5px #1c212a;
  transform-style: preserve-3d;
  user-select: none;
  animation: anti-gravity-float 6s ease-in-out infinite alternate;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.iphone-17-chassis:hover {
  box-shadow: 
    0 45px 95px rgba(0, 0, 0, 0.98), 
    0 0 65px rgba(0, 240, 255, 0.35), 
    inset 0 0 0 2px rgba(0, 240, 255, 0.4),
    inset 0 0 0 5px #1c212a;
  animation-play-state: paused;
}

/* Idle Floating Wave */
@keyframes anti-gravity-float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.35deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Specular Glare Layer across Glass & Titanium */
.iphone-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 54px;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: overlay;
}

/* Hardware Buttons (Titanium CNC Cutouts) */
.iphone-btn {
  position: absolute;
  background: #252a34;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 5px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Left Buttons: Action, Volume Up, Volume Down */
.iphone-btn-action {
  left: -5px;
  top: 115px;
  width: 5px;
  height: 28px;
  border-radius: 3px 0 0 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.iphone-btn-volup {
  left: -5px;
  top: 160px;
  width: 5px;
  height: 52px;
  border-radius: 3px 0 0 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.iphone-btn-voldn {
  left: -5px;
  top: 226px;
  width: 5px;
  height: 52px;
  border-radius: 3px 0 0 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Right Buttons: Power/Siri, Camera Control */
.iphone-btn-power {
  right: -5px;
  top: 175px;
  width: 5px;
  height: 68px;
  border-radius: 0 3px 3px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.iphone-btn-camera {
  right: -5px;
  top: 480px;
  width: 5px;
  height: 55px;
  border-radius: 0 3px 3px 0;
  background: #1b1e24;
  border-right: 1px solid rgba(0, 240, 255, 0.3);
}

/* Antenna Bands */
.iphone-antenna {
  position: absolute;
  width: 5px;
  height: 4px;
  background: #111317;
}
.iphone-antenna--tl { left: -5px; top: 75px; }
.iphone-antenna--bl { left: -5px; bottom: 75px; }
.iphone-antenna--tr { right: -5px; top: 75px; }
.iphone-antenna--br { right: -5px; bottom: 75px; }

/* 6. OLED DISPLAY FRAME */
.iphone-screen-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 46px;
  background: #000000;
  border: 3.5px solid #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
}

/* Dynamic Island Pill */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 30px;
  background: #000000;
  border-radius: 20px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.3s ease;
}

.dynamic-island:hover {
  width: 135px;
}

.island-sensor {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b0d12;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1);
}

.island-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 6px #00f0ff;
  animation: pulse 2s infinite;
}

.island-camera {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0e1522;
  border: 1.5px solid #141c2c;
  position: relative;
  overflow: hidden;
}

.island-camera::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.35);
}

/* iOS Status Bar */
.ios-status-bar {
  position: relative;
  z-index: 40;
  height: 44px;
  padding: 8px 22px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #FFFFFF;
  background: #000000;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ios-status-time {
  font-weight: 700;
  font-size: 13px;
}

.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

/* 7. SAFARI MOBILE WEB BROWSER HEADER */
.safari-browser-header {
  position: relative;
  z-index: 35;
  background: #121418;
  padding: 6px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.safari-address-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 10px;
  background: #1e222a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  color: #E2E8F0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease;
}

.safari-address-bar:hover {
  border-color: rgba(0, 240, 255, 0.45);
}

.safari-url-display {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.safari-lock-icon {
  width: 12px;
  height: 12px;
  color: #00f0ff;
  flex-shrink: 0;
}

.safari-url-text {
  color: #FFFFFF;
}

.safari-url-domain {
  color: #94A3B8;
}

.safari-url-handle {
  color: #00f0ff;
  font-weight: 600;
}

.safari-btn-icon {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.safari-btn-icon:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.safari-btn-icon.spinning svg {
  animation: spin-once 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spin-once {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Safari Web Progress Loading Bar */
.safari-progress-container {
  height: 2px;
  width: 100%;
  background: transparent;
  overflow: hidden;
  position: absolute;
  bottom: 0;
  left: 0;
}

.safari-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1E90FF, #00f0ff);
  box-shadow: 0 0 8px #00f0ff;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.safari-progress-bar.is-loading {
  animation: safari-load 0.75s ease-out forwards;
}

@keyframes safari-load {
  0% { width: 0%; opacity: 1; }
  40% { width: 65%; opacity: 1; }
  85% { width: 95%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* 8. IFRAME VIEWPORT CONTAINER */
.iphone-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  background: #000000;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.phone-web-iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: none;
  background: #ffffff;
  display: block;
}

.iphone-viewport::-webkit-scrollbar,
.phone-web-iframe::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.iphone-viewport::-webkit-scrollbar-thumb,
.phone-web-iframe::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
}

/* 9. SAFARI BOTTOM NAVIGATION TOOLBAR */
.safari-bottom-bar {
  position: relative;
  z-index: 35;
  height: 44px;
  background: #121418;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
  color: #00f0ff;
}

.safari-nav-btn {
  background: none;
  border: none;
  color: #00f0ff;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.safari-nav-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  color: #FFFFFF;
}

.safari-nav-btn:disabled,
.safari-nav-btn.is-disabled {
  color: rgba(255, 255, 255, 0.2);
  cursor: default;
}

/* 10. IOS HOME INDICATOR BAR */
.ios-home-indicator-wrap {
  background: #121418;
  padding-bottom: 6px;
  padding-top: 2px;
  display: flex;
  justify-content: center;
}

.ios-home-indicator {
  width: 135px;
  height: 4.5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease;
}

.ios-home-indicator:hover {
  background: #FFFFFF;
}

/* 11. SIDE CLIENT CARDS (MINIMAL, CLEAN, NO GRADIENTS, NO HEAVY EFFECTS) */
.crew-side-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
}

.crew-side-card {
  position: relative;
  background: #0c0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.crew-side-card:hover {
  background: #11141c;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Selected Active Card */
.crew-side-card.is-active {
  background: #121622;
  border-color: #38bdf8;
}

.crew-side-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.crew-side-avatar-wrap {
  flex-shrink: 0;
}

.crew-side-avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #181a20;
  display: block;
  transition: border-color 0.2s ease;
}

.crew-side-card.is-active .crew-side-avatar {
  border-color: #38bdf8;
}

.crew-side-content {
  flex: 1;
  min-width: 0;
}

.crew-side-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.crew-side-role {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
}

.crew-side-card.is-active .crew-side-role {
  color: #38bdf8;
}

.crew-side-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.crew-side-card.is-active .crew-side-active-dot {
  background: #38bdf8;
}

.crew-side-name {
  font-family: var(--font-space, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}

.crew-side-quote {
  font-family: var(--font-space, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* GTA Corner Brackets */
.gta-bracket {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #00f0ff;
  pointer-events: none;
  z-index: 20;
}
.gta-bracket--tl { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
.gta-bracket--tr { top: 6px; right: 6px; border-top: 2px solid; border-right: 2px solid; }
.gta-bracket--bl { bottom: 6px; left: 6px; border-bottom: 2px solid; border-left: 2px solid; }
.gta-bracket--br { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }

/* ==========================================================================
   MOBILE BREAKPOINTS — 1024px, 768px, 480px, 360px OPTIMIZATION
   ========================================================================== */
@media (max-width: 1024px) {
  .crew-showcase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    min-height: auto;
    width: 100%;
  }

  .crew-center-stage {
    position: static;
    top: auto;
    width: 100%;
    order: -1;
  }

  .crew-side-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 760px;
  }
}

@media (max-width: 768px) {
  .crew-side-list {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 10px;
  }

  .iphone-17-wrapper {
    max-width: 360px;
    margin: 0 auto;
  }

  .iphone-17-chassis {
    height: 680px;
    border-radius: 46px;
    padding: 8px;
  }

  .iphone-screen-frame {
    border-radius: 40px;
  }

  .safari-nav-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .crew-side-card {
    min-height: 44px;
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .iphone-17-wrapper {
    max-width: 320px;
  }

  .iphone-17-chassis {
    height: 570px;
    border-radius: 40px;
    padding: 7px;
  }

  .iphone-screen-frame {
    border-radius: 34px;
  }

  .dynamic-island {
    width: 100px;
    height: 26px;
  }

  .crew-side-avatar {
    width: 44px;
    height: 44px;
  }

  .crew-side-name {
    font-size: 0.88rem;
  }

  .crew-side-role {
    font-size: 0.62rem;
  }

  .crew-side-quote {
    font-size: 0.72rem;
  }
}

@media (max-width: 360px) {
  .iphone-17-wrapper {
    max-width: 290px;
  }

  .iphone-17-chassis {
    height: 505px;
    border-radius: 34px;
    padding: 6px;
  }

  .iphone-screen-frame {
    border-radius: 28px;
  }

  .dynamic-island {
    width: 85px;
    height: 22px;
  }

  .crew-side-card {
    padding: 10px;
  }

  .crew-side-quote {
    display: none;
  }
}
