/* ============================================================
   BLOXIUM - Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:wght@400;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --sky1: #1565C0;
  --sky2: #0D47A1;
  --sky3: #082f7a;
  --accent: #FFD600;
  --accdark: #c9a800;
  --red: #E53935;
  --reddark: #b71c1c;
  --green: #2E7D32;
  --greenlite: #43A047;
  --white: #FFFFFF;
  --offwhite: #F4F6FB;
  --panel: #EEF2FF;
  --border: #B0BEE8;
  --dark: #0D1B3E;
  --text: #1a2540;
  --muted: #5a6a99;
  --raise: 0 8px 32px rgba(0, 0, 0, 0.22);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(244, 246, 251, 0.46) 320px, rgba(244, 246, 251, 0.58) 100%),
    url('/assets/images/WallpaperBloxiumTemp.png') center top / cover fixed no-repeat;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sky2);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* Header */
.site-theme-header {
  position: relative;
  z-index: 20;
  width: 100%;
}

.site-theme-hero {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.site-theme-hero::before,
.site-theme-hero::after {
  content: none;
}

.site-theme-hero-inner {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  max-width: 1160px;
  margin: 0 auto;
  min-height: clamp(104px, 13vw, 160px);
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-theme-hero-inner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(210px, 32vw, 390px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.30) 0deg 7deg,
    rgba(255, 255, 255, 0.06) 7deg 16deg,
    rgba(255, 255, 255, 0.00) 16deg 24deg
  );
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.95) 0 40%, rgba(0, 0, 0, 0.3) 68%, transparent 100%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.95) 0 40%, rgba(0, 0, 0, 0.3) 68%, transparent 100%);
  animation: heroRaysSpin 18s linear infinite;
}

.site-theme-logo {
  position: relative;
  z-index: 1;
  width: clamp(150px, 22vw, 250px);
  max-width: 70%;
  height: auto;
  filter: drop-shadow(0 8px 0 #007828)
}

.site-theme-tagline {
  position: relative;
  z-index: 1;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

/* Nav */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: linear-gradient(180deg, #1976D2 0%, #1565C0 40%, #0d4fa8 100%);
  border-bottom: 3px solid #08306b;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
  flex: 1;
}

.nav-links li a {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  text-decoration: none;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1.2px;
  transition: background 0.15s, color 0.15s;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(0, 0, 0, 0.2);
  color: var(--accent);
}

.nav-links li a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.nav-btn {
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  padding: 7px 18px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.15s;
}

.nav-btn-login {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.25);
}

.nav-btn-login:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-btn-signup {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accdark);
  box-shadow: 0 3px 0 var(--accdark);
}

.nav-btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--accdark);
}

/* Footer */
footer {
  margin-top: 0;
  width: 100%;
  background: linear-gradient(180deg, #0d2054 0%, #060f30 100%);
  border-top: 4px solid #061540;
}

.footer-top {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 16px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  max-width: 160px;
  height: auto;
  display: block;
  padding-bottom: 10px;
}



.footer-tagline {
  max-width: 220px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
  margin-bottom: 14px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col a {
  display: block;
  margin-bottom: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.12s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
}

.footer-copy a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copy a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 230, 118, 0.3);
  background: rgba(0, 230, 118, 0.1);
  color: #00e676;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.safe-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  animation: blink 2s infinite;
}

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn:active {
  transform: translateY(2px) !important;
}

.btn-play {
  padding: 12px 32px;
  color: var(--dark);
  border: 2px solid #8a6200;
  background: linear-gradient(180deg, #ffed4a 0%, #ffc107 50%, #e6a800 100%);
  box-shadow: 0 5px 0 #8a6200, var(--raise);
}

.btn-play:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #8a6200, var(--raise);
}

.btn-create {
  padding: 12px 28px;
  color: var(--white);
  border: 2px solid #1b5e20;
  background: linear-gradient(180deg, #66bb6a 0%, #43a047 50%, #2e7d32 100%);
  box-shadow: 0 5px 0 #1b5e20, var(--raise);
}

.btn-create:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #1b5e20, var(--raise);
}

.btn-login {
  padding: 12px 24px;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

.btn-login:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

/* Panels */
.panel {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 50, 0.1);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 2px solid #0d47a1;
  background: linear-gradient(180deg, #2979ff 0%, #1565C0 100%);
}

.panel-header.red {
  border-bottom-color: #7f0000;
  background: linear-gradient(180deg, #ef5350 0%, #c62828 100%);
}

.panel-header.green {
  border-bottom-color: #1b5e20;
  background: linear-gradient(180deg, #66bb6a 0%, #2e7d32 100%);
}

.panel-header.gold {
  border-bottom-color: #e65100;
  background: linear-gradient(180deg, #ffd740 0%, #ffa000 100%);
}

.panel-header.dark {
  border-bottom-color: #000;
  background: linear-gradient(180deg, #37474f 0%, #1a2540 100%);
}

.panel-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
}

.panel-header.gold .panel-title {
  color: var(--dark);
}

.panel-title-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.panel-body {
  padding: 14px;
}

.panel-body.tight {
  padding: 10px 12px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: 'Oswald', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-hot {
  color: #c62828;
  border-color: #ef9a9a;
  background: #ffebee;
}

.badge-new {
  color: #1b5e20;
  border-color: #a5d6a7;
  background: #e8f5e9;
}

.badge-top {
  color: #e65100;
  border-color: #ffcc02;
  background: #fff8e1;
}

/* Shared bits */
.place-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #00e676;
  animation: blink 1.4s infinite;
}

.see-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  text-decoration: none;
  border-top: 2px solid var(--border);
  border-radius: 0 0 8px 8px;
  background: var(--panel);
  color: var(--sky1);
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.12s;
}

.see-more-link:hover {
  background: #dce4ff;
}

.see-more-link::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--sky1);
}

.content-divider {
  height: 2px;
  margin: 4px 0 14px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Page frame */
.page-content {
  width: 100%;
  max-width: 1160px;
  align-self: center;
  margin: 0;
  padding: 0 30px 40px;
  position: relative;
  z-index: 2;
  background: var(--offwhite);
  border: 1px solid rgba(176, 190, 232, 0.75);
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(6, 20, 56, 0.18);
  backdrop-filter: blur(4px);
}

main.page-content {
  margin-top: 0;
  border-radius: 0;
  flex: 1;
}

/* Animation keyframes */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRaysSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.fade-in {
  animation: fadeUp 0.5s ease both;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.12s; }
.fade-in:nth-child(3) { animation-delay: 0.19s; }
.fade-in:nth-child(4) { animation-delay: 0.26s; }
.fade-in:nth-child(5) { animation-delay: 0.33s; }

/* Responsive */
@media (max-width: 1000px) {
  .site-theme-logo {
    width: clamp(130px, 28vw, 210px);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  body {
    background-attachment: scroll;
  }

  .site-theme-hero-inner {
    min-height: 92px;
    padding-top: 10px;
  }

  .site-theme-logo {
    width: clamp(112px, 46vw, 170px);
  }

  .site-theme-tagline {
    letter-spacing: 2px;
    font-size: 0.72rem;
  }

  .nav-links {
    display: none;
  }

  .page-content {
    margin-top: 0;
    border-radius: 0;
    padding: 0 12px 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}