/* ============================================================
   GGNodes Tool Suite — shared stylesheet
   Used by every page. Keep this file as the single source of
   truth for colors, type, nav, cards, buttons, and the tool
   sidebar so all pages stay visually identical.
   ============================================================ */

:root{
  --bg:#080b10;
  --bg-soft:#0d121a;
  --panel:rgba(255,255,255,0.035);
  --panel-border:rgba(255,255,255,0.08);
  --panel-border-hi:rgba(90,174,255,0.35);
  --blue:#5aaeff;
  --blue-dim:#3d7fc4;
  --blue-glow:rgba(90,174,255,0.45);
  --text:#eaf1fb;
  --text-dim:#8ea1b8;
  --text-faint:#5b6c80;
  --success:#59d98e;
  --danger:#ff6b6b;
  --radius:16px;
  --radius-sm:10px;
  --font-display:'Syne',sans-serif;
  --font-body:'Poppins',sans-serif;
  --font-mono:'JetBrains Mono',monospace;

  --mc-0:#000000; --mc-1:#0000AA; --mc-2:#00AA00; --mc-3:#00AAAA;
  --mc-4:#AA0000; --mc-5:#AA00AA; --mc-6:#FFAA00; --mc-7:#AAAAAA;
  --mc-8:#555555; --mc-9:#5555FF; --mc-a:#55FF55; --mc-b:#55FFFF;
  --mc-c:#FF5555; --mc-d:#FF55FF; --mc-e:#FFFF55; --mc-f:#FFFFFF;

  --sidebar-w:230px;
}
html.light{
  --bg:#eef2f7;
  --bg-soft:#e4eaf2;
  --panel:rgba(255,255,255,0.65);
  --panel-border:rgba(20,40,70,0.1);
  --panel-border-hi:rgba(58,120,190,0.4);
  --text:#101825;
  --text-dim:#4b5b70;
  --text-faint:#8091a6;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:
    radial-gradient(1100px 550px at 12% -8%, rgba(90,174,255,0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(90,174,255,0.10), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  transition:background .3s ease, color .3s ease;
}
::selection{background:var(--blue); color:#04121f;}
a{color:inherit;}
h1,h2,h3,h4{font-family:var(--font-display); margin:0; letter-spacing:0.01em;}
p{color:var(--text-dim);}
button{font-family:var(--font-body); cursor:pointer;}
code{font-family:var(--font-mono); background:rgba(90,174,255,0.1); padding:1px 6px; border-radius:5px; font-size:0.92em;}
::-webkit-scrollbar{width:10px; height:10px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:rgba(90,174,255,0.25); border-radius:20px;}
::-webkit-scrollbar-thumb:hover{background:rgba(90,174,255,0.45);}

.skip-link{position:absolute; left:-999px; top:0; background:var(--blue); color:#04121f; padding:10px 16px; border-radius:8px; z-index:999;}
.skip-link:focus{left:12px; top:12px;}

.wrap{max-width:1320px; margin:0 auto; padding:0 24px;}

/* ---------- Top nav ---------- */
.nav-spacer{height:86px;}
header.topnav{
  position:fixed; top:16px; left:50%; transform:translateX(-50%);
  z-index:100;
  width:calc(100% - 32px); max-width:1180px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(10,14,20,0.35);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  box-shadow:0 10px 40px -12px rgba(0,0,0,0.5);
  transition:background .35s ease, box-shadow .35s ease, border-color .35s ease, top .35s ease;
}
html.light header.topnav{background:rgba(255,255,255,0.45); border-color:rgba(20,40,70,0.08);}
header.topnav.scrolled{
  top:10px;
  background:rgba(8,11,16,0.72);
  box-shadow:0 16px 40px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(90,174,255,0.08);
}
html.light header.topnav.scrolled{background:rgba(255,255,255,0.75);}
.topnav-inner{display:flex; align-items:center; justify-content:space-between; padding:9px 14px 9px 12px; max-width:1180px; margin:0 auto; gap:14px;}
.brand{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:18px; flex:0 0 auto; text-decoration:none;}
.brand .mark, img.mark{
  width:38px; height:38px; border-radius:10px; object-fit:cover; display:block;
  border:1px solid var(--panel-border-hi);
  box-shadow:0 0 18px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  background:linear-gradient(145deg, rgba(90,174,255,0.28), rgba(90,174,255,0.06));
}
.mark.mark-fallback{display:grid; place-items:center; color:var(--blue); font-family:var(--font-mono); font-weight:700;}
.brand-text{line-height:1.15;}
.brand small{display:block; font-family:var(--font-body); font-weight:500; font-size:11px; color:var(--text-faint); letter-spacing:0.04em;}

.nav-links{display:flex; align-items:center; gap:4px; flex:1; justify-content:center;}
.nav-links a{
  position:relative; padding:8px 13px; border-radius:9px; font-size:13px; font-weight:600;
  color:var(--text-dim); text-decoration:none; white-space:nowrap; transition:color .18s ease, background .18s ease;
}
.nav-links a:hover, .nav-links a.current{color:var(--text); background:rgba(255,255,255,0.05);}
.nav-links a::after{
  content:''; position:absolute; left:13px; right:13px; bottom:4px; height:2px; border-radius:2px;
  background:var(--blue); transform:scaleX(0); transform-origin:left; transition:transform .22s ease;
}
.nav-links a:hover::after, .nav-links a.current::after{transform:scaleX(1);}

.nav-tools{display:flex; align-items:center; gap:10px; flex:0 0 auto;}
.icon-btn{
  width:40px; height:40px; border-radius:10px; border:1px solid var(--panel-border);
  background:var(--panel); color:var(--text-dim); display:grid; place-items:center;
  transition:.18s ease; font-size:15px; flex:0 0 auto; text-decoration:none;
}
.icon-btn:hover{border-color:var(--panel-border-hi); color:var(--blue); transform:translateY(-1px); box-shadow:0 6px 18px rgba(0,0,0,0.25);}
.hamburger{display:none;}

.mobile-menu{
  display:flex; flex-direction:column; gap:2px; padding:0 12px;
  max-height:0; overflow:hidden; opacity:0;
  transition:max-height .32s ease, opacity .25s ease, padding .32s ease;
}
.mobile-menu.open{max-height:600px; opacity:1; padding:6px 12px 14px;}
.mobile-menu a{
  display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:10px;
  color:var(--text-dim); text-decoration:none; font-size:14px; font-weight:600;
  border:1px solid transparent; transition:.15s ease;
}
.mobile-menu a i{width:16px; color:var(--blue); font-size:13px;}
.mobile-menu a:hover{background:rgba(255,255,255,0.05); border-color:var(--panel-border); color:var(--text);}

@media (max-width:900px){
  .nav-links{display:none;}
  .hamburger{display:grid;}
  .nav-hide-mobile{display:none;}
}
@media (min-width:901px){ .mobile-menu{display:none !important;} }
@media (max-width:480px){ .brand small{display:none;} .topnav-inner{padding:8px 10px;} }

/* ---------- Buttons ---------- */
.btn3d{
  --b:var(--blue);
  position:relative; border:none; border-radius:10px; padding:12px 20px;
  font-weight:700; font-size:13.5px; letter-spacing:0.01em; color:#062038;
  background:linear-gradient(180deg, #7ec2ff 0%, var(--b) 55%, #3d84c9 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.65), inset 0 -3px 0 rgba(0,40,80,0.35), 0 6px 0 #2c5e8f, 0 10px 18px rgba(58,120,190,0.35);
  transform:translateY(0); transition:transform .09s ease, box-shadow .09s ease;
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
}
.btn3d:hover{filter:brightness(1.05);}
.btn3d:active{transform:translateY(5px); box-shadow:inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -2px 0 rgba(0,40,80,0.3), 0 1px 0 #2c5e8f, 0 2px 8px rgba(58,120,190,0.3);}
.btn3d.ghost{color:var(--text); background:linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02)); box-shadow:inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -3px 0 rgba(0,0,0,0.35), 0 6px 0 rgba(0,0,0,0.35), 0 10px 16px rgba(0,0,0,0.25);}
.btn3d.ghost:active{box-shadow:inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -2px 0 rgba(0,0,0,0.3), 0 1px 0 rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);}
.btn3d.sm{padding:8px 14px; font-size:12px; border-radius:8px;}
.btn3d.block{width:100%; justify-content:center;}
.btn3d:disabled{opacity:.45; cursor:not-allowed;}
.btn3d.danger{background:linear-gradient(180deg,#ff9c9c,#ff6b6b 55%,#c94040); box-shadow:inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 0 rgba(80,10,10,.35), 0 6px 0 #8f2c2c, 0 10px 18px rgba(190,58,58,.3);}

/* ---------- App shell: tool sidebar + content ---------- */
.app-shell{display:grid; grid-template-columns:var(--sidebar-w) 1fr; gap:22px; align-items:start;}
@media (max-width:980px){ .app-shell{grid-template-columns:1fr;} }

.tool-sidebar{
  position:sticky; top:106px;
  background:var(--panel); border:1px solid var(--panel-border); border-radius:var(--radius);
  padding:14px; backdrop-filter:blur(18px) saturate(140%); -webkit-backdrop-filter:blur(18px) saturate(140%);
  max-height:calc(100vh - 130px); overflow-y:auto;
}
@media (max-width:980px){ .tool-sidebar{position:relative; top:0; max-height:none;} }
.tool-sidebar .ts-group-label{
  font-size:10.5px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-faint);
  font-weight:700; padding:10px 10px 6px;
}
.tool-sidebar .ts-group-label:first-child{padding-top:2px;}
.tool-sidebar a{
  display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:9px;
  color:var(--text-dim); text-decoration:none; font-size:13px; font-weight:600;
  border:1px solid transparent; transition:.15s ease; margin-bottom:2px;
}
.tool-sidebar a i{width:15px; text-align:center; color:var(--blue); font-size:12.5px; flex:0 0 auto;}
.tool-sidebar a:hover{background:rgba(255,255,255,0.05); border-color:var(--panel-border); color:var(--text);}
.tool-sidebar a.current{background:rgba(90,174,255,0.1); border-color:var(--panel-border-hi); color:var(--blue);}
.tool-sidebar hr{border:none; border-top:1px solid var(--panel-border); margin:8px 4px;}

/* ---------- Cards ---------- */
.card{
  background:var(--panel); border:1px solid var(--panel-border); border-radius:var(--radius); padding:20px;
  backdrop-filter:blur(18px) saturate(140%); -webkit-backdrop-filter:blur(18px) saturate(140%);
  position:relative; box-shadow:0 20px 40px -22px rgba(0,0,0,0.55);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card + .card{margin-top:18px;}
.card:hover{transform:translateY(-2px); border-color:var(--panel-border-hi);}
.card h3{font-size:14px; display:flex; align-items:center; gap:8px; color:var(--text); margin-bottom:14px;}
.card h3 i{color:var(--blue); font-size:13px;}
.card h3 .count{margin-left:auto; font-family:var(--font-mono); font-size:11px; color:var(--text-faint); font-weight:500;}

.section-head{margin-bottom:22px;}
.section-head h1, .section-head h2{font-size:24px; font-weight:800;}
.section-head p{max-width:640px; margin-top:8px; font-size:13.5px;}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:12px; color:var(--blue);
  background:rgba(90,174,255,0.08); border:1px solid var(--panel-border-hi); padding:6px 12px; border-radius:100px; margin-bottom:14px;
}
.eyebrow .dot{width:6px; height:6px; border-radius:50%; background:var(--success); box-shadow:0 0 8px var(--success);}

/* ---------- Inputs / editor ---------- */
.gg-input{
  width:100%; resize:vertical; background:rgba(0,0,0,0.22); border:1px solid var(--panel-border); border-radius:11px;
  color:var(--text); padding:13px 14px; font-family:var(--font-mono); font-size:14px; line-height:1.6; outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .3s ease;
}
textarea.gg-input{min-height:110px;}
html.light .gg-input{background:rgba(255,255,255,0.6);}
.gg-input:focus{border-color:var(--panel-border-hi); box-shadow:0 0 0 3px rgba(90,174,255,0.12);}
.gg-input::placeholder{color:var(--text-faint);}
label{font-size:11.5px; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-faint); font-weight:600;}
select.gg-input{cursor:pointer;}

.mc-preview-shell{
  border-radius:12px; padding:18px 20px; margin-top:14px;
  background:linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.7)), repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 4px);
  border:1px solid rgba(90,174,255,0.18);
  font-family:'Minecraftia', var(--font-mono); font-size:18px; line-height:1.7; min-height:56px; word-break:break-word;
  box-shadow:inset 0 0 40px rgba(0,0,0,0.5), 0 0 30px rgba(90,174,255,0.06);
}
.mc-preview-shell .ph{color:#5c6b7d; font-size:13px; font-family:var(--font-body);}

.toolbar-row{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:14px;}
.output-box{margin-top:10px; position:relative;}
.output-box textarea{
  width:100%; min-height:78px; background:rgba(0,0,0,0.28); border:1px dashed var(--panel-border);
  border-radius:11px; color:var(--blue); font-family:var(--font-mono); font-size:13px; padding:14px 44px 14px 14px; resize:vertical;
}
.copy-mini{position:absolute; top:10px; right:10px;}

.pillrow{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px;}
.pill{
  padding:6px 12px; border-radius:100px; font-size:11.5px; font-family:var(--font-mono);
  background:rgba(255,255,255,0.04); border:1px solid var(--panel-border); color:var(--text-dim); cursor:pointer;
}
.pill:hover{border-color:var(--panel-border-hi); color:var(--blue);}
.pill.on{background:var(--blue); color:#04121f; border-color:var(--blue); font-weight:600;}

.fmt-chip{
  display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 11px; border-radius:9px;
  background:rgba(255,255,255,0.03); border:1px solid var(--panel-border); font-size:12.5px; transition:.15s ease;
}
.fmt-chip:hover{border-color:var(--panel-border-hi);}
.fmt-chip .l{display:flex; align-items:center; gap:9px; flex-wrap:wrap;}
.fmt-chip .code{font-family:var(--font-mono); color:var(--blue); font-size:11.5px; background:rgba(90,174,255,0.1); padding:2px 6px; border-radius:5px;}

.server-row{
  display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); border:1px solid var(--panel-border); margin-top:16px;
}
.server-icon{
  width:58px; height:58px; border-radius:8px; flex:0 0 auto; background:linear-gradient(145deg, #2a3f57, #101a26);
  display:grid; place-items:center; color:var(--blue); font-size:22px; font-family:var(--font-mono); border:1px solid rgba(90,174,255,0.25);
}
.server-info{flex:1; min-width:0; font-family:var(--font-mono); font-size:14px; line-height:1.5;}
.server-info .sname{color:#fff; font-weight:600;}
.server-meta{text-align:right; font-family:var(--font-mono); font-size:12px; color:var(--text-faint); flex:0 0 auto;}
.server-meta .ping{display:flex; align-items:center; gap:6px; justify-content:flex-end; color:var(--success);}
.server-meta .bars{display:flex; gap:2px; align-items:flex-end;}
.server-meta .bars i{width:3px; background:var(--success); display:block;}

.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--blue); color:#04121f; font-weight:700; font-size:13px; padding:12px 20px; border-radius:11px;
  box-shadow:0 14px 30px rgba(0,0,0,0.4); display:flex; align-items:center; gap:8px; opacity:0; pointer-events:none; transition:.25s ease; z-index:200;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0);}

