/* mattgaugerx — Modern dark site with navy to teal transitions */
/* Heavy black, easy on the eyes, rich interactivity */

:root {
  --bg: #0D0D0D;
  --navy: #0B172E;
  --teal: #00AFA8;
  --teal-bright: #00D4C8;
  --text: #F5F5F5;
  --text-muted: #A8B0C0;
  --card-bg: #121212;
  --border: rgba(255,255,255,0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-bright);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo:hover {
  color: var(--teal-bright);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--teal-bright);
}

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  color: var(--teal-bright);
  transform: translateY(-1px);
}

.socials svg {
  width: 18px;
  height: 18px;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}

.hero .profile-container {
  width: 292px;
  height: 292px;
  margin: 0 auto 48px;
  border-radius: 50%;
  background: conic-gradient(var(--navy), var(--teal-bright), var(--navy));
  padding: 6px;
  transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), 
              box-shadow 0.5s ease;
  box-shadow: 0 0 0 1px rgba(0, 175, 168, 0.1);
}

.hero .profile-container:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 12px rgba(0, 212, 200, 0.12);
}

.hero .profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #111; /* fallback in case */
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero h1 .text-highlight {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero h1 .text-highlight:hover {
  color: var(--teal-bright);
  transform: translateY(-2px);
}

/* Subtle gradient accent under the main line for visual interest */
.hero h1::after {
  content: '';
  display: block;
  width: 120px;
  height: 3px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, var(--navy), var(--teal-bright));
  border-radius: 3px;
  opacity: 0.7;
}

.hero .tagline {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero .tagline .closer-text {
  transition: color 0.3s ease;
}

.hero .tagline:hover .closer-text {
  color: var(--teal);
}

.cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--navy), var(--teal-bright));
  background-size: 200% 100%;
  color: white;
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-bright);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 1.65rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 560px;
}

/* Mission */
.mission {
  background: #0A0A0A;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mission p {
  max-width: 720px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.mission strong {
  color: var(--text);
  font-weight: 600;
}

/* Questions library page */
.questions-page {
  padding-top: 48px;
  padding-bottom: 80px;
  max-width: 800px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--teal-bright);
}

.questions-page-title {
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  margin-bottom: 12px;
}

.questions-toolbar {
  margin: 36px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.q-search {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.q-search:focus {
  border-color: var(--teal);
}

.q-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.q-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.q-chip:hover {
  border-color: var(--teal);
  color: var(--teal-bright);
}

.q-chip.is-active {
  background: linear-gradient(90deg, var(--navy), var(--teal-bright));
  border-color: transparent;
  color: #fff;
}

.q-sort-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.q-sort {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.9rem;
}

.q-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.questions-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.q-group {
  margin-bottom: 12px;
}

.q-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.q-group:first-child .q-group-title {
  margin-top: 8px;
}

.q-group-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.questions-loading,
.questions-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

.question-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.question-card:hover {
  border-color: rgba(0, 212, 200, 0.45);
  box-shadow: 0 20px 40px -18px rgba(0, 175, 168, 0.2);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 14px;
}

.question-series {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.question-hook {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 14px;
}

.question-note {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 16px;
}

.question-closer {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--teal-bright);
}

/* Community */
.community-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}

.community-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.community-links a:hover {
  border-color: var(--teal);
  color: var(--teal-bright);
  transform: scale(1.05);
}

.community-links svg {
  width: 28px;
  height: 28px;
}

/* Footer */
footer {
  background: #0A0A0A;
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  text-align: center;
  color: var(--text-muted);
}

.closer {
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 20px;
  font-style: italic;
}

/* Utility */
.gradient-text {
  background: linear-gradient(90deg, var(--navy), var(--teal-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mouse-reactive {
  position: relative;
  overflow: hidden;
}

.mouse-reactive::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 212, 200, 0.05) 0%, transparent 70%);
  pointer-events: none;
  transition: background-position 0.05s;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero .profile-circle {
    width: 220px;
    height: 220px;
  }
  .nav-links {
    gap: 20px;
  }
}

/* Expert polish: focus states + icon improvements */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.question-card:focus-within {
  border-color: var(--teal);
}

@media (max-width: 768px) {
  .nav-links {
    gap: 14px;
    font-size: 0.85rem;
  }
  .q-count {
    margin-left: 0;
    width: 100%;
  }
}
