/* ============================================================
   igoonforfree — Windows Aero / Frutiger Aero styling
   ============================================================ */

:root {
  --aero-navy:  #04263f;
  --aero-deep:  #06578f;
  --aero-blue:  #1e88e5;
  --aero-sky:   #4fc3f7;
  --aero-pale:  #cdeeff;
  --aero-green: #6cbf46;
  --aero-green-deep: #2f7d1f;
  --aero-red:   #e2574c;
  --aero-red-deep: #a12a22;
  --ink:        #0b2545;
  --ink-soft:   #4a6b82;
  --glass:      rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.65);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;

  /* Default Aero "aurora" gradient — replaced by --bg-image when a
     custom background file is dropped next to index.php */
  background-image:
    var(--bg-image, none),
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 82% 12%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 18%),
    linear-gradient(160deg, var(--aero-navy) 0%, var(--aero-deep) 45%, var(--aero-blue) 70%, var(--aero-sky) 100%);
  background-size: cover, auto, auto, auto;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1 {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #06345c;
  margin: 0 0 16px 0;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ---------------- inline icon helpers ---------------- */
img.icon-inline {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  image-rendering: -webkit-optimize-contrast;
}
img.icon-inline-lg {
  vertical-align: -3px;
}

/* ---------------- floating bubbles ---------------- */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bubbles span {
  position: absolute;
  bottom: -120px;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0.05) 70%);
  opacity: 0.55;
  animation: float-up linear infinite;
}
.bubbles span:nth-child(1) { left: 8%;  width: 46px; height: 46px; animation-duration: 19s; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 22%; width: 22px; height: 22px; animation-duration: 14s; animation-delay: 2s; }
.bubbles span:nth-child(3) { left: 48%; width: 60px; height: 60px; animation-duration: 24s; animation-delay: 1s; }
.bubbles span:nth-child(4) { left: 64%; width: 30px; height: 30px; animation-duration: 16s; animation-delay: 4s; }
.bubbles span:nth-child(5) { left: 80%; width: 50px; height: 50px; animation-duration: 21s; animation-delay: 3s; }
.bubbles span:nth-child(6) { left: 92%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: 5s; }

@keyframes float-up {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.35; }
  100% { transform: translateY(-115vh) translateX(30px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles span { animation: none; display: none; }
}

/* ---------------- top navigation ---------------- */
.top-navbar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(255,255,255,0.75) 0%, rgba(226,244,255,0.55) 55%, rgba(255,255,255,0.35) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 18px rgba(3, 40, 80, 0.18), inset 0 1px 0 #fff;
}

.nav-inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-brand {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #054474;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.brand-icon {
  flex-shrink: 0;
  display: block;
}

.nav-links { display: flex; gap: 8px; }

.tab-btn {
  font-family: inherit;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(to bottom, #fafdff 0%, #dcebfa 46%, #b9d8f5 50%, #e8f3ff 100%);
  border: 1px solid #90b3d4;
  border-radius: 14px;
  padding: 7px 16px 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2c5478;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow:
    0 2px 5px rgba(10,50,100,0.18),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(140,175,210,0.6);
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
/* Aero glass highlight cap — the glossy top-half sheen real Aero buttons
   get from the DWM. Clipped to the pill shape via overflow:hidden above. */
.tab-btn::before {
  content: "";
  position: absolute;
  top: 1px; left: 4%;
  width: 92%;
  height: 48%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.15) 100%);
  border-radius: 50% 50% 45% 45% / 100% 100% 40% 40%;
  pointer-events: none;
  z-index: -1;
}
.tab-btn img {
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.4));
}
.tab-btn:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #e2f0ff 46%, #c7e2fa 50%, #f0f8ff 100%);
  color: #0058b8;
}
.tab-btn:active {
  transform: translateY(1px);
}
.tab-btn.active {
  background: linear-gradient(to bottom, #7fc4ff 0%, #2f8ff2 46%, #0069dd 50%, #3d9bff 100%);
  border-color: #0058b8;
  color: #ffffff;
  box-shadow:
    0 2px 8px rgba(0,45,100,0.35),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,30,70,0.3);
  text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
}
.tab-btn.active::before {
  background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.05) 100%);
}