.faq-item{border-bottom:1px solid var(--panel-border); padding:16px 0;}
.faq-item summary{cursor:pointer; font-weight:600; font-size:14.5px; list-style:none; display:flex; justify-content:space-between; align-items:center;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:'+'; font-size:20px; color:var(--blue); transition:.2s;}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item p{margin-top:10px; font-size:13.5px;}

footer.site-footer{border-top:1px solid var(--panel-border); margin-top:60px; padding:36px 0 50px;}
.foot-links{display:flex; gap:22px; flex-wrap:wrap; font-size:13px; color:var(--text-dim);}
.foot-links a{text-decoration:none;}
.foot-links a:hover{color:var(--blue);}
.foot-bottom{margin-top:22px; font-size:12px; color:var(--text-faint);}

.grad-stops{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:10px;}
.stop-chip{display:flex; align-items:center; gap:8px; padding:6px 8px 6px 6px; border-radius:10px; background:rgba(255,255,255,0.04); border:1px solid var(--panel-border);}
.stop-chip input[type=color]{width:28px; height:28px; border:none; border-radius:7px; background:none; padding:0; cursor:pointer;}
.stop-chip span{font-family:var(--font-mono); font-size:11.5px; color:var(--text-dim);}
.stop-chip button{background:none; border:none; color:var(--text-faint); font-size:12px;}
.stop-chip button:hover{color:var(--danger);}

