/* =========================================================
   PluggLAB — WIP Page Stylesheet (wip.css)
   ========================================================= */

:root {
  --bg: #060009;
  --border: rgba(180, 50, 255, 0.2);
  --border-bright: rgba(180, 50, 255, 0.4);
  --text: #e8dff5;
  --text-soft: rgba(232, 223, 245, 0.7);
  --violet-bright: #a855f7;
  --crimson-bright: #e0263f;
  --ice: #4dc9ff;
  --font-display: 'Cinzel', serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8vw;
  font-family: var(--font-body), sans-serif;
  color: var(--text);
  background-color: var(--bg);
  overflow: hidden;
}

/* Background artwork */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../images/wip.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.wip-back {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(6, 0, 9, 0.6);
  transition: color 0.2s, border-color 0.2s;
  z-index: 2;
}
.wip-back:hover { color: var(--text); border-color: var(--border-bright); }

.wip-container {
  position: relative;
  max-width: 460px;
  width: 100%;
  padding: 2.5rem;
  background-color: rgba(6, 0, 9, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

/* Decorative corners */
.wip-container::before,
.wip-container::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--violet-bright);
}
.wip-container::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.wip-container::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.wip-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--crimson-bright);
  background: rgba(224, 38, 63, 0.1);
  border: 1px solid rgba(224, 38, 63, 0.3);
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

h1 {
  font-family: var(--font-display), serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #e8dff5 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.wip-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.wip-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.wip-btn-primary { background: var(--crimson-bright); color: #fff; }
.wip-btn-primary:hover { background: #ff3d55; }
.wip-btn-ghost { border: 1px solid var(--border-bright); color: var(--text); }
.wip-btn-ghost:hover { background: rgba(180, 50, 255, 0.1); }

.wip-loader {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.wip-loader span {
  width: 8px;
  height: 8px;
  background-color: var(--violet-bright);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.wip-loader span:nth-child(1) { animation-delay: -0.32s; }
.wip-loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1.0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .wip-loader span { animation: none; opacity: 1; transform: scale(1); }
}

/* Small screens: recenter, drop the side-lean layout */
@media (max-width: 768px) {
  body {
    justify-content: center;
    padding-right: 0;
    padding: 1.5rem;
  }
  .wip-container {
    text-align: center;
  }
  .wip-loader,
  .wip-actions {
    justify-content: center;
  }
  .wip-back {
    top: 1rem;
    left: 1rem;
  }
}
