/*
Theme Name: Play NFT Block Theme
Theme URI: https://example.com/playnft
Author: OpenAI
Description: Gutenberg-first WordPress block theme inspired by the provided NFT landing page. Native blocks for structure, SSR custom blocks for art-directed cards.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
Version: 1.1.0
Text Domain: playnft
*/

:root {
  --playnft-bg: #04071f;
  --playnft-bg-2: #09113d;
  --playnft-panel: rgba(16, 25, 86, 0.64);
  --playnft-panel-2: rgba(74, 104, 255, 0.14);
  --playnft-line: rgba(255, 255, 255, 0.12);
  --playnft-text: #ffffff;
  --playnft-muted: rgba(255, 255, 255, 0.72);
  --playnft-accent: #7768ff;
  --playnft-accent-2: #25c8ff;
  --playnft-accent-3: #ff73d1;
  --playnft-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --playnft-shadow-lg: 0 30px 80px rgba(31, 39, 139, 0.45);
  --playnft-card-radius: 26px;
  --playnft-card-radius-lg: 36px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 10% -4%, rgba(95, 88, 255, 0.42), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(37, 200, 255, 0.18), transparent 24%),
    radial-gradient(circle at 68% 58%, rgba(116, 65, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #04071f 0%, #040926 18%, #070b2d 45%, #05103a 72%, #071340 100%);
  color: var(--playnft-text);
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 1180px;
}

.wp-site-blocks {
  overflow: clip;
}

main.wp-block-group,
.playnft-page-shell {
  position: relative;
}

.playnft-page-shell::before,
.playnft-page-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(16px);
}

.playnft-page-shell::before {
  width: 36rem;
  height: 36rem;
  left: -10rem;
  top: 20rem;
  background: radial-gradient(circle, rgba(106, 74, 255, 0.25), transparent 60%);
}

.playnft-page-shell::after {
  width: 28rem;
  height: 28rem;
  right: -8rem;
  top: 5rem;
  background: radial-gradient(circle, rgba(37, 200, 255, 0.18), transparent 62%);
}

.playnft-page-shell > * {
  position: relative;
  z-index: 1;
}

.playnft-container {
  width: min(1180px, calc(100vw - 32px));
  margin-inline: auto;
}

.playnft-section {
  padding: 46px 0;
  position: relative;
}

.playnft-section-title {
  text-align: center;
  margin: 0 0 26px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .98;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.playnft-section-title.has-text-align-left {
  text-align: left;
}

.playnft-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.76);
}

.playnft-eyebrow::before,
.playnft-eyebrow::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.4), rgba(255,255,255,0));
}

.playnft-muted {
  color: var(--playnft-muted);
}

.playnft-glass,
.playnft-panel {
  background: linear-gradient(180deg, rgba(20, 28, 92, 0.82), rgba(19, 27, 78, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--playnft-card-radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--playnft-shadow);
}

header .wp-block-navigation-item__content,
footer .wp-block-navigation-item__content,
.wp-block-site-title a,
.wp-block-search__label,
.wp-block-button__link,
.wp-element-button {
  text-decoration: none;
}

.wp-block-button__link,
.wp-element-button {
  border-radius: 999px;
  padding: .84rem 1.3rem;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-1px);
}

.playnft-btn-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
}

.playnft-btn-ghost .wp-block-button__link {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

.playnft-header-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(6, 9, 37, 0.95), rgba(6, 9, 37, 0.62), transparent);
  backdrop-filter: blur(8px);
}

.playnft-header-shell .wp-block-group.playnft-container {
  border-radius: 999px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(7, 11, 45, 0.55);
  box-shadow: var(--playnft-shadow);
}

.playnft-header-shell .wp-block-navigation {
  gap: 1.1rem;
}

.playnft-header-shell .wp-block-navigation-item__content {
  color: rgba(255,255,255,.84);
}

.playnft-header-shell .wp-block-navigation-item__content:hover {
  color: #fff;
}

.playnft-site-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.playnft-site-title a {
  display: inline-block;
  background: linear-gradient(90deg, #ffffff 0%, #c6b6ff 40%, #79dcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.playnft-search .wp-block-search__inside-wrapper {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
}

.playnft-search .wp-block-search__input {
  background: transparent;
  border: 0;
  color: #fff;
  min-height: 38px;
}

.playnft-search .wp-block-search__button {
  min-width: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(117,104,255,.95), rgba(34,198,255,.88));
  border: 0;
  color: #fff;
  padding: .65rem .8rem;
}

.playnft-hero-grid.wp-block-columns {
  gap: 34px;
}

.playnft-hero-copy {
  padding-right: 8px;
}

.playnft-hero-copy h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: .92;
  letter-spacing: -0.05em;
  margin: 0 0 18px;
  font-weight: 800;
}

.playnft-hero-copy p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--playnft-muted);
  max-width: 34rem;
}

.playnft-pill-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.playnft-pill-stat {
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(108, 81, 255, .34), rgba(59, 87, 222, .16));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.playnft-pill-stat p {
  margin: 0;
}

.playnft-pill-stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 6px;
  color: #fff;
}

.playnft-pill-stat span {
  color: var(--playnft-muted);
  font-size: .88rem;
}

.playnft-hero-side-note {
  margin-top: 4px;
  opacity: .92;
}

