/* ─── SKYREALMS DESIGN TOKENS ─── */
:root {
  --sky-blue:       #5BB8E8;
  --sky-blue-light: #9DDAF7;
  --sky-blue-dark:  #2A7BB0;
  --orange:         #F5A623;
  --orange-bright:  #FF8C00;
  --orange-dark:    #C97515;
  --red-accent:     #C0392B;
  --green:          #4CAF50;
  --bg-darkest:     #0d1a26;
  --bg-dark:        #102030;
  --bg-mid:         #152840;
  --bg-card:        #1a3350;
  --bg-card-hover:  #1f3d5e;
  --border:         rgba(91,184,232,0.15);
  --text:           #c8dff0;
  --text-muted:     rgba(150,200,230,0.55);
  --shadow-glow:    0 0 30px rgba(91,184,232,0.15);
}

@font-face {
  font-family: "Blocky";
  src: url("assets/font/FFFFORWA.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

@keyframes float     { 0%,100%{transform:translateY(0)}   50%{transform:translateY(-8px)} }
@keyframes skpulse   { 0%,100%{opacity:1} 50%{opacity:.2} }
@keyframes cloudDrift{ 0%{transform:translateX(0)} 100%{transform:translateX(60px)} }
@keyframes spulse    { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes fadeInUp  { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes modalpop  { from{transform:translateY(-20px);opacity:0} to{transform:none;opacity:1} }

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

html {
  background: var(--bg-darkest);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

body {
  font-family: 'Nunito', Tahoma, sans-serif;
  background: var(--bg-darkest);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--orange); text-decoration: none }
a:hover { text-decoration: underline }
img { max-width: 100%; display: block }
ul, ol { list-style: none }
h1,h2,h3,h4,h5,h6 { margin: 0; color: #fff }

::-webkit-scrollbar { width: 6px }
::-webkit-scrollbar-track { background: var(--bg-darkest) }
::-webkit-scrollbar-thumb { background: var(--sky-blue-dark); border-radius: 3px }

/* ─── HEADER ─── */
#sr-header {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1520 0%, #0f2235 30%, #1a4060 70%, #2a6080 100%);
}

/* Atmospheric layers */
#sr-header::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 800px 300px at 50% 110%, rgba(91,184,232,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 200px at 10% 80%,  rgba(255,255,255,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 180px at 90% 75%,  rgba(255,255,255,0.03) 0%, transparent 70%);
  animation: cloudDrift 20s ease-in-out infinite alternate;
}
/* Stars */
#sr-header::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 8%  10%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 22%  6%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 14%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 78%  4%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 92% 20%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 25%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 68%  8%, rgba(255,255,255,0.6) 0%, transparent 100%);
}

/* ─── TOP-RIGHT NAV BAR (JailbreakMC style) ─── */
.header-nav {
  position: absolute;
  top: 0; right: 0;
  z-index: 10;
  padding: 0;
}

.header-nav-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
}

.header-nav-links {
  display: flex;
  align-items: flex-start;
}

/* Each nav link: image icon above, label below — JailbreakMC exact style */
.header-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 18px 10px;
  text-align: center;
  text-decoration: none;
  position: relative;
  transition: .25s;
  min-width: 80px;
}

.header-nav-link .icon {
  width: 80px;
  height: 80px;
  display: block;
  background: no-repeat center / 100% auto;
  margin-bottom: 6px;
  transition: transform .25s, filter .25s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.header-nav-link span {
  font-family: "Blocky", monospace;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #BAB7B3;
  text-shadow: 0 3px #1a2d40;
  transition: .25s;
  line-height: 1;
}

.header-nav-link:hover span {
  color: white;
  text-shadow: 0 3px rgba(255,255,255,0.2), 0 0 18px rgba(255,255,255,0.3);
}
.header-nav-link:hover .icon {
  transform: translateY(-4px);
  filter: drop-shadow(0 4px 10px rgba(91,184,232,0.5)) brightness(1.15);
}

.header-nav-link.active span {
  color: var(--orange);
  text-shadow: 0 3px #7a4400, 0 0 18px #c97515;
}
.header-nav-link.active .icon {
  filter: drop-shadow(0 2px 8px rgba(245,166,35,0.55)) brightness(1.1);
}
/* Active underline bar */
.header-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--orange);
}

