/*
Theme Name: DJ Megu Worldwide
Theme URI: https://djmegu.com/
Author: DJ Megu
Author URI: https://djmegu.com/
Description: Minimal image-led electronic artist theme for DJ Megu, inspired by modern headline DJ landing pages with release, video, tour, contact and signup sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: dj-megu-worldwide
Tags: entertainment, music, custom-logo, featured-images, full-width-template, block-styles, e-commerce
*/

:root {
  --dmw-bg: #050505;
  --dmw-ink: #ffffff;
  --dmw-muted: rgba(255, 255, 255, 0.66);
  --dmw-line: rgba(255, 255, 255, 0.18);
  --dmw-pink: #ffb6d9;
  --dmw-hot: #ff8cc8;
  --dmw-panel: rgba(8, 8, 8, 0.78);
  --dmw-radius: 4px;
  --dmw-head: "Orbitron", "Inter", system-ui, sans-serif;
  --dmw-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--dmw-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dmw-bg);
  color: var(--dmw-ink);
  font-family: var(--dmw-body);
  line-height: 1.55;
  text-transform: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), #050505 88%),
    radial-gradient(circle at 50% 0%, rgba(255, 182, 217, 0.22), transparent 38rem);
}

a {
  color: var(--dmw-ink);
  text-decoration: none;
  transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:hover,
a:focus {
  color: var(--dmw-pink);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--dmw-head);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

p {
  margin: 0;
}

.dmw-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.dmw-skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--dmw-pink);
  color: #050505;
}

.dmw-skip-link:focus {
  left: 12px;
}

.dmw-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
}

.dmw-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.dmw-brand {
  justify-self: center;
  color: var(--dmw-ink);
  font-family: var(--dmw-head);
  font-size: clamp(1.1rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dmw-nav ul,
.dmw-social-list,
.dmw-footer-links ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dmw-nav a,
.dmw-social-list a,
.dmw-footer a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dmw-social-list {
  justify-content: flex-end;
}

.dmw-menu-button {
  display: none;
  justify-self: end;
  border: 1px solid var(--dmw-line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--dmw-ink);
  padding: 9px 12px;
  text-transform: uppercase;
}

.dmw-hero {
  position: relative;
  --dmw-hero-image-top: 86px;
  --dmw-hero-image-bottom: clamp(96px, 11vh, 132px);
  --dmw-hero-avatar-height: clamp(720px, 52vw, 1180px);
  --dmw-hero-avatar-offset: clamp(70px, 6vw, 150px);
  display: grid;
  min-height: 100vh;
  place-items: end center;
  padding: 110px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.dmw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), #050505 98%),
    radial-gradient(circle at 50% 35%, rgba(255, 140, 200, 0.25), transparent 20rem),
    linear-gradient(135deg, #161616, #050505 58%);
}

.dmw-hero::after {
  content: "";
  position: absolute;
  inset: 86px 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(5, 5, 5, 0.82) 92%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 28px);
}

.dmw-hero-slider {
  position: absolute;
  inset: var(--dmw-hero-image-top) 0 var(--dmw-hero-image-bottom);
  z-index: -1;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.dmw-hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(100%);
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--dmw-head);
  font-size: clamp(1rem, 3vw, 2.4rem);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 28px);
  background-color: #050505;
  background-position: center var(--dmw-hero-avatar-offset);
  background-repeat: no-repeat;
  background-size: auto var(--dmw-hero-avatar-height);
  animation: dmw-hero-swipe 18s infinite ease-in-out;
}

.dmw-hero-slide::before {
  content: attr(data-label);
}

.dmw-hero-slide[style]::before {
  content: "";
}

.dmw-hero-slide-2 {
  animation-delay: 6s;
}

.dmw-hero-slide-3 {
  animation-delay: 12s;
}

.dmw-hero-visualizer {
  position: absolute;
  inset: 86px 0 0;
  z-index: 0;
  width: 100%;
  height: calc(100% - 86px);
  pointer-events: none;
}

