/* ==========================================================
   CLIENT GLOBAL STYLE
   File: static/client/client.css
   Purpose:
   - Shared client layout
   - Temporary placeholders before real components are added
   - Header/footer fallback style
   ========================================================== */

.portfolio-ready {
  animation: portfolioFadeIn 0.45s ease both;
}

@keyframes portfolioFadeIn {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* ===============================
   LOADING
   =============================== */

.client-main-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.client-loading-shell {
  width: min(720px, 100%);
  min-height: 60vh;
  display: grid;
  place-items: center;
}

.client-loading-card {
  width: 100%;
  padding: 42px;
  text-align: center;
}

.client-loading-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 4px solid var(--portfolio-border);
  border-top-color: var(--portfolio-accent);
  animation: clientSpin 0.9s linear infinite;
}

.client-loading-title {
  margin: 12px 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

@keyframes clientSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ===============================
   TEMP HEADER
   =============================== */

#client-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(15, 17, 21, 0.78);
  border-bottom: 1px solid var(--portfolio-border);
  backdrop-filter: blur(18px);
}

.client-temp-header {
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.client-temp-logo {
  font-weight: 950;
  font-size: 1.15rem;
  color: var(--portfolio-accent);
  letter-spacing: -0.03em;
}

.client-temp-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-temp-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--portfolio-muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.client-temp-nav a:hover {
  background: var(--portfolio-soft);
  color: var(--portfolio-text);
}

/* ===============================
   PLACEHOLDERS
   =============================== */

.client-placeholder {
  padding: clamp(24px, 4vw, 48px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.client-placeholder .section-title {
  max-width: 760px;
}

/* ===============================
   TEMP FOOTER
   =============================== */

#client-footer {
  border-top: 1px solid var(--portfolio-border);
  background: rgba(255, 255, 255, 0.03);
}

.client-temp-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--portfolio-muted);
  text-align: center;
  font-size: 0.92rem;
}

/* ===============================
   SCROLL PROGRESS
   =============================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 2000;
  background: var(--portfolio-accent);
  box-shadow: 0 0 20px var(--portfolio-accent);
  transition: width 0.08s linear;
}

/* ===============================
   BACK TO TOP
   =============================== */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--portfolio-border);
  border-radius: 50%;
  background: var(--portfolio-accent);
  color: var(--portfolio-accent-text);
  font-size: 1.25rem;
  font-weight: 900;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {
  .client-temp-header {
    width: min(100% - 20px, 1180px);
  }

  .client-temp-nav {
    display: none;
  }

  .client-loading-card {
    padding: 28px 20px;
  }

  .client-placeholder {
    min-height: 280px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

