/* === Winter Frost Developer Portal === */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #e8f9ff;
  background: radial-gradient(ellipse at bottom, #0b1a2f 0%, #000510 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Aurora Background */
#aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1), transparent),
              radial-gradient(circle at 80% 70%, rgba(0, 128, 255, 0.15), transparent),
              radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent);
  filter: blur(60px);
  animation: auroraShift 12s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes auroraShift {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.1); }
}

/* Snow Effect */
#snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("https://www.transparenttextures.com/patterns/snow.png");
  animation: snowFall 30s linear infinite;
  opacity: 0.3;
  z-index: -1;
}

@keyframes snowFall {
  0% { background-position: 0 0; }
  100% { background-position: 0 1000px; }
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 10%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .logo {
  font-size: 1.8em;
  font-weight: 600;
  color: #b3e5ff;
}

nav a {
  color: #eaf9ff;
  margin: 0 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active {
  color: #00d0ff;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 10%;
  background: linear-gradient(to bottom, rgba(0, 40, 80, 0.4), transparent);
}

.hero h2 {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #c8f4ff;
}

.hero p {
  font-size: 1.1em;
  color: #d8f5ff;
  max-width: 700px;
  margin: 0 auto 40px;
}

.api-key {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 25px;
  width: 500px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
  backdrop-filter: blur(8px);
}

.key-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
}

.key-box code {
  font-size: 0.9em;
  color: #00e0ff;
}

.key-box button {
  background: transparent;
  border: none;
  color: #aef;
  cursor: pointer;
  transition: color 0.3s ease;
}

.key-box button:hover {
  color: #fff;
}

/* Endpoint Sections */
.endpoints, .sdks, .test-console, .meta-info, .docs {
  padding: 70px 10%;
}

h2 {
  font-size: 1.7em;
  margin-bottom: 30px;
  color: #b6f6ff;
}

.endpoint {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  border-left: 4px solid #00d4ff;
  backdrop-filter: blur(10px);
}

.endpoint-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.method {
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  margin-right: 10px;
}

.method.get { background: #00d4ff33; color: #00e6ff; }
.method.post { background: #3fff7a33; color: #4dff88; }
.method.delete { background: #ff3f3f33; color: #ff6969; }

pre {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 15px;
  overflow-x: auto;
  font-size: 0.9em;
}

/* SDK Cards */
.sdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.sdk-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.sdk-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

/* Playground */
.test-console form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

.test-console input, 
.test-console select, 
.test-console textarea {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #dff;
}

button {
  background: linear-gradient(90deg, #00d4ff, #00ffe0);
  color: #001;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 600;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px #00e0ff;
}

/* Response Box */
.response-box {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 20px;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a9e3ff;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(0, 200, 255, 0.2);
  border: 1px solid #00e0ff;
  padding: 12px 18px;
  border-radius: 10px;
  color: #fff;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.toast.show { opacity: 1; }
