/*
Theme Name: BDVDev WPMU Red
Theme URI: https://bdvdev.com
Author: BDV
Author URI: https://bdvdev.com
Description: Lightweight, SEO-friendly theme inspired by premium product sites (WPMU-like). Bright red primary, EDD-ready.
Version: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bdvdev-wpmu-red
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

/* ===== Tokens (Bright Red) ===== */
:root{
  --bdv-max:1180px;
  --bdv-pad:20px;

  --bg:#f6f7fb;
  --surface:#ffffff;
  --surface2:#fbfbfe;
  --border:rgba(15,23,42,.10);
  --text:#0f172a;
  --muted:rgba(15,23,42,.70);

  --primary:#ef4444;          /* bright red */
  --primary2:#f43f5e;         /* pink-red */
  --primary3:#fb7185;         /* hover tint */
  --good:#16a34a;
  --warn:#f59e0b;

  --radius:18px;
  --shadow:0 14px 40px rgba(2,6,23,.08);
  --shadow2:0 10px 28px rgba(2,6,23,.10);
  --shadow3:0 18px 52px rgba(2,6,23,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  line-height:1.6;
}
img{max-width:100%;height:auto}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:.18em}
.bdv-container{max-width:var(--bdv-max);margin:0 auto;padding:0 var(--bdv-pad)}
.bdv-skip{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.bdv-skip:focus{left:16px;top:16px;width:auto;height:auto;padding:10px 12px;background:#fff;z-index:9999;border:1px solid #111827;border-radius:12px}

/* ===== Header ===== */
.bdv-header{
  position:sticky;top:0;z-index:999;
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
}
.bdv-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:74px}
.bdv-brand{display:flex;align-items:center;gap:12px}
.bdv-brand a{color:var(--text);text-decoration:none}
.bdv-brand strong{font-size:1.05rem;letter-spacing:.2px}
.bdv-tag{font-size:.85rem;color:var(--muted)}
.bdv-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.bdv-nav a{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:999px;
  border:1px solid transparent;
  font-weight:700;
}
.bdv-nav a:hover{background:rgba(239,68,68,.10);border-color:rgba(239,68,68,.18);text-decoration:none}
.bdv-nav .current-menu-item>a,
.bdv-nav .current_page_item>a{background:rgba(239,68,68,.14);border-color:rgba(239,68,68,.25)}
.bdv-cta{display:none}
@media(min-width:980px){
  .bdv-cta{display:inline-flex}
}

/* ===== Layout / Cards ===== */
.bdv-main{padding:28px 0 54px}
.bdv-grid{display:grid;grid-template-columns:1fr;gap:18px}
@media(min-width:980px){.bdv-grid{grid-template-columns:1fr 360px}}
.bdv-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.bdv-card.pad{padding:18px}
.bdv-card.soft{box-shadow:none;background:var(--surface2)}
.bdv-section{margin:18px 0}
.bdv-kicker{color:var(--muted);font-weight:750;text-transform:uppercase;letter-spacing:.08em;font-size:.78rem}
.bdv-h1{font-size:2.25rem;line-height:1.15;margin:.25em 0 .2em}
@media(min-width:980px){.bdv-h1{font-size:2.65rem}}
.bdv-h2{font-size:1.55rem;line-height:1.2;margin:0 0 .45em}
.bdv-p{color:var(--muted);max-width:78ch;margin:.35em 0 0}

/* ===== Buttons / Hover pro ===== */
.bdv-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 16px;border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  box-shadow:var(--shadow2);
  border:0;
  font-weight:850;
  transform:translateY(0);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.bdv-btn:hover{
  filter:brightness(.99);
  transform:translateY(-2px);
  box-shadow:var(--shadow3);
  text-decoration:none;
}
.bdv-btn.ghost{
  background:#fff;color:var(--primary);
  border:1px solid rgba(239,68,68,.28);
  box-shadow:none;
}
.bdv-btn.ghost:hover{
  background:rgba(239,68,68,.06);
  transform:translateY(-1px);
}

/* ===== Feature grid ===== */
.bdv-feats{display:grid;grid-template-columns:1fr;gap:14px;margin-top:14px}
@media(min-width:860px){.bdv-feats{grid-template-columns:repeat(3,1fr)}}
.bdv-feat{
  padding:16px;border-radius:16px;border:1px solid var(--border);
  background:var(--surface2);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bdv-feat:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow2);
  border-color:rgba(239,68,68,.22);
}
.bdv-feat h3{margin:0 0 6px;font-size:1.05rem}
.bdv-feat p{margin:0;color:var(--muted)}

