/* Olive hacker theme - single stylesheet (mobile-first) */

/* 1) Reset and root tokens */
:root{
  --olive: #6b8e23;
  --olive-900: #3a4a2f;
  --olive-800: #4f6a2a;
  --olive-700: #6b8e23;
  --olive-glow: rgba(110,190,60,.95);
  --bg: #2a3118;
  --fg: #e8fbdc;
  --glass: rgba(15,23,15,.65);
  --glass-border: rgba(140,190,100,.45);
  --shadow: 0 8px 24px rgba(0,0,0,.4);
  --focus: 3px solid #d7ffd9;
}
*,*::before,*::after{ box-sizing:border-box; }
html, body { height:100%; }
body {
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--fg);
  background-color: var(--olive-900);
  /* olive noise texture background (subtle speckle) */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.08) 1px, transparent 1px),
    radial-gradient(circle at 3px 3px, rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(40,50,20,.9), rgba(14,22,10,.9));
  background-size: 6px 6px, 6px 6px, cover;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* 2) Layout (mobile-first) */
main {
  padding: 1.5rem 1rem;
  display: grid;
  justify-items: center;
  align-items: start;
}
.image-frame {
  width: min(100%, 900px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25);
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
  position: relative;
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.05);
  transform: translateZ(0);
}
.image-frame::after {
  /* subtle neon glow around the image frame (frosted glass vibe) */
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  box-shadow: inset 0 0 60px rgba(120,230,120,.25),
              0 0 40px rgba(40,120,40,.45);
  mix-blend-mode: screen;
}
.image-frame::before {
  /* frosted top sheen to reinforce hacker / cyberpunk vibe */
  content:"";
  position:absolute; left:0; right:0; top:0; height:40%;
  background: linear-gradient(to bottom, rgba(2,4,2,.6), rgba(2,4,2,.0));
  pointer-events:none;
  backdrop-filter: blur(0.5px);
}

/* Frosted glass overlay for hero feel (when used with overlaid text) */
.hero-glass {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15,23,15,.6);
  border: 1px solid rgba(140,190,100,.5);
  backdrop-filter: blur(6px);
  display: none; /* shown only if content is injected via HTML */
}
@media (min-width: 600px){
  .hero-glass { display: block; }
}

/* 3) CTA styling (prominent, accessible focus) */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.25rem; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(#5e8a2a, #3d6915);
  color: #fafff2;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* 4) Section wrappers for a clean hero-like feel (even with provided HTML) */
.product-ad {
  width: min(100%, 720px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(15,23,15,.65);
  border: 1px solid rgba(140,190,100,.5);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
}
.product-ad h3 { margin: 0; font-size: 1.05rem; }
.product-ad a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; border-radius: 6px;
  background: linear-gradient(#6aba4a, #4a8c2a);
  color: #07250a; font-weight: 700;
  border: 1px solid rgba(20,60,20,.6);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.product-ad a:focus-visible { outline: 3px solid #d7ffd9; outline-offset: 2px; }

/* 5) Footer alignment for a cyberpunk ad block */
footer { display: grid; justify-items: center; padding: 2rem 1rem; width: 100%; }
footer p { color: rgba(230,255,230,.9); margin: 0.25rem 0 0; font-size: .95rem; }

/* 6) Responsive tweaks (tablet/desktop) */
@media (min-width: 700px){
  main { padding: 2.5rem 2rem; }
  .image-frame { border-radius: 18px; }
}
@media (min-width: 1024px){
  .product-ad { grid-template-columns: auto 1fr; }
  .hero-glass { display: none; } /* preserve clean hero on wide screens if not used */
}