/* ─── HERO: Big centered logo (TrapppedMC style) ─── */
.hero-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding-top: 20px; /* slight push down so it clears the nav */
}

.hero-logo {
  display: block;
  width: 420px;
  max-width: 85vw;
  height: 280px;
  background: no-repeat center / contain;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 36px rgba(91,184,232,0.45));
}

.hero-tagline {
  margin-top: 12px;
  font-size: 16px;
  color: rgba(200,230,245,0.6);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ─── FLOATING ISLANDS ─── */
.cloud-decoration { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.04); pointer-events: none }
.cloud-1 { width:200px; height:80px; top:60%; left:5%;  animation:cloudDrift 20s ease-in-out infinite alternate }
.cloud-2 { width:150px; height:60px; top:45%; right:8%; animation:cloudDrift 25s ease-in-out infinite alternate-reverse }
.cloud-3 { width:100px; height:40px; top:75%; left:40%; animation:cloudDrift 15s ease-in-out infinite alternate }

.floating-island { position:absolute; pointer-events:none; opacity:0.6 }
.island-1 { width:50px; height:35px; bottom:22%; left:12%; animation:float 5s ease-in-out infinite; animation-delay:-2s }
.island-2 { width:35px; height:25px; bottom:35%; right:15%; animation:float 6.5s ease-in-out infinite; animation-delay:-1s }
.island-3 { width:25px; height:18px; top:35%; left:30%; animation:float 4s ease-in-out infinite; animation-delay:-3s }
.floating-island svg { width:100%; height:100% }

/* ─── DISCORD BAR ─── */
.sr-above-content { margin: -80px auto 0; width: 100%; position: relative; z-index: 5 }
.sr-above-content .p-body-inner { display: flex; align-items: center }

.sr-discord-bar {
  display: flex; align-items: center; gap: 12px;
  color: white; text-decoration: none;
  padding: 10px 18px;
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.25);
  border-radius: 8px; transition: .25s;
  backdrop-filter: blur(8px);
}
.sr-discord-bar:hover { background: rgba(88,101,242,0.25); text-decoration: none }
.sr-discord-icon { width:28px; height:28px; background:#5865F2; border-radius:6px; display:flex; align-items:center; justify-content:center; flex-shrink:0 }
.sr-discord-icon svg { width:18px; height:18px; fill:white }
.sr-discord-text h4 { font-size:13px; font-weight:800; color:#a0aaff; margin-bottom:1px }
.sr-discord-text p  { font-size:11px; color:rgba(255,255,255,0.45); margin:0 }

/* ─── TITLE BAR ─── */
#sr-title-bar { position: relative; z-index: 4 }
#sr-title-bar .p-body-inner { display: flex }
.sr-title-main { flex: 1 1 auto }

.sr-title-bar-left {
  background: linear-gradient(90deg, var(--bg-card) 0%, rgba(21,40,64,0.95) 100%);
  border-left: 3px solid var(--sky-blue);
  padding: 0 28px; height: 70px;
  display: flex; align-items: center;
  box-shadow: var(--shadow-glow);
}
.sr-title-bar-left h1 {
  font-size: 20px; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 0%, var(--sky-blue-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-title-sidebar { flex: 0 0 360px }
.sr-play-area {
  height: 70px; background: var(--bg-darkest);
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px; gap: 12px;
  border-left: 1px solid var(--border);
}

.sr-play-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-bright) 100%);
  border: none; border-radius: 8px;
  border-bottom: 3px solid var(--orange-dark);
  color: white;
  font-family: 'Fredoka One', sans-serif;
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: .2s; text-decoration: none;
  box-shadow: 0 4px 20px rgba(245,166,35,0.35);
}
.sr-play-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,166,35,0.5); text-decoration: none; color: white }
.sr-play-btn:active { transform: translateY(1px) }

.sr-player-count { font-size:11px; color:var(--text-muted); text-transform:uppercase; letter-spacing:1.5px; font-weight:700; text-align:center }
.sr-player-count b { color:var(--sky-blue); font-weight:800 }

