/*
Theme Name: Haim Asher Official V8
Theme URI: https://haimasher.online
Author: Haim Asher
Description: Custom one-page WordPress theme for the official Haim Asher music website.
Version: 1.5.0
Text Domain: haim-asher-official
*/

:root {
  --bg: #07111f;
  --bg-soft: rgba(10, 20, 35, 0.72);
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #b8c2d6;
  --accent: #9ed3ff;
  --accent-2: #dbeeff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1600px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(104, 167, 255, 0.28), transparent 28%),
    linear-gradient(180deg, #10223e 0%, #08111d 45%, #050a13 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 28px max(24px, env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: max(8px, env(safe-area-inset-top));
  z-index: 50;
  margin-bottom: 18px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.82), rgba(10, 24, 44, 0.68));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(158, 211, 255, 0.22));
  border: 1px solid rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  outline: none;
}

.screen {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: heroReveal 1.1s ease both;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 0;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(4, 11, 22, 0.52), rgba(7, 18, 34, 0.12)),
    var(--hero-bg) center top/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.02), rgba(5, 10, 18, 0.78));
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 42% 12%, rgba(210, 230, 255, 0.18), transparent 18%),
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.08), transparent 14%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 26%);
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
  animation: lightningGlow 9s ease-in-out infinite;
}

.hero-main,
.hero-side {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--accent-2);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 6.2vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: none;
  white-space: nowrap;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: fadeUp 0.9s ease 0.15s both;
}

.hero p {
  max-width: 720px;
  color: #e4ebf8;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.7;
  margin: 18px 0 0;
  text-shadow: 0 8px 24px rgba(0,0,0,0.28);
  animation: fadeUp 0.9s ease 0.28s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: fadeUp 0.9s ease 0.42s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 600;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}

.btn-primary {
  background: linear-gradient(180deg, #e7f4ff, #badaff);
  color: #08111d;
  border-color: transparent;
}

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text);
}

.hero-side {
  align-items: stretch;
  gap: 14px;
}

.glass-card {
  background: linear-gradient(180deg, rgba(5, 12, 23, 0.68), rgba(3, 9, 18, 0.74));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: floatCard 6s ease-in-out infinite, fadeUp 1s ease 0.35s both;
}

.now-playing {
  margin-top: auto;
}

.now-playing-top {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.cover-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.cover-wrap img {
  width: 164px;
  height: 164px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.cover-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

.featured-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dbeeff;
  white-space: nowrap;
}

.btn-compact {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 999px;
  width: auto;
  white-space: nowrap;
}

.now-playing-title {
  margin: 0 0 10px;
  font-size: 2.2rem;
  line-height: 1;
}

.now-playing-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
  font-size: 1.06rem;
}

.section {
  margin-top: 16px;
  padding: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 700px;
}

.release-grid,
.gallery-grid,
.social-grid {
  display: grid;
  gap: 18px;
}

.release-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.release-item {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.cover-card,
.info-card,
.music-card,
.gallery-card,
.social-card,
.bio-card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.cover-card:hover,
.info-card:hover,
.music-card:hover,
.gallery-card:hover,
.social-card:hover,
.bio-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 22px 60px rgba(0,0,0,0.24);
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.info-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.info-card h3,
.music-card h3,
.bio-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.info-card p,
.music-card p,
.bio-card p,
.contact-card p,
.social-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.music-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
  scroll-behavior: smooth;
  align-items: stretch;
}

.music-grid::-webkit-scrollbar {
  height: 10px;
}

.music-grid::-webkit-scrollbar-track {
  background: transparent;
}

.music-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

.music-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 100%;
  scroll-snap-align: start;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.music-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.14);
}

.music-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease, background-size 0.45s ease;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  will-change: transform;
  flex-shrink: 0;
}

.music-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 30%, rgba(0,0,0,0.18));
  pointer-events: none;
}

.music-thumb::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -40%;
  width: 45%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: rotate(18deg) translateX(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.music-card:hover .music-thumb {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 46px rgba(0,0,0,0.28);
  filter: saturate(1.06) contrast(1.03);
}

.music-card:hover .music-thumb::after {
  opacity: 1;
  transform: rotate(18deg) translateX(320%);
}

.music-content {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.music-content h3 {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
}

.music-content p {
  min-height: 78px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.card-link {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.gallery-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 420px);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-overflow-scrolling: touch;
}

.gallery-grid::-webkit-scrollbar {
  height: 10px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 1 / 1.08;
  background: var(--card-strong);
  overflow: hidden;
  scroll-snap-align: start;
  min-width: 0;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 14, 25, 0.66);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.92rem;
}

.bio-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.bio-card,
.contact-card {
  padding: 24px;
}

.bio-card p + p {
  margin-top: 14px;
}

.quote-box {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  margin-top: 18px;
  line-height: 1.7;
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.quote-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  opacity: 0.95;
}

.social-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.social-card {
  padding: 18px;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
}

.social-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: 800;
}

.social-card h3 {
  font-size: 1.08rem;
  margin: 0 0 6px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

.contact-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

.footer {
  padding: 22px 8px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes lightningGlow {
  0%, 18%, 22%, 100% {
    opacity: 0.3;
  }
  19%, 21% {
    opacity: 0.72;
  }
  60% {
    opacity: 0.38;
  }
  61% {
    opacity: 0.58;
  }
  62% {
    opacity: 0.34;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .hero,
  .bio-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .release-grid,
  .release-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 34px;
    background-position: center center;
  }

  .hero h1 {
    white-space: normal;
  }

  .music-grid {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .gallery-grid {
    grid-auto-columns: minmax(240px, 320px);
  }

  .social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .screen,
  .section {
    border-radius: 26px;
  }

  .hero {
    min-height: auto;
  }

  .hero-main,
  .hero-side,
  .section,
  .info-card,
  .bio-card,
  .contact-card {
    padding: 18px;
  }

  .hero h1 {
    max-width: none;
    white-space: normal;
  }

  .music-grid {
    grid-auto-columns: 86%;
  }

  .music-content {
    min-height: auto;
  }

  .music-content h3,
  .music-content p {
    min-height: auto;
  }

  .gallery-grid {
    grid-auto-columns: 86%;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .now-playing-top {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    aspect-ratio: 1.1 / 1;
  }

  .btn,
  .card-link {
    width: 100%;
  }

  .hero-actions,
  .card-actions {
    flex-direction: column;
  }

  .cover-actions {
    flex-wrap: wrap;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
