/*
 * Tap Commons — Additional Styles
 * Push to: tap-commons-theme/additional.css
 * Enqueued via functions.php as 'tapcommons-additional'
 */

/* ── SUPERTOP BAR — sticky, lighter text ── */
.supertop {
  position: sticky;
  top: 0;
  z-index: 101;
  background: #120c04;
}
.supertop-left {
  color: #6a5848; /* was #4a3828 — now more readable */
}
.supertop-link {
  color: #8a7060; /* was #7a6858 — slightly lighter */
}

/* ── HEADER — sits below supertop ── */
.header {
  top: 30px;
}

/* ── SMOOTH SCROLL ── */
html {
  scroll-behavior: smooth;
}

/* ── FOCUS STATES (accessibility) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ── CARD TRANSITIONS ── */
.card,
.person-card,
.event-item {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* ── PENDING QUEUE SECTION ── */
.pending-section {
  padding: 28px 36px;
  border-bottom: 1px solid var(--border);
  background: rgba(196,133,42,0.03);
}
.pending-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.pending-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
}
.pending-badge-count {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  background: rgba(196,133,42,0.15);
  border: 1px solid rgba(196,133,42,0.3);
  color: var(--brass);
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}
.pending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}
.pending-item:last-child { margin-bottom: 0; }
.pending-item-title {
  font-weight: 700;
  color: var(--dark);
}
.pending-item-meta {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.pending-item-status {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(196,133,42,0.1);
  border: 1px solid rgba(196,133,42,0.2);
  color: #7a5018;
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}
.pending-empty {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  padding: 8px 0;
}

/* ── ATTRIBUTION BAR ── */
.attribution-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--cream-2);
}
.attr-item {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.attr-sep {
  color: var(--border);
  margin: 0 6px;
  font-size: 10px;
}
.attr-link {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--brass);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.attr-link:hover { text-decoration: underline; }

/* ── COMMUNITY VERIFY ── */
.community-verify {
  background: rgba(58,92,66,0.07);
  border: 1px solid rgba(58,92,66,0.18);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.verify-text { flex: 1; font-size: 12px; color: var(--dark-2); }
.verify-text strong { display: block; font-size: 13px; }
.btn-verify {
  background: var(--green);
  color: white;
  border: none;
  padding: 7px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  flex-shrink: 0;
}
.btn-verify:hover { opacity: 0.85; }
.btn-verify:disabled { opacity: 0.5; cursor: default; }

/* ── LOADING STATE ── */
.loading-placeholder {
  background: linear-gradient(90deg, var(--cream-2) 25%, var(--cream) 50%, var(--cream-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  height: 16px;
  margin-bottom: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── TOAST NOTIFICATION ── */
.tc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  z-index: 999;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.25s;
  border-left: 3px solid var(--brass);
  max-width: 320px;
}
.tc-toast.show { transform: translateY(0); opacity: 1; }
.tc-toast.success { border-left-color: #6aaa82; }
.tc-toast.error { border-left-color: #c4624a; }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    top: 0;
    height: auto;
    max-height: 280px;
    overflow-y: auto;
  }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .supertop-left { display: none; }
  .home-hero h1 { font-size: 30px; }
  .section { padding: 20px 20px; }
  .home-hero { padding: 28px 20px 24px; }
}

@media (max-width: 600px) {
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 52px 1fr; }
  .event-type-badge { display: none; }
  .header { gap: 12px; padding: 0 14px; }
  .nav-tabs { gap: 0; }
  .nav-tab { font-size: 10px; padding: 6px 8px; }
  .supertop { display: none; }
  .header { top: 0; }
  .layout { min-height: calc(100vh - 64px); }
}

/* ── PRINT ── */
@media print {
  .header, .supertop, .sidebar { display: none; }
  .layout { grid-template-columns: 1fr; }
  .main { padding: 20px; }
}
