/*
Theme Name: GamerFlori Merch
Theme URI: https://gamerflori.com
Author: GamerFlori
Description: Modern merch marketplace theme for partner shops, clubs, esport teams and creators.
Version: 0.1.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.2
Text Domain: gf-merch-theme
*/

:root {
  --gf-bg: #f6f8fb;
  --gf-surface: #ffffff;
  --gf-ink: #101827;
  --gf-muted: #627084;
  --gf-line: #dce3ee;
  --gf-blue: #2667ff;
  --gf-teal: #00a88f;
  --gf-yellow: #ffb703;
  --gf-coral: #ff5a5f;
  --gf-radius: 8px;
  --gf-shadow: 0 18px 50px rgba(16, 24, 39, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gf-bg);
  color: var(--gf-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.gf-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--gf-line);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-branding a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}
.site-branding__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: linear-gradient(135deg, var(--gf-blue), var(--gf-teal));
  border-radius: 8px;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 750;
  color: #263246;
}
.site-nav a:hover { color: var(--gf-blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.gf-button,
.button,
button,
input[type="submit"],
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: var(--gf-radius);
  background: var(--gf-blue);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.gf-button:hover,
.button:hover,
button:hover,
.woocommerce a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(38, 103, 255, .24);
}
.gf-button--primary { background: linear-gradient(135deg, var(--gf-blue), #6b4dff); }
.gf-button--ghost { background: #e9eef8; color: var(--gf-ink); }
.gf-button--light { background: #fff; color: var(--gf-ink); }

.gf-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 28px;
  align-items: stretch;
}
.gf-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 72px);
  color: #fff;
  background:
    linear-gradient(130deg, rgba(11, 17, 32, .96), rgba(26, 52, 98, .88)),
    radial-gradient(circle at 12% 18%, rgba(255, 183, 3, .75), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(0, 168, 143, .7), transparent 22%);
  border-radius: var(--gf-radius);
  overflow: hidden;
}
.gf-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gf-yellow);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.gf-hero h1,
.gf-partner-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: .94;
  letter-spacing: 0;
}
.gf-hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.12rem;
}
.gf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.gf-hero__panel {
  position: relative;
  min-height: 420px;
  border-radius: var(--gf-radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.78)),
    repeating-linear-gradient(135deg, rgba(38,103,255,.08) 0 12px, rgba(0,168,143,.08) 12px 24px);
  box-shadow: var(--gf-shadow);
  overflow: hidden;
}
.gf-product-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1 / 1.16;
  border-radius: var(--gf-radius);
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 950;
  box-shadow: 0 22px 60px rgba(16, 24, 39, .2);
}
.gf-product-card--one { top: 36px; left: 30px; background: linear-gradient(145deg, #2667ff, #6b4dff); }
.gf-product-card--two { right: 28px; top: 132px; background: linear-gradient(145deg, #101827, #00a88f); }
.gf-product-card--three { left: 86px; bottom: 40px; background: linear-gradient(145deg, #ff5a5f, #ffb703); color: #101827; }

.gf-section {
  width: min(1180px, calc(100% - 32px));
  margin: 74px auto;
}
.gf-section__head {
  max-width: 760px;
  margin-bottom: 26px;
}
.gf-section__head h1,
.gf-section__head h2,
.entry-content h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
}
.gf-section__head p { color: var(--gf-muted); font-size: 1.05rem; }
.gf-grid { display: grid; gap: 18px; }
.gf-grid--features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gf-grid--partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gf-feature,
.gf-partner-card,
.gf-empty,
.entry-content > .wp-block-group,
.woocommerce ul.products li.product {
  background: var(--gf-surface);
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius);
  box-shadow: 0 10px 30px rgba(16, 24, 39, .06);
}
.gf-feature { padding: 24px; }
.gf-feature h3 { margin: 0 0 8px; font-size: 1.12rem; }
.gf-feature p { margin: 0; color: var(--gf-muted); }

.gf-partner-card { overflow: hidden; }
.gf-partner-card__media {
  min-height: 168px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--partner-color, #2667ff), #101827 22%), #101827),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 10px, transparent 10px 20px);
  background-size: cover;
  background-position: center;
}
.gf-partner-card__media img,
.gf-partner-logo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--gf-radius);
  background: #fff;
  border: 3px solid rgba(255,255,255,.8);
}
.gf-partner-card__body { padding: 20px; }
.gf-partner-card__body span { color: var(--partner-color, var(--gf-blue)); font-weight: 900; font-size: .78rem; text-transform: uppercase; }
.gf-partner-card__body h3 { margin: 6px 0; font-size: 1.35rem; }
.gf-partner-card__body p { margin: 0; color: var(--gf-muted); }

.gf-band {
  width: min(1180px, calc(100% - 32px));
  margin: 74px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: var(--gf-radius);
  color: #fff;
  background: linear-gradient(135deg, #101827, #263b76 55%, #00a88f);
}
.gf-band h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; }

.gf-partner-hero {
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #101827, var(--partner-color, #2667ff));
  background-size: cover;
  background-position: center;
  color: #fff;
}
.gf-partner-hero__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 58px;
}
.gf-partner-hero p { max-width: 650px; color: rgba(255,255,255,.84); font-size: 1.1rem; }
.gf-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.gf-socials a {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--gf-radius);
  background: rgba(255,255,255,.12);
  font-weight: 800;
}