/* ─── BODY ─── */
.p-body { position: relative; z-index: 3 }
.p-body .p-body-inner { background: var(--bg-mid); box-shadow: 0 10px 40px rgba(0,0,0,0.5); display: flex }
.p-body-content { flex: 1 1 auto; min-width: 0; padding: 24px }
.p-body-sidebar { width: 360px; padding: 24px 20px; background: var(--bg-dark); border-left: 1px solid var(--border) }

/* ─── BREADCRUMBS ─── */
.p-breadcrumbs {
  background: rgba(0,0,0,0.15);
  margin: -24px -24px 22px;
  padding: 12px 24px 11px;
  border-bottom: 1px solid rgba(91,184,232,0.07);
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.p-breadcrumbs a { color: var(--sky-blue) }
.p-breadcrumbs a:hover { color: white; text-decoration: none }
.p-breadcrumbs .material-icons { font-size: 14px; color: rgba(91,184,232,0.3) }

/* ─── SIDEBAR BLOCKS ─── */
.block { margin: 0 0 36px }
.block-container { border: none; border-radius: 0; background: transparent; position: relative }
.block-container::before {
  content: "widgets";
  font-family: "Material Icons"; font-size: 20px; color: var(--sky-blue); opacity: 0.5;
  position: absolute; top: 1px; left: 0; width: 32px; font-weight: normal;
}
.block-minorHeader { margin-bottom: 12px; font-weight: 800; padding-left: 40px; color: rgba(200,230,245,0.9); font-size: 12px; text-transform: uppercase; letter-spacing: 2px }

/* ─── STATUS DOT ─── */
.status-dot { width:8px; height:8px; border-radius:50%; background:#555; flex-shrink:0 }
.status-dot.online  { background:#44dd66; box-shadow:0 0 6px rgba(68,221,102,0.7) }
.status-dot.offline { background:#cc3333 }
.status-dot.loading { background:#555; animation:spulse 1.4s infinite }

/* ─── SERVER STATUS ─── */
.server-entry { border-bottom: 1px solid rgba(91,184,232,0.07) }
.server-entry:last-child { border-bottom: none }
.server-entry-header { display:flex; align-items:center; gap:8px; padding:10px 12px; cursor:pointer; background:rgba(91,184,232,0.04); border-radius:6px; transition:background .15s; margin-bottom:2px }
.server-entry-header:hover { background: rgba(91,184,232,0.09) }
.server-entry-name  { font-size:13px; font-weight:700; color:#cde; flex:1 }
.server-entry-count { font-size:11px; color:var(--text-muted); font-weight:700 }
.server-entry-body.hidden { display:none }
.status-online-label { font-size:10px; color:var(--text-muted); text-transform:uppercase; letter-spacing:1px; padding:8px 12px 4px; font-weight:700 }
.player-heads-grid { display:flex; flex-wrap:wrap; gap:5px; padding:4px 12px 12px }
.player-head-wrap  { position:relative; cursor:default }
.player-head-img   { width:30px; height:30px; border-radius:4px; image-rendering:pixelated; display:block; background:rgba(0,0,0,0.3); border:1px solid rgba(91,184,232,0.15) }
.player-head-wrap:hover .player-head-tooltip { opacity:1; transform:translateX(-50%) translateY(-4px) }
.player-head-tooltip { position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%) translateY(0); background:rgba(10,20,35,0.97); color:white; font-size:11px; font-weight:700; padding:4px 8px; border-radius:4px; white-space:nowrap; pointer-events:none; opacity:0; transition:opacity .15s,transform .15s; z-index:10; border:1px solid var(--border) }
.status-empty { padding:12px 14px; font-size:12px; color:var(--text-muted); text-align:center }
.head-skeleton { width:30px; height:30px; border-radius:4px; background:rgba(91,184,232,0.07); animation:skpulse 1.4s ease-in-out infinite }
.status-count-skeleton { display:inline-block; width:36px; height:11px; border-radius:2px; background:rgba(91,184,232,0.1); animation:skpulse 1.4s ease-in-out infinite; vertical-align:middle }

/* ─── DISCORD WIDGET ─── */
.discord-widget { background:rgba(88,101,242,0.08); border:1px solid rgba(88,101,242,0.2); border-radius:8px; padding:14px; display:flex; flex-direction:column; gap:12px; text-decoration:none; transition:background .2s }
.discord-widget:hover { background:rgba(88,101,242,0.14); text-decoration:none }
.discord-widget-top { display:flex; align-items:center; gap:12px }
.discord-widget-logo-wrap { width:46px; height:46px; flex-shrink:0; background:#5865F2; border-radius:10px; display:flex; align-items:center; justify-content:center }
.discord-widget-logo-wrap svg { width:28px; height:28px; fill:white }
.discord-widget-info h4 { color:white; font-size:14px; font-weight:800; margin:0 0 2px }
.discord-widget-info p  { color:var(--text-muted); font-size:11px; margin:0 }
.discord-widget-stats { display:flex; border-top:1px solid rgba(91,184,232,0.08); padding-top:10px }
.discord-stat { flex:1; text-align:center }
.discord-stat+.discord-stat { border-left:1px solid rgba(91,184,232,0.08) }
.discord-stat .discord-num { font-weight:800; color:white; display:block; font-size:15px }
.discord-stat .discord-lbl { color:var(--text-muted); font-size:10px; text-transform:uppercase; letter-spacing:0.5px }
.discord-online-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#44dd66; margin-right:3px; vertical-align:middle }

/* ─── ABOUT PANEL ─── */
.about-panel { background:rgba(91,184,232,0.05); border:1px solid var(--border); border-radius:8px; padding:14px 16px; font-size:13px; line-height:1.7; color:var(--text-muted) }
.about-panel p { margin:0 0 10px }
.about-panel p:last-child { margin-bottom:0 }
.about-panel strong { color:rgba(200,230,245,0.85) }
.about-highlight { color:var(--orange); font-weight:800 }
.about-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px }
.about-tag { background:rgba(91,184,232,0.1); border:1px solid rgba(91,184,232,0.2); color:var(--sky-blue); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:0.5px; padding:3px 9px; border-radius:20px }

/* ─── ANNOUNCEMENTS ─── */
.ann-skeleton { background:rgba(91,184,232,0.06); border-radius:8px; height:170px; margin-bottom:16px; animation:skpulse 1.4s ease-in-out infinite }
.announcement-body .bbWrapper { max-height:180px; overflow:hidden; mask-image:linear-gradient(to bottom,black 60%,transparent 100%); -webkit-mask-image:linear-gradient(to bottom,black 60%,transparent 100%) }
.bbWrapper b { color:rgba(255,255,255,0.9) }
.bbWrapper a { color:var(--sky-blue) }

.block--announcement { margin-bottom:16px; border-radius:10px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,0.3); animation:fadeInUp .4s ease both }
.block--announcement .announcement-header { background:linear-gradient(135deg,rgba(26,51,80,0.95) 0%,rgba(21,40,64,0.95) 100%); border-top:2px solid rgba(91,184,232,0.2); padding:18px 20px 16px 90px; position:relative }
.block--announcement:first-child .announcement-header { background:linear-gradient(135deg,#1a4a7a 0%,#0f3058 100%); border-top:2px solid var(--orange) }
.block--announcement:first-child .announcement-header .announcement-title::before { content:"✦ LATEST NEWS"; display:block; font-size:10px; letter-spacing:4px; color:var(--orange); margin-bottom:4px; font-weight:800 }

.announcement-calendar { position:absolute; top:0; left:0; width:72px; height:100%; padding:16px 0 13px; background:rgba(0,0,0,0.2); border-right:1px solid rgba(91,184,232,0.1); text-align:center; font-weight:900 }
.announcement-calendar .day   { font-size:26px; display:block; margin-bottom:-5px; color:var(--sky-blue) }
.announcement-calendar .month { font-size:12px; text-transform:uppercase; color:var(--text-muted); letter-spacing:1px }
.announcement-avatar { position:absolute; top:16px; right:16px }
.announcement-title { font-size:17px; color:white; font-weight:800; text-decoration:none; margin-bottom:4px; display:block }
.announcement-title:hover { color:var(--sky-blue-light); text-decoration:none }
.announcement-meta { font-size:12px; display:flex; flex-wrap:wrap; align-items:center; list-style:none; padding:0; margin:0; color:var(--text-muted) }
.announcement-meta li { display:flex; align-items:center; gap:3px }
.announcement-meta li+li::before { content:"·"; margin:0 6px; color:rgba(91,184,232,0.3) }
.announcement-meta .material-icons { font-size:11px }
.announcement-body { padding:18px 20px; background:rgba(15,30,50,0.8); color:var(--text); font-size:13px; border-bottom:1px solid rgba(91,184,232,0.06) }

/* ─── AVATAR ─── */
.avatar { border-radius:6px; overflow:hidden; background:#1a3350; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; font-weight:800; color:white; font-size:11px; vertical-align:middle }
.avatar--s   { width:36px; height:36px }
.avatar img  { width:100%; height:100%; object-fit:cover; display:block }

/* ─── SWAL ─── */
.swal2-popup { font-family:'Nunito',sans-serif !important; background:#102030 !important; color:var(--text) !important }
.swal2-title { color:var(--sky-blue) !important }
.swal2-confirm.swal2-styled { background:linear-gradient(135deg,var(--orange),var(--orange-bright)) !important; font-weight:800 !important; border-bottom:3px solid var(--orange-dark) !important }

/* ─── FOOTER ─── */
.p-footer { background:#070f1a; border-top:1px solid var(--border); padding:28px 0 }
.p-footer .p-footer-inner { padding:0 20px; display:flex; align-items:center }
.p-footer .p-footer-inner span { margin-right:auto; color:rgba(150,200,230,0.4); font-size:13px }
.p-footer .p-footer-inner span small { color:rgba(150,200,230,0.25); display:block; margin-top:3px; font-size:11px }

/* ─── UTILITY ─── */
.listInline { display:flex; flex-wrap:wrap; gap:0 4px; list-style:none }
.listInline--bullet li+li::before { content:"·"; margin-right:4px; color:var(--text-muted) }
.label { display:inline-block; padding:1px 6px; border-radius:2px; font-size:10px; font-weight:bold; text-transform:uppercase; letter-spacing:0.5px }
.label--red   { background:rgba(200,50,50,0.3);  color:#f88 }
.label--green { background:rgba(50,150,50,0.3);  color:#8d8 }

/* ─── SHARED STAT STRIP ─── */
.stats-strip { display:flex; margin-bottom:20px; border-radius:10px; overflow:hidden; border:1px solid var(--border) }
.stat-pill { flex:1; padding:14px 16px; text-align:center; background:rgba(0,0,0,0.2); border-right:1px solid rgba(91,184,232,0.07) }
.stat-pill:last-child { border-right:none }
.stat-pill .num { display:block; font-size:22px; font-weight:900; color:white }
.stat-pill .lbl { display:block; font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--text-muted); margin-top:2px }
.stat-pill--red   .num { color:#f77 }
.stat-pill--gold  .num { color:var(--orange) }
.stat-pill--blue  .num { color:var(--sky-blue) }
.stat-pill--green .num { color:#88dd88 }

/* ─── RESPONSIVE ─── */
@media (max-width:1020px) {
  .p-body-sidebar { width:290px }
  .sr-title-sidebar { flex:0 0 290px }
}
@media (max-width:900px) {
  .p-body-sidebar { width:100%; border-left:none; border-top:1px solid var(--border) }
  .p-body .p-body-inner { flex-wrap:wrap }
  #sr-header { height:auto; min-height:380px }
  .header-nav { position:absolute; top:0; right:0; left:0 }
  .header-nav-links { flex-wrap:wrap; justify-content:flex-end }
  .header-nav-link { padding:10px 10px 8px; min-width:60px }
  .header-nav-link .icon { width:52px; height:52px }
  .header-nav-link span { font-size:10px; letter-spacing:1px }
  .hero-logo { width:300px; height:200px }
  .hero-tagline { font-size:13px }
  .sr-title-sidebar { flex-basis:100%; order:1 }
  .sr-title-main { order:2; flex-basis:100% }
  .sr-play-area { border-left:none; border-bottom:1px solid var(--border) }
  .sr-title-sidebar { flex-basis:100%; order:1 }
  .sr-title-main { order:2; flex-basis:100% }
  .sr-play-area { border-left:none; border-bottom:1px solid var(--border) }
}
@media (max-width:550px) {
  .header-nav-link { padding-left:10px; padding-right:10px; font-size:10px }
  .stats-strip { flex-wrap:wrap }
  .stat-pill { flex:1 1 50% }
}