.dmw-hero-hexagons {
  position: absolute;
  inset: 86px 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.dmw-hero-hex {
  position: absolute;
  width: 78px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 182, 217, 0.24);
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
  opacity: 0.38;
  transform: translate3d(0, 0, 0);
  animation: dmw-hex-float 18s infinite linear;
}

.dmw-hero-hex-1 { left: 8%; top: 18%; animation-duration: 22s; }
.dmw-hero-hex-2 { left: 22%; top: 64%; width: 44px; animation-duration: 19s; animation-delay: -8s; }
.dmw-hero-hex-3 { left: 48%; top: 22%; width: 58px; animation-duration: 24s; animation-delay: -13s; }
.dmw-hero-hex-4 { right: 9%; top: 16%; width: 96px; animation-duration: 28s; animation-delay: -4s; }
.dmw-hero-hex-5 { right: 18%; top: 68%; width: 52px; animation-duration: 21s; animation-delay: -11s; }
.dmw-hero-hex-6 { left: 58%; top: 74%; width: 36px; animation-duration: 17s; animation-delay: -6s; }
.dmw-hero-hex-7 { left: 34%; top: 40%; width: 116px; animation-duration: 32s; animation-delay: -16s; }

.dmw-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.dmw-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--dmw-pink);
  font-family: var(--dmw-head);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dmw-hero h1 {
  font-size: clamp(4rem, 13vw, 13rem);
  text-shadow: 0 0 54px rgba(255, 140, 200, 0.34);
}

.dmw-hero-subtitle {
  margin-top: 14px;
  color: var(--dmw-ink);
  font-family: var(--dmw-head);
  font-size: clamp(1rem, 2.1vw, 1.55rem);
  font-weight: 900;
  text-transform: uppercase;
}

.dmw-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.dmw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--dmw-ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dmw-button-primary {
  border-color: var(--dmw-pink);
  background: var(--dmw-pink);
  color: #050505;
}

.dmw-button:hover,
.dmw-button:focus {
  transform: translateY(-2px);
  border-color: var(--dmw-pink);
}

.dmw-section {
  padding: 82px 0;
  text-align: center;
}

.dmw-section h2 {
  margin-bottom: 28px;
  font-size: clamp(2.2rem, 6vw, 6rem);
}

.dmw-release-art,
.dmw-video-frame,
.dmw-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid var(--dmw-line);
  background:
    linear-gradient(135deg, rgba(255, 182, 217, 0.12), rgba(255, 255, 255, 0.025)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--dmw-head);
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  text-transform: uppercase;
}

.dmw-release-art {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
}

.dmw-release-art-link {
  display: grid;
  overflow: hidden;
}

.dmw-release-art-link[style] span {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
}

.dmw-release {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: center;
  text-align: left;
}

.dmw-release h2 {
  margin-bottom: 12px;
}

.dmw-release p {
  color: var(--dmw-muted);
  font-size: 1.05rem;
}

.dmw-video-frame {
  min-height: 520px;
}

.dmw-video-frame-link {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.dmw-video-frame-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.dmw-video-frame-link span {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  color: var(--dmw-ink);
  text-align: center;
  text-shadow: 0 0 28px rgba(0, 0, 0, 0.72);
}

.dmw-tour-list {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--dmw-line);
}

.dmw-tour-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--dmw-line);
  text-align: left;
}

.dmw-tour-date,
.dmw-tour-city {
  font-family: var(--dmw-head);
  font-weight: 900;
  text-transform: uppercase;
}

.dmw-tour-venue {
  color: var(--dmw-muted);
}

.dmw-tour-empty {
  grid-template-columns: 140px 1fr;
}

