@import url('https://fonts.googleapis.com/css2?family=Noticia+Text:wght@700&display=swap');

/*
  Zoite theme for IdleRPG Web
  - Matches zoite.net look/feel (font, colors, nav gradient, button/input styling)
  - Keeps existing IDs/classes so nothing “mysteriously” stops working
*/

html{scrollbar-gutter:stable}

body{
  margin:0;
  background:#eee;
  color:#333;
  font-family:'Noticia Text',serif;
  overflow-y:scroll;
  text-align:left;
}

/* Links (default content links) */
a{
  color:#234562;
  font-weight:600;
  text-decoration:none;
}
a:hover{
  color:#1a3b57;
  text-decoration:underline;
}

/* Page layout */
div.main{
  width:100%;
  margin:0;
  padding:0;
}

div.content{
  max-width:1000px;
  margin:0 auto;
  padding:24px 12px 28px;
}

/* ===== Header to match main site ===== */
#irpg-notice{
  font-size:.75rem;
  text-align:center;
  margin:.5rem 0;
}

/* Main nav bar look (matches zoite.net header bar) */
#irpg-nav{
  background:linear-gradient(180deg,#1f4a70 0%,#133552 80%);
  box-shadow:0 2px 4px rgba(0,0,0,.4);
  overflow:visible; /* allow logo to overflow without changing nav height */
}

/* Ensure nav links are white (don’t let global <a> rules leak in) */
#irpg-nav,
#irpg-nav a{
  font-family:'Noticia Text',serif;
  color:#fff;
  font-weight:bold;
  text-decoration:none;
}

#irpg-nav a:hover{
  color:#9ecbff;
}

/* Layout: brand left, menu centered like the main site */
#irpg-nav .nav-inner{
  max-width:1000px;
  margin:0 auto;
  padding:12px 12px;
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  position:relative;
  gap:1rem;
  overflow:visible; /* allow logo overflow */
}

/* Brand = just the IdleRPG logo (no Z box, no network text) */
#irpg-nav .brand{
  display:flex;
  align-items:center;
  height:48px;       /* nav "track" height */
  overflow:visible;  /* logo can extend above/below */
}

/*
  Logo sizing: cap it, allow shrink. The transform is the trick:
  it visually moves the image without affecting layout height.
*/
#irpg-nav .brand-logo{
  display:block;
  width:auto;
  height:auto;
  max-width:260px;
  max-height:150px;

  transform:translateY(-10px); /* makes it sit "over" the bar */
  transform-origin:left center;
}

/* Mobile: burger menu */
#irpg-nav input[type=checkbox]{display:none}

#irpg-nav .burger{
  position:absolute;
  right:1rem;
  top:.8rem;
  z-index:50;
  cursor:pointer;
  font-size:1.8rem;
  color:#fff;
  user-select:none;
}

/* Menu (mobile default hidden) */
#irpg-nav .menu{
  list-style:none;
  margin:.75rem 0 0;
  padding:0;
  display:none;
  flex-direction:column;
  gap:.75rem;
  grid-column:1 / -1;
  justify-self:center;
}

#irpg-nav input[type=checkbox]:checked ~ .menu{
  display:flex;
}

#irpg-nav .menu li{margin:0;padding:0}

#irpg-nav .menu a{
  padding:.35rem .55rem;
  border-radius:.25rem;
}

#irpg-nav .menu a:hover{
  text-decoration:none;
  background:rgba(255,255,255,.08);
}

/* Desktop layout */
@media(min-width:640px){
  #irpg-nav .burger{display:none}

  #irpg-nav .menu{
    display:flex!important;
    flex-direction:row;
    gap:1rem;
    margin:0;
    grid-column:2;
    justify-self:center;
  }

}

/* ===== End header ===== */

/* Headline + typography */
h1,h2,h3{
  margin:0 0 .75rem;
  letter-spacing:.03em;
}

