/*
Theme Name: ShalevGFX Tribute
Theme URI: https://example.com/
Author: ShalevGFX
Author URI: https://example.com/
Description: Minimal uploadable theme wrapper for the ShalevGFX shutdown page.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.5
Text Domain: shalevgfx
*/

:root {
  color-scheme: dark;
  --bg: #060606;
  --panel: rgba(18, 18, 18, 0.72);
  --panel-strong: rgba(24, 24, 24, 0.92);
  --text: #f1f1f1;
  --muted: #9a9a9a;
  --accent: #e8e8e8;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; cursor: none; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent 26%),
    linear-gradient(135deg, #050505 0%, #0f0f10 45%, #090909 100%);
  overflow-x: hidden;
  position: relative;
}

body.is-ready .page-shell {
  opacity: 1;
  transform: translateY(0);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(3, 3, 3, 0.96);
  transition: opacity 600ms ease, visibility 600ms ease;
}

body.is-ready .loader-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  position: relative;
  animation: pulse 1.2s ease-in-out infinite;
}

.loader-ring span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.24);
  border-top-color: rgba(255,255,255,0.9);
  animation: spin 1s linear infinite;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 60;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  transition: width 180ms ease, height 180ms ease, border-color 180ms ease;
}

body a:hover ~ .cursor-ring,
body button:hover ~ .cursor-ring {
  width: 44px;
  height: 44px;
  border-color: rgba(255,255,255,0.5);
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}

.ambient-one { width: 260px; height: 260px; background: rgba(255,255,255,0.16); top: 8%; left: 5%; }
.ambient-two { width: 320px; height: 320px; background: rgba(180,180,180,0.14); bottom: 4%; right: 3%; animation-delay: -4s; }
.ambient-three { width: 220px; height: 220px; background: rgba(255,255,255,0.08); top: 40%; right: 20%; animation-delay: -8s; }

.hero-card {
  position: relative;
  width: min(920px, 100%);
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(24,24,24,0.96), rgba(10,10,10,0.94));
  box-shadow: 0 30px 90px var(--shadow);
  backdrop-filter: blur(24px);
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.08), transparent 35%, rgba(255,255,255,0.04));
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(255,255,255,0.05);
}

.lead {
  margin: 0 0 28px;
  max-width: 700px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.shutdown-counter {
  margin: 20px auto 0;
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: fit-content;
}

.counter-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.counter-boxes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.counter-box {
  min-width: 48px;
  padding: 6px 6px 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.counter-box strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1;
  margin-bottom: 2px;
}

.counter-box span {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.message-block {
  margin: 32px 0;
  padding: 24px 24px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.message-block h2 { margin: 0 0 10px; font-size: 1.3rem; }
.message-block p { margin: 0; color: var(--muted); line-height: 1.7; }

.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.info-grid article {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 220ms ease, border-color 220ms ease;
}

.info-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
}

.info-grid h3 { margin: 0 0 8px; font-size: 1rem; }
.info-grid p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 0.96rem; }

.closing {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-gif {
  width: 28px;
  height: auto;
  max-height: 28px;
  object-fit: contain;
  border-radius: 4px;
  filter: grayscale(1) brightness(0.8);
  opacity: 0.9;
  display: block;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 180ms ease;
}

.contact-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.9);
  opacity: 0.9;
}

.contact-link:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

.heart-particle {
  position: fixed;
  left: 0;
  top: -8vh;
  display: block;
  pointer-events: none;
  z-index: 10;
  font-size: var(--size, 18px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  filter: grayscale(1) brightness(0.9);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.16);
  opacity: 0;
  will-change: transform, opacity;
  animation: heart-rain var(--duration, 2.6s) linear forwards;
  animation-delay: var(--delay, 0s);
}

.custom-context-menu {
  position: fixed;
  z-index: 55;
  min-width: 150px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.custom-context-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  font: inherit;
  cursor: none;
}

.custom-context-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

@keyframes float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: 0.24; }
  50% { transform: translate3d(0,-18px,0) scale(1.06); opacity: 0.32; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes heart-rain {
  0% {
    transform: translate3d(0, 0, 0) scale(0.2) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(var(--drift, 40px), 112vh, 0) scale(1) rotate(18deg);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px 12px;
    align-items: flex-start;
  }

  .hero-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .closing {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-brand {
    gap: 8px;
  }

  .footer-gif {
    width: 24px;
    max-height: 24px;
  }

  .contact-link {
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }
}
