/*
Theme Name: Pixel Breeders
Theme URI: https://pixelbreeders.com
Author: Pixel Breeders
Author URI: https://pixelbreeders.com
Description: Marketing-blog theme matching the Pixel Breeders visual identity (Inter typography, purple primary palette with violet→indigo→blue gradient accents, dark footer).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: pixelbreeders
*/

:root {
  --pb-primary: #774de3;
  --pb-primary-strong: #5f00a5;
  --pb-primary-deep: #4504bd;
  --pb-accent: #5e6df1;
  --pb-accent-blue: #4b86fb;
  --pb-text: #161616;
  --pb-text-muted: #5b5b66;
  --pb-text-subtle: #8a8a96;
  --pb-bg: #ffffff;
  --pb-bg-soft: #faf9fd;
  --pb-border: #ececf4;
  --pb-dark: #161616;
  --pb-gradient: linear-gradient(78deg, #774de3 20%, #5e6df1 77%, #4b86fb 100%);
  --pb-gradient-soft: linear-gradient(106deg, rgba(119, 77, 227, 0.08) 0%, rgba(94, 109, 241, 0.08) 80%, rgba(75, 134, 251, 0.08) 100%);
  --pb-radius: 12px;
  --pb-radius-lg: 20px;
  --pb-shadow-sm: 0 1px 2px rgba(22, 22, 22, 0.04), 0 2px 8px rgba(22, 22, 22, 0.04);
  --pb-shadow-md: 0 4px 12px rgba(22, 22, 22, 0.06), 0 12px 32px rgba(119, 77, 227, 0.08);
  --pb-container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--pb-text);
  background: var(--pb-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pb-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--pb-primary-deep);
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: var(--pb-text);
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

.pb-container {
  width: min(100% - 2rem, var(--pb-container));
  margin-inline: auto;
}

/* ==========================
   HEADER
   ========================== */
.pb-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--pb-border);
}

.pb-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 14px 0;
}

.pb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pb-brand img {
  height: 36px;
  width: auto;
}

.pb-brand__tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pb-primary);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pb-gradient-soft);
}

.pb-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pb-nav a {
  color: var(--pb-text);
  font-weight: 500;
  font-size: 0.96rem;
}

.pb-nav a:hover {
  color: var(--pb-primary);
}

.pb-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pb-gradient);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(119, 77, 227, 0.28);
}

.pb-nav__cta:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

/* ==========================
   HERO / PAGE TITLE
   ========================== */
.pb-hero {
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(75, 134, 251, 0.12), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(119, 77, 227, 0.12), transparent 60%),
    var(--pb-bg);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--pb-border);
}

.pb-hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--pb-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.pb-hero__title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.pb-hero__title .pb-accent {
  background: var(--pb-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pb-hero__lead {
  font-size: 1.1rem;
  color: var(--pb-text-muted);
  max-width: 720px;
  margin: 0;
}

/* ==========================
   POST CARDS GRID
   ========================== */
.pb-main {
  padding: 56px 0 80px;
}

.pb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.pb-card {
  background: var(--pb-bg);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--pb-shadow-sm);
}

.pb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pb-shadow-md);
  border-color: rgba(119, 77, 227, 0.35);
}

.pb-card__media {
  aspect-ratio: 16 / 9;
  background: var(--pb-gradient);
  position: relative;
  overflow: hidden;
}

.pb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pb-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--pb-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pb-meta a {
  color: var(--pb-primary);
  font-weight: 600;
}

.pb-card__title {
  font-size: 1.25rem;
  margin: 4px 0 6px;
  line-height: 1.25;
}

.pb-card__title a {
  color: var(--pb-text);
}

.pb-card__title a:hover {
  color: var(--pb-primary);
}

.pb-card__excerpt {
  color: var(--pb-text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
}

.pb-card__footer {
  margin-top: auto;
  padding-top: 14px;
}

.pb-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pb-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.pb-readmore::after {
  content: "→";
  transition: transform 0.2s ease;
}

.pb-readmore:hover::after {
  transform: translateX(3px);
}

/* ==========================
   SINGLE POST
   ========================== */
.pb-article {
  max-width: 760px;
  margin: 0 auto;
}

.pb-article__header {
  margin-bottom: 32px;
}

.pb-article__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}

.pb-article__hero {
  margin: 0 0 36px;
  border-radius: var(--pb-radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--pb-gradient);
}

.pb-article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-content {
  font-size: 1.06rem;
  line-height: 1.75;
  color: #2a2a33;
}

