/*
Theme Name: WeedGuru v3
Theme URI: https://www.weedguru.com/
Author: WeedGuru
Description: A modern, lightweight standalone theme for the restored WeedGuru archive and forum.
Version: 0.3.0
Text Domain: weedguru-v3
*/

:root {
  --wg-green: #67ad2f;
  --wg-green-dark: #2f6f1d;
  --wg-ink: #202020;
  --wg-muted: #6a6a6a;
  --wg-paper: #f6f5ef;
  --wg-card: #ffffff;
  --wg-line: #deddd6;
  --wg-dark: #161916;
  --wg-max: 1180px;
  --wg-reading: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wg-ink);
  background: var(--wg-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--wg-green-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--wg-green); }
img { max-width: 100%; height: auto; }

.wg-shell { width: min(calc(100% - 32px), var(--wg-max)); margin-inline: auto; }

/* Header */
.wg-site-header {
  background: var(--wg-dark);
  border-bottom: 4px solid var(--wg-green);
}
.wg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 112px;
}
.wg-brand img { width: min(100%, 390px); display: block; }
.wg-brand a { display: block; }
.wg-nav-toggle { display: none; }
.wg-primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wg-primary-nav li { position: relative; }
.wg-primary-nav a {
  display: block;
  padding: 10px 2px;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
}
.wg-primary-nav a:hover,
.wg-primary-nav .current-menu-item > a,
.wg-primary-nav .current-menu-ancestor > a { color: #9bd263; }

.wg-primary-nav .sub-menu {
  display: none;
  position: absolute;
  z-index: 20;
  left: 0;
  top: 100%;
  min-width: 250px;
  padding: 10px;
  background: #222722;
  border: 1px solid #394339;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.wg-primary-nav li:hover > .sub-menu { display: block; }
.wg-primary-nav .sub-menu li { width: 100%; }
.wg-primary-nav .sub-menu a { padding: 8px 10px; }

/* Banner */
.wg-banner {
  min-height: 230px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(10,20,8,.35), rgba(10,20,8,.5)),
    url('/wp-content/uploads/2020/02/banner-bg.jpg') center/cover no-repeat;
  border-bottom: 1px solid #20321a;
}
.wg-banner-copy {
  text-align: center;
  padding: 36px 20px;
  text-shadow: 0 2px 14px rgba(0,0,0,.65);
}
.wg-banner-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.wg-banner-copy p { margin: 0; font-size: clamp(1rem, 2vw, 1.25rem); }

.wg-forum-strip {
  background: #fff;
  border-bottom: 1px solid var(--wg-line);
}
.wg-forum-strip-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wg-forum-strip strong { font-size: 1.05rem; }
.wg-button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--wg-green);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
}
.wg-button:hover { background: var(--wg-green-dark); color: #fff; }

/* Main */
.wg-main { padding: 44px 0 64px; }
.wg-card {
  background: var(--wg-card);
  border: 1px solid var(--wg-line);
  border-radius: 14px;
  box-shadow: 0 7px 24px rgba(30,40,25,.055);
}
.wg-content {
  width: min(100%, var(--wg-reading));
  margin-inline: auto;
  padding: clamp(24px, 5vw, 52px);
}
.wg-content-wide { width: 100%; }
.wg-entry-title {
  margin-top: 0;
  margin-bottom: 28px;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3.35rem);
}
.wg-entry-content > :first-child { margin-top: 0; }
.wg-entry-content h2, .wg-entry-content h3 { line-height: 1.2; margin-top: 1.7em; }
.wg-entry-content img {
  border-radius: 8px;
}
.wg-entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wg-entry-content .alignleft { float: left; margin: .4rem 1.3rem 1rem 0; }
.wg-entry-content .alignright { float: right; margin: .4rem 0 1rem 1.3rem; }
.wg-entry-content::after { content: ""; display: table; clear: both; }

/* Compatibility with old WeedGuru / Bootstrap-like markup */
.wg-entry-content .row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0 0 28px;
}
.wg-entry-content .col-md-6 {
  flex: 1 1 320px;
  min-width: 0;
}

