/* CSS: Pink parchment + indigo hacker aesthetic with frosted glass (mobile-first) */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }

/* Color and theme variables */
:root {
  --bg: #fbd7e6;        /* soft parchment pink base */
  --bg2: #f2c7d9;       /* subtle variation */
  --ink: #1b1140;        /* indigo text for contrast */
  --glass: rgba(255,255,255,.14);
  --glass-dark: rgba(255,255,255,.08);
  --accent: #4b3fb5;      /* indigo accent */
  --accent2: #e91e63;     /* pink accent */
  --glow: 0 0 12px rgba(75,63,181,.6);
  --focus: 3px solid #fff;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--ink);
  background: linear-gradient(135deg, #fbd7e6 0%, #f2c7d9 50%, #e6a8c9 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout containers */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 1.5rem;
}

.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px) saturate(110%);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  position: relative;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(110%);
}

/* Hero-like frosted panel around the image (subtle overlay) */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,.08), rgba(255,255,255,.02));
  pointer-events: none;
  mix-blend-mode: overlay;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Footer / promo card (frosted glass look) */
footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem 2rem;
}

.product-ad {
  width: min(92vw, 720px);
  margin: 1rem auto;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  color: #0a0a2a;
}

.product-ad h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #1b1140;
  letter-spacing: .2px;
  display: inline-block;
}

.product-ad a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #7a4bd0 100%);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}

.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.product-ad p {
  margin: 0;
  color: #fff;
  padding: 0;
  font-size: 0.95rem;
}

/* Footer label text */
footer p {
  text-align: center;
  font-size: 0.85rem;
  color: #6a6470;
  margin: 0.75rem 0 0;
}

/* Focus visibility for links */
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
  padding: 1px;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Responsive tweaks (desktop/tablet) */
@media (min-width: 768px) {
  main {
    padding: 3rem 2rem 2rem;
  }
  .image-frame {
    width: 64vw;
    max-width: 720px;
  }
  .product-ad {
    justify-content: space-between;
  }
}