.pb-content h2 {
  margin-top: 1.6em;
  font-size: 1.7rem;
}

.pb-content h3 {
  margin-top: 1.4em;
  font-size: 1.3rem;
}

.pb-content blockquote {
  margin: 1.6em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--pb-primary);
  background: var(--pb-bg-soft);
  color: var(--pb-text);
  border-radius: 0 var(--pb-radius) var(--pb-radius) 0;
  font-style: italic;
}

.pb-content code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f3f1fb;
  color: var(--pb-primary-deep);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

.pb-content pre {
  background: #1b1626;
  color: #f4f1ff;
  padding: 18px 22px;
  border-radius: var(--pb-radius);
  overflow-x: auto;
  line-height: 1.55;
}

.pb-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.pb-content img {
  border-radius: var(--pb-radius);
  margin: 1.6em 0;
}

.pb-content a {
  text-decoration: underline;
  text-decoration-color: rgba(119, 77, 227, 0.35);
  text-underline-offset: 3px;
}

.pb-content a:hover {
  text-decoration-color: var(--pb-primary);
}

.pb-content ul,
.pb-content ol {
  padding-left: 1.4em;
}

.pb-tags {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pb-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pb-bg-soft);
  border: 1px solid var(--pb-border);
  color: var(--pb-primary-deep);
  font-size: 0.82rem;
  font-weight: 500;
}

.pb-tag:hover {
  border-color: var(--pb-primary);
  background: rgba(119, 77, 227, 0.08);
}

.pb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pb-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.pb-back::before {
  content: "←";
}

.pb-back:hover {
  color: var(--pb-primary);
}

/* ==========================
   PAGINATION
   ========================== */
.pb-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pb-pagination a,
.pb-pagination span {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--pb-border);
  color: var(--pb-text);
  background: var(--pb-bg);
  font-weight: 500;
  min-width: 44px;
  text-align: center;
}

.pb-pagination a:hover {
  border-color: var(--pb-primary);
  color: var(--pb-primary);
}

.pb-pagination .current {
  background: var(--pb-gradient);
  color: #fff;
  border-color: transparent;
}

/* ==========================
   FOOTER
   ========================== */
.pb-site-footer {
  background: var(--pb-dark);
  color: #fff;
  padding: 64px 0 28px;
  margin-top: 80px;
}

.pb-site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.pb-site-footer__brand img {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
}

.pb-site-footer__tagline {
  color: #c2a1e2;
  font-size: 0.95rem;
  max-width: 38ch;
}

.pb-site-footer h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.pb-site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.pb-site-footer a:hover {
  color: #fff;
}

.pb-site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================
   COMMENTS
   ========================== */
.pb-comments {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--pb-border);
}

.pb-comments h2 {
  font-size: 1.5rem;
}

.pb-comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.pb-comments .comment-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--pb-border);
}

.pb-comments .comment-meta {
  font-size: 0.85rem;
  color: var(--pb-text-subtle);
  margin-bottom: 6px;
}

.pb-comments input[type="text"],
.pb-comments input[type="email"],
.pb-comments input[type="url"],
.pb-comments textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pb-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--pb-bg);
  color: var(--pb-text);
  transition: border-color 0.2s ease;
}

.pb-comments input:focus,
.pb-comments textarea:focus {
  outline: none;
  border-color: var(--pb-primary);
  box-shadow: 0 0 0 3px rgba(119, 77, 227, 0.18);
}

.pb-comments .submit,
.pb-button {
  display: inline-block;
  padding: 12px 22px;
  background: var(--pb-gradient);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(119, 77, 227, 0.25);
  transition: filter 0.2s ease;
}

.pb-comments .submit:hover,
.pb-button:hover {
  filter: brightness(1.05);
}

/* ==========================
   ALIGNMENTS / WP CLASSES
   ========================== */
.alignleft  { float: left;  margin: 0.5em 1.2em 0.8em 0; }
.alignright { float: right; margin: 0.5em 0 0.8em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text {
  font-size: 0.85rem;
  color: var(--pb-text-subtle);
  text-align: center;
  margin-top: 6px;
}
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px; width: 1px; overflow: hidden;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 860px) {
  .pb-nav { gap: 1rem; }
  .pb-nav a:not(.pb-nav__cta) { display: none; }
  .pb-site-footer__grid { grid-template-columns: 1fr; }
  .pb-hero { padding: 40px 0 28px; }
  .pb-main { padding: 36px 0 64px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .pb-grid { gap: 18px; }
  .pb-brand__tag { display: none; }
}