/* Homepage */
/* Homepage v0.3 */
.wg-home-main { padding-bottom: 0; }
.wg-home-section { padding-bottom: 70px; }
.wg-section-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}
.wg-section-heading h2,
.wg-archive-copy h2 {
  margin: 0 0 14px;
  line-height: 1.08;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -.025em;
}
.wg-section-heading > p:last-child {
  margin: 0;
  color: var(--wg-muted);
  font-size: 1.08rem;
}
.wg-eyebrow,
.wg-gateway-kicker {
  margin: 0 0 8px;
  color: var(--wg-green-dark);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.wg-gateway-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.wg-gateway-card {
  grid-column: span 2;
  min-height: 275px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--wg-card);
  border: 1px solid var(--wg-line);
  border-top: 5px solid var(--wg-green);
  border-radius: 14px;
  box-shadow: 0 7px 24px rgba(30,40,25,.055);
}
.wg-gateway-card:nth-child(4),
.wg-gateway-card:nth-child(5) { grid-column: span 3; }
.wg-gateway-forum {
  color: #f1f5ee;
  background: #1b201b;
  border-color: #303a30;
  border-top-color: #86c94e;
}
.wg-gateway-forum .wg-gateway-kicker { color: #a6d97b; }
.wg-gateway-forum p { color: #cdd5c9; }
.wg-gateway-card h3 {
  margin: 0 0 12px;
  line-height: 1.1;
  font-size: 1.65rem;
}
.wg-gateway-card > p:not(.wg-gateway-kicker) {
  margin-top: 0;
  color: var(--wg-muted);
}
.wg-gateway-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid #4b5b48;
  border-radius: 50%;
  color: #bce58f;
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .05em;
}
.wg-card-link {
  margin-top: auto;
  color: #bce58f;
  font-weight: 800;
  text-decoration: none;
}
.wg-card-link:hover { color: #fff; }
.wg-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.wg-card-links a {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid #dce3d5;
  border-radius: 999px;
  background: #f3f6ef;
  color: #335f25;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}
.wg-card-links a:hover { background: #e8f2df; }

.wg-archive-feature {
  overflow: hidden;
  color: #edf3e9;
  background:
    radial-gradient(circle at 25% 20%, rgba(103,173,47,.16), transparent 30%),
    #171b17;
  border-top: 1px solid #293229;
  border-bottom: 1px solid #293229;
}
.wg-archive-feature-inner {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 7vw, 86px);
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.wg-archive-collage {
  min-height: 390px;
  position: relative;
}
.wg-archive-image {
  position: absolute;
  background-position: center;
  background-size: cover;
  border: 6px solid #f4f0e4;
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
}
.wg-archive-image-main {
  left: 0;
  top: 12px;
  width: 72%;
  height: 250px;
  transform: rotate(-3deg);
}
.wg-archive-image-forum {
  right: 0;
  bottom: 18px;
  width: 52%;
  height: 220px;
  transform: rotate(4deg);
}
.wg-archive-logo {
  position: absolute;
  left: 12%;
  bottom: 10px;
  width: 58%;
  max-width: 300px;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.35));
}
.wg-archive-copy .wg-eyebrow { color: #a5d878; }
.wg-archive-copy p {
  color: #cbd4c7;
  font-size: 1.04rem;
}
.wg-archive-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}
.wg-text-link {
  color: #b9df91;
  font-weight: 750;
  text-decoration: none;
}
.wg-text-link:hover { color: #fff; }
.wg-home-signoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.wg-home-signoff strong,
.wg-home-signoff span { display: block; }
.wg-home-signoff strong { font-size: 1.15rem; }
.wg-home-signoff span { color: var(--wg-muted); }
.wg-home-signoff > a {
  font-weight: 800;
  text-decoration: none;
}

/* Archive notice */
.wg-archive-note {
  margin-bottom: 26px;
  padding: 16px 18px;
  border-left: 4px solid var(--wg-green);
  background: #eef5e7;
  color: #34402f;
  border-radius: 6px;
  font-size: .96rem;
}

/* Footer */
.wg-site-footer {
  color: #d5ddd1;
  background: #111411;
  border-top: 4px solid var(--wg-green);
}
.wg-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
}
.wg-site-footer a { color: #a9da79; }

/* Hero refinements */
.wg-banner { min-height: 330px; }
.wg-banner-copy { max-width: 780px; }
.wg-kicker {
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
  color: #d8efbf;
}
.wg-banner-copy h1 { font-size: clamp(2.4rem, 5vw, 4.9rem); }
.wg-banner-copy p {
  max-width: 680px;
  margin: 0 auto 20px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.wg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.wg-button-secondary {
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.55);
}
.wg-button-secondary:hover { background: rgba(0,0,0,.68); }
.wg-forum-strip-inner { min-height: 84px; }
.wg-forum-strip-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}
.wg-forum-strip-copy img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.wg-forum-strip-copy span {
  display: block;
  color: var(--wg-muted);
  font-size: .94rem;
}

/* Responsive */
@media (max-width: 980px) {
  .wg-gateway-card { grid-column: span 3; }
  .wg-gateway-card:nth-child(5) { grid-column: span 6; }
  .wg-archive-feature-inner { grid-template-columns: 1fr; }
  .wg-archive-collage { width: min(100%, 620px); margin: 0 auto; }
}
@media (max-width: 900px) {
  .wg-header-inner { min-height: 92px; position: relative; }
  .wg-brand img { width: 280px; }
  .wg-nav-toggle {
    display: inline-block;
    border: 1px solid #556055;
    background: transparent;
    color: #fff;
    padding: 9px 12px;
    border-radius: 7px;
    font-weight: 700;
  }
  .wg-primary-nav {
    display: none;
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: 88px;
    padding: 16px;
    background: #171b17;
    border: 1px solid #384138;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
  }
  .wg-primary-nav.is-open { display: block; }
  .wg-primary-nav ul { display: block; }
  .wg-banner { min-height: 260px; }
  .wg-forum-strip-copy { align-items: flex-start; }
}
@media (max-width: 650px) {
  .wg-shell { width: min(calc(100% - 22px), var(--wg-max)); }
  .wg-banner { min-height: 220px; }
  .wg-forum-strip-inner,
  .wg-footer-inner,
  .wg-home-signoff {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .wg-content { padding: 22px 18px; }
  .wg-entry-content .alignleft,
  .wg-entry-content .alignright { float: none; display: block; margin: 1rem auto; }
  .wg-gateway-grid { display: block; }
  .wg-gateway-card { min-height: 0; margin-bottom: 16px; padding: 23px; }
  .wg-home-section { padding-bottom: 48px; }
  .wg-archive-feature-inner { padding-top: 50px; padding-bottom: 50px; }
  .wg-archive-collage { min-height: 300px; }
  .wg-archive-image-main { width: 74%; height: 190px; }
  .wg-archive-image-forum { width: 52%; height: 165px; }
  .wg-archive-logo { left: 8%; bottom: 5px; width: 64%; }
}
