/* ==========================================================================
   SOLVORIA · Split-Screen Hero Portal & Royal Obsidian Design
   Modern, Asymmetric, No-Logo Minecraft Server Interface
   ========================================================================== */

:root {
  --bg-dark: #08090e;
  --bg-gradient: radial-gradient(circle at 15% 15%, #151326 0%, #08090e 65%);
  --surface-panel: rgba(16, 18, 28, 0.75);
  --surface-card: #121422;
  --surface-card-hover: #171a2d;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(245, 158, 11, 0.35);

  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.2);

  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;

  --emerald-400: #34d399;
  --rose-500: #f43f5e;
  --sky-400: #38bdf8;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--gold-400);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fff;
}

/* Ambient glow accents */
.ambient-glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-orb-left {
  position: absolute;
  top: 10%;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  filter: blur(80px);
}

.glow-orb-right {
  position: absolute;
  top: 25%;
  right: -80px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  filter: blur(80px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- Nav Header (Pure Typographic Wordmark, No Logo Image) ---- */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8, 9, 14, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

/* Stylized Typographic Wordmark */
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.wordmark-symbol {
  color: var(--gold-400);
  font-size: 1.1rem;
}

.wordmark-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
}

.btn-nav-store {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #08090e !important;
  font-weight: 700 !important;
  padding: 8px 18px;
  border-radius: 8px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-nav-store:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ---- Split-Screen Hero Portal ---- */
.portal-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 72px;
  min-height: calc(85vh - 70px);
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-400);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: #fff;
}

.hero-title span {
  background: linear-gradient(135deg, var(--gold-400) 20%, var(--violet-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.18rem;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 580px;
}

/* Connect IP Box */
.quick-connect {
  display: flex;
  align-items: center;
  background: var(--surface-panel);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 8px 10px 8px 18px;
  gap: 16px;
  width: 100%;
  max-width: 520px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}

.quick-connect:hover {
  border-color: var(--gold-400);
}

.connect-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.server-ip-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.connect-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-copy-ip {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #08090e;
  border: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.btn-copy-ip:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* Server Status & CTA row */
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--emerald-400);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ---- Right Column: Interactive Player & Store Portal Card ---- */
.portal-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--violet-400));
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.portal-card-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.portal-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Username input inside portal */
.player-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.player-input-row input {
  flex: 1;
  background: rgba(8, 9, 14, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.player-input-row input:focus {
  outline: none;
  border-color: var(--gold-400);
}

.btn-lookup {
  background: var(--gold-400);
  color: #08090e;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn-lookup:hover {
  filter: brightness(1.1);
}

/* Active Player Display inside widget */
.active-player-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(8, 9, 14, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.player-skin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  image-rendering: pixelated;
  background: #111;
}

.player-details h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}

.player-details span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-switch-user {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-switch-user:hover {
  border-color: var(--gold-400);
  color: #fff;
}

/* Quick Rank Tabs in Widget */
.quick-ranks-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.quick-rank-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-rank-btn:hover, .quick-rank-btn.active {
  background: var(--rank-accent, var(--gold-400));
  color: #08090e;
  border-color: transparent;
}

/* Rank Preview Panel in Widget */
.rank-spotlight-box {
  background: rgba(8, 9, 14, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.spotlight-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.spotlight-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.spotlight-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-400);
}

.spotlight-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.spotlight-perks li {
  margin-bottom: 5px;
}

.spotlight-perks li b {
  color: #fff;
}

.btn-buy-spotlight {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #08090e;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn-buy-spotlight:hover {
  filter: brightness(1.1);
}

/* ---- Horizontal Showcase Strip (Below Hero) ---- */
.section-showcase {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border-subtle);
}

.showcase-header {
  margin-bottom: 28px;
}

.showcase-header h2 {
  font-size: 1.8rem;
  margin: 0 0 6px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.showcase-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.showcase-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
}

.showcase-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #fff;
}

.showcase-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STORE PAGE SPECIFIC STYLES
   ========================================================================== */
.store-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding: 48px 0 80px;
  align-items: start;
}

.store-sidebar {
  position: sticky;
  top: 90px;
  background: var(--surface-panel);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(16px);
}

.store-tabs-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.v-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.v-tab-btn:hover, .v-tab-btn.active {
  background: var(--gold-400);
  color: #08090e;
  border-color: transparent;
}

/* Catalog Grid in Store */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.store-item-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--item-accent, var(--gold-400));
}

.store-item-card h4 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
}

.store-item-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--item-accent, var(--gold-400));
  margin: 6px 0 14px;
}

.store-item-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.store-item-card ul li {
  margin-bottom: 6px;
}

.store-item-card ul li b {
  color: #fff;
}

.btn-store-buy {
  padding: 11px;
  background: var(--item-accent, var(--gold-400));
  color: #08090e;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn-store-buy:hover {
  filter: brightness(1.12);
}

/* Modal */
.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}

.checkout-modal-backdrop.open {
  display: grid;
}

.checkout-modal-box {
  background: #121422;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  padding: 28px;
  position: relative;
}

.btn-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #171a2d;
  border: 1px solid var(--gold-400);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  display: none;
  z-index: 2000;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.toast-msg.show {
  display: flex;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  margin-top: 60px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .portal-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 0;
  }
  .store-page-layout {
    grid-template-columns: 1fr;
  }
  .store-sidebar {
    position: static;
  }
}
