/*
Theme Name: Vita Circle
Theme URI: https://example.com/vita-circle
Author: Vita Circle
Description: Member biography theme styled after LinkBreeze Aurora — glass cards, aurora background, dark-first.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: vita-circle
*/

:root,
[data-theme="dark"] {
  --bg: #05010f;
  --bg-deep: rgba(8, 6, 22, 0.72);
  --paper: rgba(16, 12, 32, 0.55);
  --ink: #f5f3ff;
  --ink-soft: #b7b3d1;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --gold: #22d3ee;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --notice-bg: rgba(34, 211, 238, 0.12);
  --notice-ink: #67e8f9;
  --radius: 22px;
  --serif: "Sora", "Outfit", system-ui, sans-serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --blur: 18px;
}

[data-theme="light"] {
  --bg: #eef2ff;
  --bg-deep: rgba(255, 255, 255, 0.8);
  --paper: rgba(255, 255, 255, 0.7);
  --ink: #1e1b4b;
  --ink-soft: #5b567a;
  --line: rgba(79, 70, 229, 0.16);
  --accent: #4f46e5;
  --accent-hover: #6366f1;
  --gold: #0e7490;
  --shadow: 0 18px 40px rgba(79, 70, 229, 0.12);
  --notice-bg: #e0f2fe;
  --notice-ink: #0e7490;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(40% 50% at 18% 22%, rgba(99, 102, 241, 0.5) 0%, transparent 70%),
    radial-gradient(45% 55% at 82% 18%, rgba(45, 212, 191, 0.38) 0%, transparent 70%),
    radial-gradient(50% 60% at 62% 78%, rgba(236, 72, 153, 0.32) 0%, transparent 70%),
    radial-gradient(38% 48% at 28% 82%, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  background-attachment: fixed;
  transition: color 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
  top: 32px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
}

.brand span {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav-links ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 22px;
  font: 600 0.95rem var(--sans);
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  color: #0b0818;
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.35);
}

[data-theme="light"] .btn-primary {
  color: #fff;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  backdrop-filter: blur(12px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--paper);
}

.hero {
  padding: 88px 0 56px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--serif);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  margin: 0 0 18px;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions,
.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card,
.card,
.form-panel,
.profile-side,
.member {
  background: var(--paper);
  border: 1px solid var(--line);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 28px;
  padding: 28px;
}

.portrait,
.avatar {
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
  border: 2px solid var(--line);
}

.portrait {
  aspect-ratio: 1;
  max-width: 220px;
  margin-inline: auto;
}

.quote {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: normal;
  margin-bottom: 10px;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.content-section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 8px 0 12px;
}

.grid-3,
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  color: var(--ink-soft);
}

.member {
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(129, 140, 248, 0.2);
}

.member-photo {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-deep);
}

.member-body {
  padding: 18px 18px 22px;
}

.role {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}

.form-panel {
  border-radius: 28px;
  padding: 36px;
  max-width: 560px;
  margin: 0 auto 96px;
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 16px 0 6px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  border-radius: 14px;
  padding: 12px 14px;
  font: 1rem var(--sans);
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.notice,
.vita-notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--notice-bg);
  color: var(--notice-ink);
  font-weight: 600;
}

.vita-error {
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
  gap: 24px;
  padding: 56px 0 96px;
}

.profile-side {
  border-radius: 28px;
  padding: 28px 24px 24px;
  text-align: center;
}

.avatar {
  width: 128px;
  aspect-ratio: 1;
  margin-inline: auto 16px;
  margin: 0 auto 16px;
}

.bio-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(var(--blur));
}

.bio-text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.bio-text p + p {
  margin-top: 16px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
  justify-content: center;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--accent);
  color: #0b0818;
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.45);
}

.social-list--compact {
  margin: 12px 0 0;
  justify-content: flex-start;
}

.social-list--compact .social-link {
  width: 34px;
  height: 34px;
}

.social-fields {
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 22px;
  padding: 8px 16px 16px;
}

.social-fields legend {
  padding: 0 8px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.entry {
  padding: 64px 0 96px;
  max-width: 720px;
}

@media (max-width: 860px) {
  .hero,
  .grid-3,
  .member-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 2.2rem;
  }
}