/* ---------------- main glass window ---------------- */
.glass-window {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 460px;
  margin: 36px 0 24px;
  padding: 3px;
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 45px rgba(2, 30, 70, 0.35), inset 0 1px 2px rgba(255,255,255,0.85);
  overflow: hidden;
}

.window-sheen {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 46%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0) 100%);
  pointer-events: none;
  border-radius: 18px 18px 60% 60% / 18px 18px 30px 30px;
}

.inner-container {
  position: relative;
  background: var(--glass-strong);
  border-radius: 15px;
  padding: 26px 24px;
  border: 1px solid rgba(255,255,255,0.4);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panel-fade-in 0.18s ease; }

@keyframes panel-fade-in {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel.active { animation: none; }
}

/* ---------------- status panel ---------------- */
.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.status-header h1 { margin: 0; }

.orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}
.orb-online {
  background: radial-gradient(circle at 32% 28%, #e4ffe0, var(--aero-green) 55%, var(--aero-green-deep));
  box-shadow: 0 0 10px rgba(108,191,70,0.9);
  animation: pulse-glow 2.4s ease-in-out infinite;
}
.orb-offline {
  background: radial-gradient(circle at 32% 28%, #ffe4e0, var(--aero-red) 55%, var(--aero-red-deep));
  box-shadow: 0 0 10px rgba(226,87,76,0.8);
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(108,191,70,0.7); }
  50%      { box-shadow: 0 0 14px rgba(108,191,70,1); }
}
@media (prefers-reduced-motion: reduce) {
  .orb-online { animation: none; }
}

.stat-box {
  background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(232,242,255,0.85) 100%);
  border: 1px solid rgba(160,190,230,0.55);
  border-radius: 22px;
  padding: 11px 18px;
  margin: 9px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04), inset 0 1px 0 #fff;
}
.label { font-weight: 600; color: var(--ink-soft); font-size: 13.5px; display: flex; align-items: center; }
.value {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.connect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  text-align: center;
  text-decoration: none;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 26px;
  background: linear-gradient(to bottom, #a8ef7c 0%, #6cbf3e 46%, #3f9e1f 50%, #67c93a 100%);
  border: 1px solid #2c7a12;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
  box-shadow:
    0 6px 14px rgba(30,110,10,0.4),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(20,70,5,0.35);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Same Aero glass highlight cap as the nav tabs, scaled up for the pill button */
.connect-btn::before {
  content: "";
  position: absolute;
  top: 2px; left: 3%;
  width: 94%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.08) 100%);
  border-radius: 50% 50% 45% 45% / 100% 100% 45% 45%;
  pointer-events: none;
  z-index: -1;
}
.connect-btn img {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35));
}
.connect-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 9px 18px rgba(30,110,10,0.5),
    inset 0 1px 0 rgba(255,255,255,0.6);
}
.connect-btn:active { transform: translateY(1px); }

/* ---------------- about / contact ---------------- */
.panel-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: #294560;
}
.panel-text p { margin: 0 0 12px 0; }
.panel-text p:last-child { margin-bottom: 0; }

.panel-subhead {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #0050b3;
  margin: 20px 0 10px 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 80, 179, 0.15);
}
.panel-subhead:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(160,190,230,0.35);
}
.spec-list li:last-child { border-bottom: none; }
.spec-label { font-weight: 600; color: var(--ink-soft); font-size: 13.5px; flex-shrink: 0; }
.spec-value { font-weight: 700; color: var(--ink); text-align: right; }

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(160,190,230,0.35);
}
.contact-row:last-child { border-bottom: none; }
.contact-label { font-weight: 600; color: var(--ink-soft); font-size: 13.5px; }
.contact-link { color: #0072e0; font-weight: 700; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }
.contact-value { font-weight: 700; color: var(--ink); }

footer {
  position: relative;
  z-index: 1;
  margin: 4px 0 26px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,20,50,0.4);
  text-align: center;
}

/* ---------------- small screens ---------------- */
@media (max-width: 420px) {
  .nav-inner { justify-content: center; text-align: center; }
  h1 { font-size: 18px; }
}
