/*
Theme Name: BuzzBundle
Theme URI: https://buzzbundle.co.uk
Author: BuzzBundle
Description: A modern block theme for BuzzBundle — navy header, magenta accent, and a signature zigzag divider. Full-site editing, no page builder required. Built for PHP 8.2+.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buzzbundle
*/

/* theme.json handles the bulk of styling. This file covers effects the
   editor cannot express: the header texture, sticky-nav blur, hover lifts. */

/* --- Header atmosphere: dot texture + magenta glow over the gradient --- */
.bb-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(208,24,99,.35), transparent 55%),
    linear-gradient(160deg,#1c1a4a 0%,#141230 100%);
}
.bb-header::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000);
          mask-image: linear-gradient(180deg, transparent, #000 40%, #000);
  pointer-events: none;
}
.bb-header > * { position: relative; z-index: 1; }

/* --- Sticky nav with blur --- */
.bb-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.bb-nav .wp-block-navigation-item__content { font-weight: 600; }

/* --- Logo mark --- */
.bb-logo {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(150deg,#d01863,#a01050);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(208,24,99,.7);
}
.bb-logo svg { width: 28px; height: 28px; }

/* --- Floating callout card that overlaps the header --- */
.bb-callout {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px -24px rgba(28,26,74,.45);
  margin-top: -56px;
  position: relative; z-index: 5;
}

/* --- Zigzag divider --- */
.bb-zigzag { display: block; width: 100%; height: 22px; color: var(--wp--preset--color--magenta); }
.bb-zigzag svg { display: block; width: 100%; height: 22px; }

/* --- Card hover lift --- */
.bb-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px -24px rgba(28,26,74,.45);
  border-color: transparent;
}
.bb-card .bb-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--wp--preset--color--paper);
  display: grid; place-items: center;
  color: var(--wp--preset--color--magenta);
}
.bb-card .bb-icon svg { width: 26px; height: 26px; }

/* --- Eyebrow label --- */
.bb-eyebrow {
  display: inline-block;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--wp--preset--color--magenta); font-weight: 700;
}

/* --- Buttons: lift on hover --- */
.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; box-shadow: 0 12px 30px -10px rgba(208,24,99,.6); }
.wp-block-button__link:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