/* ===== Pricing ===== */
.bdv-price-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:860px){.bdv-price-grid{grid-template-columns:repeat(3,1fr)}}
.bdv-price{
  padding:18px;border-radius:18px;border:1px solid var(--border);
  background:#fff;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bdv-price:hover{transform:translateY(-2px);box-shadow:var(--shadow2);border-color:rgba(239,68,68,.22)}
.bdv-price.highlight{border-color:rgba(239,68,68,.35);box-shadow:var(--shadow2)}
.bdv-price .badge{
  display:inline-flex;align-items:center;gap:8px;font-size:.85rem;font-weight:900;
  color:var(--primary);background:rgba(239,68,68,.10);
  padding:6px 10px;border-radius:999px
}
.bdv-price h3{margin:10px 0 4px;font-size:1.15rem}
.bdv-price .money{font-size:2rem;font-weight:950;margin:6px 0}
.bdv-price ul{margin:10px 0 0;padding-left:18px;color:var(--muted)}
.bdv-price li{margin:6px 0}

/* ===== Footer ===== */
.bdv-footer{border-top:1px solid var(--border);padding:22px 0;background:rgba(255,255,255,.6)}
.bdv-meta{color:var(--muted);font-size:.95rem}

/* ===== Forms + EDD ===== */
input[type="text"],input[type="email"],input[type="password"],input[type="url"],input[type="tel"],input[type="number"],select,textarea{
  width:100%;
  border:1px solid rgba(15,23,42,.16);
  border-radius:14px;
  padding:11px 12px;
  background:#fff;
}
textarea{min-height:140px}

button, input[type="submit"], .edd-submit, .edd-add-to-cart{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 16px;border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;border:0;cursor:pointer;font-weight:900;
  transform:translateY(0);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow:var(--shadow2);
}
button:hover,input[type="submit"]:hover,.edd-submit:hover,.edd-add-to-cart:hover{
  filter:brightness(.99);
  transform:translateY(-2px);
  box-shadow:var(--shadow3);
}

fieldset{border:1px solid var(--border);border-radius:18px;padding:16px;margin:14px 0;background:#fff}
.edd_errors,.edd_error,.edd_success,.edd-success,.edd-notice{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 14px;
  background:#fff;
  box-shadow:0 10px 24px rgba(2,6,23,.06);
}

/* tables */
table{width:100%;border-collapse:separate;border-spacing:0}
table.edd-table, table.edd_purchase_receipt{
  border:1px solid var(--border);border-radius:18px;overflow:hidden;background:#fff
}
table.edd-table th,table.edd-table td,table.edd_purchase_receipt th,table.edd_purchase_receipt td{
  padding:12px 12px;border-bottom:1px solid rgba(15,23,42,.06);text-align:left;vertical-align:top
}
table.edd-table thead th,table.edd_purchase_receipt thead th{background:rgba(15,23,42,.03)}
table tr:last-child td{border-bottom:0}

/* ===== Account (Sidebar left) – hooks from plugin shortcode ===== */
.bdv-account{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:980px){.bdv-account{grid-template-columns:280px 1fr}}
.bdv-account-nav{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.bdv-account-nav a{
  display:flex;align-items:center;gap:10px;
  padding:12px 14px;
  border-bottom:1px solid rgba(15,23,42,.06);
  color:var(--text);
  font-weight:850;
  text-decoration:none;
  transition:background .18s ease, color .18s ease;
}
.bdv-account-nav a:hover{background:rgba(239,68,68,.08)}
.bdv-account-nav a.is-active{background:rgba(239,68,68,.14);color:var(--primary)}
.bdv-account-nav a:last-child{border-bottom:0}
.bdv-account-content{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow);
  padding:18px;
}
.bdv-icon{
  width:26px;height:26px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(239,68,68,.10);color:var(--primary);font-weight:950;
}