.badge{display:inline-flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:11px; padding:4px 9px; border-radius:100px; border:1px solid var(--panel-border); color:var(--text-dim);}
.badge.ok{color:var(--success); border-color:rgba(89,217,142,.35); background:rgba(89,217,142,.08);}
.badge.warn{color:#ffcc5c; border-color:rgba(255,204,92,.35); background:rgba(255,204,92,.08);}

.dropzone{
  border:1.5px dashed var(--panel-border-hi); border-radius:14px; padding:34px 20px; text-align:center;
  background:rgba(90,174,255,0.04); transition:.15s ease; cursor:pointer;
}
.dropzone:hover, .dropzone.drag{background:rgba(90,174,255,0.09); border-color:var(--blue);}
.dropzone i{font-size:28px; color:var(--blue); margin-bottom:10px; display:block;}
.dropzone .dz-sub{font-size:12px; color:var(--text-faint); margin-top:6px;}

.file-row{display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:10px; background:rgba(255,255,255,0.03); border:1px solid var(--panel-border); margin-top:10px;}
.file-row i.fa-cube{color:var(--blue);}
.file-row .fname{flex:1; min-width:0; font-family:var(--font-mono); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.file-row .fsize{font-size:11px; color:var(--text-faint); flex:0 0 auto;}

.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
@media (max-width:760px){ .grid-2{grid-template-columns:1fr;} }

.visually-hidden{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0);}
.reveal-el{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease;}
.reveal-el.in-view{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion: reduce){ .reveal-el{opacity:1; transform:none; transition:none;} }

table.ref-table{width:100%; border-collapse:collapse; font-size:12.5px;}
table.ref-table th{text-align:left; color:var(--text-faint); font-weight:600; text-transform:uppercase; font-size:10.5px; letter-spacing:.05em; padding:8px 10px; border-bottom:1px solid var(--panel-border);}
table.ref-table td{padding:9px 10px; border-bottom:1px solid var(--panel-border);}
table.ref-table tr:hover td{background:rgba(255,255,255,0.02);}
