
/* =========================================
   BLOCKVERSE - MAIN STYLESHEET
   ========================================= */

:root {
  --background: #101827;
  --surface: #182438;
  --surface-light: #22324b;
  --primary: #5865f2;
  --secondary: #9b6dff;
  --accent: #38c9f5;
  --text: #ffffff;
  --muted: #aab7cb;
  --border: rgba(255,255,255,0.09);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

/* =========================================
   NAVIGATION
   ========================================= */

.topbar {
  height: 76px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16,24,39,0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(15px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(88,101,242,0.35);
  font-size: 23px;
  font-weight: 900;
}

.main-nav {
  display: flex;
  gap: 34px;
}

.main-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s;
}

.main-nav a:hover {
  color: white;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.login-button,
.signup-button {
  padding: 11px 19px;
  border-radius: 9px;
  border: none;
  font-weight: 800;
}

.login-button {
  color: white;
  background: var(--surface-light);
}

.signup-button {
  color: white;
  background: var(--primary);
}

/* =========================================
   BUTTONS
   ========================================= */

.primary-button,
.secondary-button {
  padding: 15px 24px;
  border-radius: 11px;
  border: none;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.2s, box-shadow 0.2s;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 24px rgba(88,101,242,0.25);
}

.secondary-button {
  background: var(--surface-light);
  color: white;
  border: 1px solid var(--border);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
}

/* =========================================
   HERO / WELCOME
   ========================================= */

.welcome-section {
  min-height: 490px;
  padding: 70px 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 45%, rgba(88,101,242,0.22), transparent 42%),
    radial-gradient(ellipse at 15% 80%, rgba(155,109,255,0.12), transparent 40%);
}

.welcome-content {
  max-width: 570px;
  z-index: 2;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.welcome-content h1 {
  margin-top: 20px;
  font-size: clamp(43px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 1000;
  letter-spacing: -3px;
}

.welcome-content h1 span {
  color: #8c79ff;
}

.welcome-content p {
  color: var(--muted);
  line-height: 1.8;
  margin: 23px 0 29px;
  max-width: 460px;
  font-size: 16px;
}

.welcome-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

/* =========================================
   HERO ART
   ========================================= */

.welcome-art {
  width: 390px;
  height: 330px;
  position: relative;
  flex-shrink: 0;
}

.hero-circle {
  width: 240px;
  height: 240px;
  position: absolute;
  top: 45px;
  left: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #a46cff);
  display: grid;
  place-items: center;
  box-shadow: 0 0 90px rgba(115,94,255,0.3);
  animation: float 5s ease-in-out infinite;
}

.hero-cube {
  width: 115px;
  height: 115px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffffff, #d5d9ff);
  color: #5865f2;
  border-radius: 27px;
  font-size: 76px;
  font-weight: 1000;
  transform: rotate(-8deg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.floating-card {
  position: absolute;
  z-index: 3;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  background: rgba(34,50,75,0.95);
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  font-size: 12px;
}

.floating-card span {
  font-size: 23px;
}

.card-one {
  top: 20px;
  left: 5px;
  animation: float 4s ease-in-out infinite;
}

.card-two {
  bottom: 25px;
  right: 0;
  animation: float 5s ease-in-out infinite reverse;
}

.card-three {
  bottom: 20px;
  left: 0;
  animation: float 4.5s ease-in-out infinite;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* =========================================
   STATISTICS
   ========================================= */

.stats-section {
  padding: 30px 9%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stat strong {
  font-size: 27px;
  font-weight: 1000;
  color: white;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

/* =========================================
   CONTENT SECTIONS
   ========================================= */

.content-section {
  padding: 75px 9%;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 20px;
}

.section-heading h2,
.creator-content h2,
.marketplace-section h2 {
  font-size: 32px;
  margin: 10px 0;
  font-weight: 900;
}

.section-heading p,
.marketplace-section p {
  color: var(--muted);
  font-size: 14px;
}

.view-all-button {
  background: transparent;
  border: 1px solid var(--border);
  color: white;
  padding: 11px 18px;
  border-radius: 9px;
  font-weight: 800;
}

/* =========================================
   GAME CARDS
   ========================================= */

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(140,121,255,0.5);
}

.game-thumbnail {
  height: 165px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.game-thumbnail > span {
  font-size: 68px;
  filter: drop-shadow(0 12px 10px rgba(0,0,0,0.2));
  transition: transform 0.3s;
}

.game-card:hover .game-thumbnail > span {
  transform: scale(1.15);
}

.thumbnail-one {
  background: linear-gradient(135deg, #3468a8, #74a6e7);
}

.thumbnail-two {
  background: linear-gradient(135deg, #168b89, #75d5ad);
}

.thumbnail-three {
  background: linear-gradient(135deg, #5341a0, #a38cf4);
}

.thumbnail-four {
  background: linear-gradient(135deg, #9c6434, #e5ae66);
}

.game-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #f5b942;
  color: #202020;
  font-size: 9px;
  font-weight: 1000;
}

.game-info {
  padding: 17px;
}

.game-info h3 {
  font-size: 16px;
  margin-bottom: 7px;
}

.game-info p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.player-count {
  font-size: 11px;
  color: #f5b942;
  font-weight: 800;
}

/* =========================================
   CREATOR SECTION
   ========================================= */

.creator-section {
  margin: 0 9% 75px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(115deg, #202d4d, #302b61);
}

.creator-content {
  max-width: 510px;
}

.creator-content h2 {
  font-size: 38px;
}

.creator-content p {
  color: #c0c9db;
  line-height: 1.8;
  font-size: 14px;
  margin: 15px 0 24px;
}

.creator-art {
  display: flex;
  align-items: center;
  gap: 13px;
}

.creator-art span {
  font-size: 49px;
  animation: float 4s ease-in-out infinite;
}

.creator-art span:nth-child(2) {
  animation-delay: 0.5s;
}

.creator-art span:nth-child(3) {
  animation-delay: 1s;
}

/* =========================================
   MARKETPLACE
   ========================================= */

.marketplace-section {
  padding: 35px 9%;
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  background: rgba(255,255,255,0.025);
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  padding: 35px 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer p,
.footer-note {
  color: var(--muted);
  font-size: 11px;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 1000px) {

  .welcome-section {
    padding: 60px 6%;
  }

  .content-section {
    padding: 60px 6%;
  }

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

  .welcome-art {
    transform: scale(0.85);
    transform-origin: center;
  }

}

@media (max-width: 700px) {

  .topbar {
    height: auto;
    min-height: 70px;
    padding: 15px 5%;
    flex-wrap: wrap;
    gap: 15px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 22px;
  }

  .header-actions {
    gap: 7px;
  }

  .login-button,
  .signup-button {
    padding: 9px 12px;
    font-size: 12px;
  }

  .welcome-section {
    flex-direction: column;
    text-align: center;
    padding: 55px 6% 35px;
    gap: 5px;
  }

  .welcome-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .welcome-buttons {
    justify-content: center;
  }

  .welcome-art {
    transform: scale(0.8);
    margin-top: -10px;
    margin-bottom: -30px;
  }

  .stats-section {
    padding: 25px 5%;
  }

  .stat strong {
    font-size: 21px;
  }

  .stat span {
    font-size: 10px;
  }

  .content-section {
    padding: 50px 5%;
  }

  .game-grid {
    gap: 12px;
  }

  .game-thumbnail {
    height: 125px;
  }

  .game-thumbnail > span {
    font-size: 53px;
  }

  .creator-section {
    margin: 0 5% 50px;
    padding: 30px 23px;
    flex-direction: column;
    align-items: flex-start;
  }

  .creator-art {
    align-self: center;
  }

  .marketplace-section {
    padding: 30px 5%;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    padding: 30px 5%;
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 380px) {

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

  .welcome-content h1 {
    font-size: 43px;
  }

}
/* ========================================
   BLOCKVERSE ACCOUNT SYSTEM
======================================== */

.account-section {
  padding: 90px 8%;
  background: #080d1b;
}

.account-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 950px;
  margin: 40px auto;
}

.account-card {
  background: #101a30;
  border: 1px solid #263957;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.account-card h3 {
  font-size: 25px;
  margin-bottom: 8px;
  color: #ffffff;
}

.account-card > p {
  color: #9eacc5;
  margin-bottom: 25px;
}

.account-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-card label {
  color: #dce7ff;
  font-size: 14px;
  font-weight: 600;
}

.account-card input {
  width: 100%;
  padding: 14px;
  border-radius: 9px;
  border: 1px solid #304565;
  background: #080f20;
  color: white;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.account-card input:focus {
  border-color: #08d9f4;
  box-shadow: 0 0 0 3px rgba(8, 217, 244, 0.12);
}

.account-button {
  padding: 14px;
  margin-top: 12px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(100deg, #08bfe8, #7652ed);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.account-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.account-message {
  min-height: 20px;
  color: #08d9f4;
  font-size: 13px;
  overflow-wrap: anywhere;
}

#account-profile {
  max-width: 450px;
  margin: 30px auto;
}

#account-profile[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .account-container {
    grid-template-columns: 1fr;
  }

  .account-section {
    padding: 60px 5%;
  }

  .account-card {
    padding: 24px;
  }
}