.gf-empty { padding: 30px; }
.gf-empty h3 { margin-top: 0; }
.gf-empty p { color: var(--gf-muted); }

.gf-form-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 52px auto 80px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 32px;
  align-items: start;
}
.gf-form-shell h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1; }
.gf-form-shell p { color: var(--gf-muted); font-size: 1.06rem; }
.gf-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius);
  box-shadow: var(--gf-shadow);
}
.gf-form label { display: grid; gap: 7px; font-weight: 800; }
.gf-form input,
.gf-form select,
.gf-form textarea,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
  width: 100%;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius);
  padding: 12px 13px;
  background: #fff;
  color: var(--gf-ink);
  font: inherit;
}
.gf-check { grid-template-columns: auto 1fr; align-items: start; font-weight: 650 !important; color: var(--gf-muted); }
.gf-check input { width: auto; margin-top: 6px; }
.gf-success { padding: 12px 14px; border-radius: var(--gf-radius); background: #e9fff9; color: #006b5a; font-weight: 850; }

.site-main {
  min-height: 60vh;
}
.entry-content {
  width: min(920px, calc(100% - 32px));
  margin: 48px auto 80px;
}
.entry-content > h1:first-child { margin-top: 0; }
.entry-content a { color: var(--gf-blue); font-weight: 800; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { border-bottom: 1px solid var(--gf-line); padding: 12px; text-align: left; }

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 14px 14px 18px;
}
.woocommerce ul.products li.product img {
  border-radius: var(--gf-radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--gf-ink);
  font-size: 1rem;
  line-height: 1.25;
}
.woocommerce div.product {
  width: min(1180px, calc(100% - 32px));
  margin: 50px auto;
}
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 80px;
}

.site-footer {
  margin-top: 80px;
  padding: 42px 0;
  color: #dbe4f3;
  background: #101827;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 24px;
}
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer p { color: #aebbd0; }

@media (max-width: 920px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .site-nav ul { flex-wrap: wrap; gap: 12px; }
  .gf-hero,
  .gf-form-shell { grid-template-columns: 1fr; }
  .gf-grid--features,
  .gf-grid--partners,
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-band { align-items: flex-start; flex-direction: column; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .gf-hero { min-height: auto; margin-top: 14px; }
  .gf-hero__content { padding: 30px 22px; }
  .gf-hero__panel { min-height: 330px; }
  .gf-grid--features,
  .gf-grid--partners,
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .gf-product-card { width: 54%; }
  .header-actions { width: 100%; }
  .header-actions .gf-button { width: 100%; }
}
