/* Sols Client — static export styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --radius: 0.5rem;
  --background: #0d0b0b;
  --foreground: #f3f0ef;
  --surface: #161212;
  --signal: #ff3b30;
  --signal-soft: rgba(255, 59, 48, 0.22);
  --signal-glow: rgba(255, 59, 48, 0.45);
  --border: rgba(255, 255, 255, 0.1);
  --muted: rgba(255, 255, 255, 0.6);
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 50% -10%, rgba(255, 59, 48, 0.12), transparent 40rem),
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

::selection {
  background: var(--signal);
  color: #fff;
}

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

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 11, 11, 0.85);
  backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-frame {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.logo-frame img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.brand:hover .logo-frame img {
  transform: scale(1.1) rotate(12deg);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand-text span {
  color: var(--signal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.discord-btn {
  display: none;
}

@media (min-width: 640px) {
  .discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 36px;
    padding: 0 1rem;
    border-radius: var(--radius);
    background: var(--foreground);
    color: var(--background);
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--signal-soft);
  }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.28), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn-primary {
  background: var(--foreground);
  color: var(--background);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px var(--signal-soft);
}

.btn-outline {
  border-color: var(--border);
  background: transparent;
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.35);
  background: var(--surface);
}

/* Main sections */
main {
  min-height: 100vh;
}

section {
  padding: 8rem 1.25rem 4rem;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 59, 48, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 59, 48, 0.08);
  padding: 0.45rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--signal);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
  animation: status-pulse 1.8s ease-in-out infinite;
}

/* Hero panel */
.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  padding: 2.5rem 1.5rem;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, var(--signal-soft), transparent 34%);
  pointer-events: none;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  opacity: 0.8;
  animation: scan 5s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.solar-mark {
  position: relative;
  width: 144px;
  height: 144px;
  margin: 2rem auto;
  display: grid;
  place-items: center;
}

.solar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 59, 48, 0.25);
  animation: ring-breathe 3s ease-in-out infinite;
}

.solar-dashed {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px dashed var(--border);
  animation: reverse-spin 18s linear infinite;
}

.solar-mark img {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  filter: drop-shadow(0 0 28px var(--signal-soft));
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  max-width: 900px;
  margin: 0 auto;
}

.hero-title .accent {
  color: var(--signal);
}

.hero-desc {
  max-width: 640px;
  margin: 1.75rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-grid.split {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.interactive-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(22, 18, 18, 0.92);
  padding: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
}

.interactive-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border-top: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.35s ease;
}

.interactive-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 59, 48, 0.45);
  background: rgba(38, 25, 25, 0.95);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.interactive-panel:hover::after {
  border-top-color: var(--signal);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--signal);
}

.card-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.interactive-panel:hover .card-icon {
  color: var(--signal);
  transform: scale(1.1);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3.5rem;
}

.card-copy {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.section-label.signal {
  color: var(--signal);
}

.panel-scan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 59, 48, 0.09) 48%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-scan:hover::before {
  transform: translateX(100%);
}

/* Page intro */
.page-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-title {
  font-size: clamp(2.75rem, 8vw, 5rem);
  margin-top: 1.25rem;
}

.page-title .accent {
  color: var(--signal);
}

.page-desc {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Support cards */
.support-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 4rem;
}

.support-card {
  composes: interactive-panel;
  min-height: 280px;
}

.support-card .arrow {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.support-card:hover .arrow {
  color: var(--signal);
  transform: translate(4px, -4px);
}

.support-action {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Team */
.team-section {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.team-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .team-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-meta a {
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.flex-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes ring-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.3; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes reverse-spin {
  to { transform: rotate(-360deg); }
}

@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.8; }
  75% { transform: translateY(680px); opacity: 0.15; }
}

/* Delayed card animations */
.delay-1 { animation-delay: 90ms; }
.delay-2 { animation-delay: 180ms; }
.delay-3 { animation-delay: 270ms; }

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.4rem 0.55rem;
    font-size: 0.8rem;
  }

  .hero-panel {
    padding: 2rem 1.25rem;
  }

  .solar-mark {
    width: 120px;
    height: 120px;
  }

  .solar-mark img {
    width: 88px;
    height: 88px;
  }

  section {
    padding-top: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* News channel */
.news-list {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 4rem auto 0;
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding: 0;
  overflow: hidden;
}

.news-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-thumb {
  transform: scale(1.05);
}

.news-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-summary {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .news-card {
    flex-direction: row;
  }
  .news-thumb {
    width: 224px;
    height: auto;
  }
}

.article-body {
  margin-top: 1.5rem;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
}

.article-summary {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.article-image {
  margin-top: 2rem;
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  object-fit: cover;
}

/* Forms (admin) */
.field {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.25s ease;
}

.field::placeholder {
  color: var(--muted);
}

.field:focus {
  border-color: var(--signal);
}

textarea.field {
  resize: vertical;
}

.notice {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 59, 48, 0.3);
  background: rgba(255, 59, 48, 0.08);
  color: var(--signal);
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
}

.admin-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .admin-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.8rem 1rem;
}

.post-row-title {
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-row-date {
  font-size: 0.75rem;
  color: var(--muted);
}

.delete-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s ease;
  padding: 0.25rem;
}

.delete-btn:hover {
  color: var(--signal);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-sm {
  height: 38px;
  padding: 0 1rem;
  font-size: 0.85rem;
}
