/*
  browser-mockup.css
  Estilos del componente mockup de navegador.

  PALETA: Usa variables CSS del portafolio (--accent-gold, --color-bg, etc.)
  IMPORTAR: Agregar @import o <link> en Layout.astro junto al resto de CSS del portafolio.

  NOTAS PARA CLAUDE CODE:
  - NO incluye estilos de body ni de contenedor padre — esos son del carrusel existente
  - .image-browser-content acepta <img> directamente; width y height los controla el carrusel
  - El SVG de la barra es decorativo; escala con el ancho del contenedor automáticamente
  - .image-browser-placeholder es solo para desarrollo; eliminar cuando haya imagen real
*/

/* ── Contenedor principal del mockup ── */
.image-browser {
  box-shadow:
    0px 4px 24px rgba(0, 0, 0, 0.35),
    0px 20px 60px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(240, 168, 48, 0.08); /* sutil borde dorado del portafolio */
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  /* Permite integración sin romper el layout del carrusel */
  position: relative;
}

/* ── Barra superior (SVG del navegador) ── */
.image-browser-bar {
  width: 100%;
  flex-shrink: 0;
  line-height: 0; /* elimina espacio extra bajo el SVG */
}

.image-browser-bar svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Área de contenido (imagen del proyecto) ── */
.image-browser-content {
  background-color: #ffffff;
  width: 100%;
  flex: 1;
  overflow: hidden;
  line-height: 0;
}

.image-browser-content img {
  display: block;
  width: 100%;
  height: auto;
  /* Aspect ratio 16:9 para consistencia entre proyectos */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  /* Evita que imágenes más grandes rompan el layout */
  max-width: 100%;
}

/* ── Placeholder de desarrollo (eliminar en producción) ── */
.image-browser-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    135deg,
    #1a1f2a 0%,
    #141820 50%,
    #0f1218 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Texto URL dentro del SVG (por si se necesita override) ── */
.bm-url-text {
  font-family: 'Open Sans', 'Fira Code', monospace;
  font-size: 10px;
  fill: #707070;
}

/* ── Responsive ── */

/* Tablet: reducir sombra para no competir con otras secciones */
@media (max-width: 1024px) {
  .image-browser {
    box-shadow:
      0px 8px 32px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(240, 168, 48, 0.06);
    border-radius: 6px;
  }
}

/* Mobile: sombra mínima, sin borde dorado */
@media (max-width: 768px) {
  .image-browser {
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
  }

  .image-browser-content img {
    /* En mobile puede ser útil mostrar más contenido vertical */
    object-position: top left;
  }
}
