@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg:           #05050f;
  --card-bg:      rgba(8, 8, 24, 0.85);
  --neon-cyan:    #00f5ff;
  --neon-purple:  #bf00ff;
  --neon-green:   #39ff14;
  --neon-orange:  #ff8800;
  --neon-red:     #ff0055;
  --neon-blue:    #0099ff;
  --text:         #e2e8f0;
  --text-dim:     rgba(226, 232, 240, 0.55);
  --border:       rgba(0, 245, 255, 0.15);
}

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

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

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% 60%, rgba(0, 245, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(191, 0, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(57, 255, 20, 0.03) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  padding: 50px 20px 60px;
  min-height: 100%;
}

/* Subtle grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

div { display: block; }

.container {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

/* ── Header ── */
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: none;
}

.site-description {
  text-align: center;
  margin: 0 auto 50px;
  font-size: 1.45rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 520px;
}

.tempview { margin-bottom: 50px; }

/* ── Temperature Circles ── */
.de {
  margin: 0 auto;
  width: 200px;
  height: 200px;
  position: relative;
}

.de .den,
.de .dene,
.de .denem,
.de .deneme {
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
}

.den {
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border-radius: 100%;
  background: rgba(6, 6, 22, 0.92);
  border: 2px solid rgba(0, 245, 255, 0.25);
  box-shadow:
    0 0 24px rgba(0, 245, 255, 0.12),
    inset 0 0 28px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.5s ease, border-color 0.5s ease, background-color 0.5s ease;
}

.dene {
  width: 162px;
  height: 162px;
  margin: -81px 0 0 -81px;
  border-radius: 100%;
  background: rgba(4, 4, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.denem {
  width: 128px;
  height: 128px;
  margin: -64px 0 0 -64px;
  border-radius: 100%;
  background: rgba(3, 3, 12, 0.98);
}

.deneme {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan), 0 0 18px rgba(0, 245, 255, 0.4);
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

.deneme span {
  position: static;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

/* ── User label under circle ── */
.user {
  margin: 0 auto;
  text-align: center;
  padding-top: 18px;
}

h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.temp-status {
  margin-top: 5px;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.5s ease;
}

/* ── Mobile ── */
@media screen and (max-width: 700px) {
  body {
    padding: 36px 16px 60px;
  }

  h1 {
    font-size: 2rem;
  }

  .site-description {
    font-size: 1.2rem;
    margin-bottom: 36px;
  }

  .de {
    width: 220px;
    height: 220px;
  }

  .den {
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
  }

  .dene {
    width: 178px;
    height: 178px;
    margin: -89px 0 0 -89px;
  }

  .denem {
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
  }

  .deneme {
    width: 106px;
    height: 106px;
    margin: -53px 0 0 -53px;
    font-size: 23px;
  }

  .deneme span {
    font-size: 23px;
  }

  h3 {
    font-size: 0.95rem;
  }

  .temp-status {
    font-size: 0.8rem;
  }

  .user {
    padding-top: 22px;
    margin-bottom: 10px;
  }

  /* Space between stacked sensor cards */
  .tempview .col-xs-12 {
    margin-bottom: 48px;
  }

  .tempview .col-xs-12:last-child {
    margin-bottom: 0;
  }
}
