/* ============================================================
   home.css — Maurer Lab
   Home page: periodic nav, synthwave divider, lab news
   ============================================================ */

/* ── PERIODIC TABLE NAV ── */
.periodic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.periodic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  padding: 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.periodic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0.7;
  transition: opacity 0.22s, height 0.22s;
}
.periodic-card--accent-m::before { background: linear-gradient(90deg, #c026d3, #e879f9); }
.periodic-card--accent-c::before { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.periodic-card::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 6px;
}
.periodic-card--accent-m::after {
  background: radial-gradient(ellipse at 30% 30%, rgba(192,38,211,0.07) 0%, transparent 70%);
}
.periodic-card--accent-c::after {
  background: radial-gradient(ellipse at 30% 30%, rgba(8,145,178,0.08) 0%, transparent 70%);
}
.periodic-card:hover { transform: translateY(-4px); border-color: var(--border-mid); }
.periodic-card--accent-m:hover { box-shadow: 0 8px 32px rgba(192,38,211,0.14); }
.periodic-card--accent-c:hover { box-shadow: 0 8px 32px rgba(8,145,178,0.14); }
.periodic-card:hover::before { opacity: 1; height: 4px; }
.periodic-card:hover::after  { opacity: 1; }

.pc-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.12em;
  color: var(--text-muted); line-height: 1;
}
.pc-arrow {
  position: absolute;
  top: 1.3rem; right: 1.4rem;
  font-size: 1.1rem;
  color: var(--border-mid);
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
}
.periodic-card:hover .pc-arrow { transform: translate(2px, -2px); }
.periodic-card--accent-m:hover .pc-arrow { color: #c026d3; }
.periodic-card--accent-c:hover .pc-arrow { color: #0891b2; }

.pc-symbol {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-top: auto;
  margin-bottom: 0.1rem;
  transition: color 0.22s;
}
.periodic-card--accent-m:hover .pc-symbol { color: #c026d3; }
.periodic-card--accent-c:hover .pc-symbol { color: #0891b2; }

.pc-name {
  font-size: 1rem; font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem; line-height: 1;
}
.pc-desc {
  font-size: 0.8rem; color: var(--text-muted);
  line-height: 1.5; margin-top: auto; font-weight: 300;
}

/* ── SYNTHWAVE SECTION DIVIDER ── */
.synthwave-divider {
  width: 100%;
  pointer-events: none;
  margin: 3rem 0 2.5rem;
}
.synthwave-divider-line {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(192,38,211,0.4) 20%,
    rgba(139,92,246,0.55) 40%,
    rgba(8,145,178,0.55) 60%,
    rgba(34,211,238,0.4) 80%,
    transparent 100%
  );
}
@media (max-width: 768px) {
  .synthwave-divider { margin: 1rem 0 1rem; }
}

/* ── LAB NEWS — dark full-bleed panel ── */
/* ── LAB NEWS ── */
.news-section {
  background: #0a0612;
  border-top: 1px solid rgba(192,38,211,0.2);
  border-bottom: 1px solid rgba(8,145,178,0.15);
}

.news-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 3rem 3.5rem;
}

.news-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.news-section-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-c); display: block; margin-bottom: 0.5rem;
}
.news-section-title {
  font-size: 1.8rem; font-weight: 300;
  color: #fff; line-height: 1; margin: 0;
}
.news-item-count {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}

/* Feed: single column list */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  position: relative;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.news-item:hover {
  background: rgba(192,38,211,0.08);
  border-color: rgba(192,38,211,0.25);
  transform: translateX(4px);
}
.news-item--featured {
  background: linear-gradient(135deg, rgba(192,38,211,0.12) 0%, rgba(8,145,178,0.07) 100%);
  border-color: rgba(192,38,211,0.3);
}
.news-item--featured:hover {
  background: linear-gradient(135deg, rgba(192,38,211,0.18) 0%, rgba(8,145,178,0.1) 100%);
  border-color: rgba(192,38,211,0.45);
}

.news-item-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  width: 3rem;
  text-align: center;
  padding-right: 1.25rem;
  margin-right: 1.25rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.news-item--featured .news-item-date {
  border-right-color: rgba(192,38,211,0.35);
}
.news-item-month {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-c); line-height: 1;
}
.news-item-day {
  font-family: 'Space Mono', monospace;
  font-size: 1.4rem; font-weight: 700; line-height: 1.1;
  color: rgba(255,255,255,0.9);
}
.news-item--featured .news-item-day { color: #e879f9; }
.news-item-year {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem; color: rgba(255,255,255,0.3); line-height: 1;
}

.news-item-body { flex: 1; }
.news-item-text {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin: 0;
}
.news-item--featured .news-item-text {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
}

.news-item-chevron {
  flex: none;
  margin-left: 1rem;
  color: rgba(255,255,255,0.2);
  font-size: 0.9rem;
  transition: transform 0.18s, color 0.18s;
}
.news-item:hover .news-item-chevron {
  transform: translateX(4px);
  color: #e879f9;
}

/* Expand / collapse button */
.news-expand-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}
.news-expand-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-c);
  background: rgba(8,145,178,0.08);
  border: 1px solid rgba(8,145,178,0.25);
  border-radius: 4px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, gap 0.2s;
}
.news-expand-btn:hover {
  background: rgba(8,145,178,0.15);
  border-color: rgba(8,145,178,0.5);
  color: #22d3ee;
  gap: 0.9rem;
}
.news-expand-btn .btn-arrow {
  font-size: 1rem;
  transition: transform 0.25s;
  display: inline-block;
}
.news-expand-btn.expanded .btn-arrow {
  transform: rotate(90deg);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .periodic-grid { grid-template-columns: repeat(2, 1fr); }
  .news-inner { padding: 2.5rem 1.5rem 3rem; }
}
@media (max-width: 500px) {
  .periodic-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