h1{
  font-size:1.6rem;
  border-bottom:1px solid rgba(19,53,82,.2);
  padding-bottom:.6rem;
  margin-bottom:1.1rem;
}

h2{font-size:1.2rem}
h3{font-size:1.05rem}

p{line-height:1.5}

/* “Zoite-ish” UI primitives (used by pages + safe for future reuse) */
.btn-primary,
button,
input[type=submit],
input[type=button]{
  background:#133552;
  color:#fff;
  font-weight:600;
  padding:.5rem 1rem;
  border-radius:.25rem;
  border:0;
  box-shadow:0 1px 2px rgba(0,0,0,.2);
  cursor:pointer;
  transition:background .15s;
}
.btn-primary:hover,
button:hover,
input[type=submit]:hover,
input[type=button]:hover{
  background:#0f2e49;
}

.btn-secondary{
  background:#e5e7eb;
  color:#1f2937;
  font-weight:600;
  padding:.5rem 1rem;
  border-radius:.25rem;
  border:1px solid #d1d5db;
  transition:background .15s;
}
.btn-secondary:hover{background:#d1d5db}

input[type=text],
input[type=number],
select,
textarea{
  border:1px solid #d1d5db;
  border-radius:.25rem;
  padding:.25rem .5rem;
  width:100%;
  line-height:1.5;
  font-family:inherit;
  font-size:inherit;
  box-sizing:border-box;
  background:#fff;
  color:#111827;
}

input[type=text]:focus,
input[type=number]:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:transparent;
  box-shadow:0 0 0 2px #133552;
}

code, kbd{
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  border-radius:.25rem;
  padding:.05rem .35rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:.9em;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  background:#eef2f7;
  border:1px solid #d7e1ec;
  color:#234562;
  border-radius:9999px;
  padding:.15rem .5rem;
  font-size:.75rem;
  font-weight:600;
}

.panel,
.card{
  background:#fff;
  border-left:6px solid #133552;
  border-radius:.5rem;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
}

.panel{padding:14px}
.card{padding:18px}

/* Index layout */
div#main-content{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}

div#map-container{
  flex: 2 1 520px;
}

div#player-list{
  flex: 1 1 280px;
  padding:14px;
  background:#fff;
  border-left:6px solid #133552;
  border-radius:.5rem;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
}

div#map-container img{
  width:100%;
  height:auto;
  display:block;
  border-radius:.5rem;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
  background:#fff;
}

form#filter-form{margin-bottom:.65rem}

ol#player-list{
  margin:.35rem 0 0;
  padding-left:1.2rem;
  max-height:760px;
  overflow:auto;
}

li.offline{color:#6b7280}

/* Player view */
div#player-map{
  margin-bottom:14px;
}

div#map{
  margin:0 auto;
  width:500px;
  height:500px;
  background:#fff;
  border-radius:.5rem;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
  overflow:hidden;
}

div#map img{
  display:block;
  width:500px;
  height:500px;
}

div.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
}

.stat-label{font-weight:700;color:#133552}

.status-online{color:#047857;font-weight:700}
.status-offline{color:#6b7280;font-weight:700}
.status-dead{color:#b91c1c;font-weight:800}

/* Tables (help/quest/etc) */
table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
  border-radius:.5rem;
  overflow:hidden;
}

th{
  background:#133552;
  color:#fff;
  font-weight:700;
  padding:10px 8px;
  text-align:left;
}

td{
  padding:8px;
  border-top:1px solid #e5e7eb;
  vertical-align:top;
}

tr:nth-child(even) td{background:#f9fafb}

hr{
  border:0;
  border-top:1px solid #d1d5db;
  margin:18px 0;
}

/* Old remnants: keep pointer cursor for world map areas */
area{cursor:pointer}

/* Responsive */
@media (max-width: 900px){
  div#main-content{flex-direction:column}
  div#map{width:100%;height:auto}
  div#map img{width:100%;height:auto}
}