.playnft-brand-strip {
  padding-top: 22px;
}

.playnft-logo-grid {
  gap: 18px;
  opacity: .9;
}

.playnft-logo-grid .wp-block-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.playnft-logo-grid .wp-block-image {
  margin: 0;
}

.playnft-logo-grid .wp-block-image img {
  max-height: 28px;
  width: auto;
  opacity: .82;
  filter: brightness(0) invert(1);
}

.playnft-card-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.playnft-card-row > .wp-block-playnft-nft-card:nth-child(3) {
  transform: translateY(-14px) scale(1.06);
}

.playnft-top-sellers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.playnft-art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.playnft-cta-band {
  border-radius: 40px;
  background: linear-gradient(90deg, rgba(116,91,255,0.85), rgba(32,196,255,0.75));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 25px 80px rgba(56, 42, 183, .4);
  overflow: hidden;
  position: relative;
}

.playnft-cta-band::before {
  content: "";
  position: absolute;
  inset: auto auto -60px -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
  pointer-events: none;
}

.playnft-footer {
  padding: 28px 0 42px;
}

.playnft-footer .wp-block-columns {
  gap: 32px;
}

.playnft-footer .wp-block-navigation {
  gap: 10px;
}

.playnft-footer-brand {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.playnft-footer-meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.playnft-gradient-text {
  background: linear-gradient(90deg, #fff 0%, #b7ccff 45%, #8ad9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.playnft-page-hero {
  padding: 82px 0 30px;
}

.playnft-page-panel {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17,25,86,.78), rgba(14,18,52,.58));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--playnft-shadow-lg);
}

.playnft-page-shell .wp-block-post-title,
.playnft-page-shell .wp-block-query-title {
  margin: 0 auto 18px;
  max-width: 1180px;
  width: min(1180px, calc(100vw - 32px));
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: .98;
}

.playnft-page-shell .wp-block-post-content,
.playnft-page-shell .wp-block-query {
  width: min(1180px, calc(100vw - 32px));
  margin-inline: auto;
}

.playnft-page-shell .wp-block-post-featured-image {
  margin: 0 auto 28px;
  width: min(1180px, calc(100vw - 32px));
}

.playnft-page-shell .wp-block-post-featured-image img {
  width: 100%;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--playnft-shadow-lg);
}

.playnft-page-shell .wp-block-post-content > * {
  max-width: 860px;
}

.playnft-page-shell .wp-block-post-content h2,
.playnft-page-shell .wp-block-post-content h3,
.playnft-page-shell .wp-block-post-content h4 {
  color: #fff;
}

.playnft-page-shell .wp-block-post-content p,
.playnft-page-shell .wp-block-post-content li {
  color: rgba(255,255,255,.78);
}

.playnft-page-shell .wp-block-separator {
  border-color: rgba(255,255,255,.12);
}

.playnft-post-grid .wp-block-post {
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(18, 28, 93, .82), rgba(10, 18, 62, .48));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--playnft-shadow);
}

.playnft-post-grid .wp-block-post-title {
  width: auto;
  margin: 12px 0 10px;
  font-size: 1.6rem;
}

.playnft-post-grid .wp-block-post-excerpt__excerpt {
  color: rgba(255,255,255,.72);
}

.playnft-post-grid .wp-block-read-more {
  display: inline-flex;
  margin-top: 8px;
  color: #fff;
}

.playnft-post-grid .wp-block-post-featured-image {
  width: auto;
  margin: 0;
}

.playnft-post-grid .wp-block-post-featured-image img {
  min-height: 240px;
  object-fit: cover;
}

.playnft-empty-state {
  text-align: center;
  padding: 54px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 28, 93, .82), rgba(10, 18, 62, .48));
  border: 1px solid rgba(255,255,255,.08);
}

.playnft-empty-state p {
  margin: 0;
}

@media (max-width: 1100px) {
  .playnft-card-row,
  .playnft-top-sellers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .playnft-art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .playnft-header-shell .wp-block-navigation {
    display: none;
  }

  .playnft-page-hero {
    padding-top: 64px;
  }
}

@media (max-width: 781px) {
  .playnft-container,
  .playnft-page-shell .wp-block-post-title,
  .playnft-page-shell .wp-block-query-title,
  .playnft-page-shell .wp-block-post-content,
  .playnft-page-shell .wp-block-query,
  .playnft-page-shell .wp-block-post-featured-image {
    width: min(100vw - 24px, 1180px);
  }

  .playnft-header-shell {
    position: relative;
    padding-top: 12px;
  }

  .playnft-header-shell .wp-block-group.playnft-container {
    border-radius: 28px;
    padding: 14px;
  }

  .playnft-card-row,
  .playnft-top-sellers-grid,
  .playnft-art-grid {
    grid-template-columns: 1fr;
  }

  .playnft-card-row > .wp-block-playnft-nft-card:nth-child(3) {
    transform: none;
  }

  .playnft-hero-grid.wp-block-columns,
  .playnft-footer .wp-block-columns {
    gap: 22px;
  }

  .playnft-section {
    padding: 28px 0;
  }

  .playnft-cta-band {
    border-radius: 28px;
  }

  .playnft-page-panel {
    padding: 20px;
  }
}