.dmw-event-detail {
  display: grid;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.dmw-event-detail strong {
  color: var(--dmw-pink);
  font-family: var(--dmw-head);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.dmw-event-cover {
  width: min(100%, 820px);
  max-height: 460px;
  object-fit: cover;
  border: 1px solid var(--dmw-line);
}

.dmw-event-description {
  padding-top: 8px;
  border-top: 1px solid var(--dmw-line);
  text-align: left;
}

.dmw-event-description p + p {
  margin-top: 14px;
}

.dmw-marquee {
  overflow: hidden;
  border-block: 1px solid var(--dmw-line);
  padding: 18px 0;
  background: #080808;
}

.dmw-marquee-track {
  display: flex;
  width: max-content;
  animation: dmw-marquee 28s linear infinite;
}

.dmw-marquee-track span {
  padding: 0 24px;
  color: var(--dmw-pink);
  font-family: var(--dmw-head);
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.dmw-signup {
  max-width: 680px;
  margin: 0 auto;
}

.dmw-signup p {
  color: var(--dmw-muted);
}

.dmw-signup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
}

.dmw-signup-form input,
.dmw-entry-content :where(input, textarea, select) {
  min-height: 46px;
  border: 1px solid var(--dmw-line);
  background: #080808;
  color: var(--dmw-ink);
  padding: 12px 14px;
}

.dmw-signup-form button,
.dmw-entry-content :where(button, input[type="submit"], .button, .wp-block-button__link) {
  min-height: 46px;
  border: 1px solid var(--dmw-pink);
  background: var(--dmw-pink);
  color: #050505;
  font-weight: 900;
  text-transform: uppercase;
}

.dmw-content {
  padding: 120px 0 70px;
}

.dmw-entry {
  max-width: 880px;
  margin: 0 auto;
}

.dmw-entry-title {
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 7vw, 6rem);
  text-align: center;
}

.dmw-entry-content {
  color: rgba(255, 255, 255, 0.86);
}

.dmw-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dmw-post-card {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--dmw-line);
  background: var(--dmw-panel);
}

.dmw-post-card time {
  color: var(--dmw-pink);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dmw-post-card h2,
.dmw-post-card h3 {
  margin: 12px 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

.dmw-footer {
  padding: 30px 0;
  border-top: 1px solid var(--dmw-line);
  color: var(--dmw-muted);
  text-align: center;
}

.dmw-footer-logo {
  margin-bottom: 14px;
  color: var(--dmw-ink);
  font-family: var(--dmw-head);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

@keyframes dmw-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes dmw-hero-swipe {
  0%,
  30% {
    opacity: 1;
    transform: translateX(0);
  }
  42%,
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

@keyframes dmw-hex-float {
  from {
    transform: translate3d(0, 26px, 0) rotate(0deg);
  }
  to {
    transform: translate3d(0, -26px, 0) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .dmw-hero-slide:first-child {
    opacity: 1;
    transform: none;
  }

  .dmw-hero-visualizer {
    display: none;
  }

  .dmw-hero-hex {
    opacity: 0.18;
    transform: none;
  }
}

@media (max-width: 860px) {
  .dmw-header-inner {
    grid-template-columns: 1fr auto;
  }

  .dmw-brand {
    justify-self: start;
  }

  .dmw-menu-button {
    display: inline-flex;
  }

  .dmw-nav,
  .dmw-social-list {
    display: none;
    grid-column: 1 / -1;
  }

  .dmw-nav.is-open,
  .dmw-social-list.is-open {
    display: flex;
  }

  .dmw-nav ul,
  .dmw-social-list {
    align-items: flex-start;
    flex-direction: column;
  }

  .dmw-release,
  .dmw-tour-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dmw-hero-hex {
    opacity: 0.22;
  }

  .dmw-hero-hex:nth-child(n + 5) {
    display: none;
  }

  .dmw-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {

  .dmw-hero {
    --dmw-hero-image-top: 78px;
    --dmw-hero-image-bottom: clamp(84px, 12vh, 112px);
    --dmw-hero-avatar-height: clamp(560px, 70vh, 680px);
    --dmw-hero-avatar-offset: clamp(42px, 7vh, 72px);
  }

  .dmw-shell {
    width: min(100% - 22px, 1180px);
  }

  .dmw-hero h1 {
    font-size: 3.8rem;
  }
  .dmw-hero-subtitle {
    font-size: clamp(0.68rem, 2.8vw, 0.9rem);
    line-height: 1.25;
    text-wrap: balance;
  }

  .dmw-button,
  .dmw-signup-form button {
    width: 100%;
  }

  .dmw-signup-form,
  .dmw-post-grid {
    grid-template-columns: 1fr;
  }
}
