/* Hoard Page - Access Sequence & Portal Styles */

/* Access Sequence Overlay */
.access-sequence {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.access-container {
  text-align: center;
  max-width: 500px;
  padding: 40px;
}

/* Animated Logo */
.logo-large {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 40px;
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: rotate 4s linear infinite;
}

.logo-ring.outer {
  inset: 0;
  border-color: var(--neon);
  animation-duration: 8s;
}

.logo-ring.middle {
  inset: 20px;
  border-color: var(--violet);
  animation-duration: 6s;
  animation-direction: reverse;
}

.logo-ring.inner {
  inset: 40px;
  border-color: var(--magenta);
  animation-duration: 4s;
}

.logo-core {
  position: absolute;
  inset: 60px;
  background: conic-gradient(from 0deg, var(--neon), var(--violet), var(--magenta), var(--neon));
  border-radius: 50%;
  animation: pulse-core 2s ease infinite;
}

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

@keyframes pulse-core {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

.access-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 40px;
}

/* Access Steps */
.access-steps {
  text-align: left;
  margin-bottom: 30px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.step.active {
  opacity: 1;
}

.step.complete {
  opacity: 0.7;
}

.step-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  position: relative;
  flex-shrink: 0;
}

.step.active .step-icon {
  border-color: var(--neon);
  animation: pulse-icon 1s ease infinite;
}

.step.complete .step-icon {
  border-color: #28c840;
  background: #28c840;
}

.step.complete .step-icon::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 12px;
  font-weight: bold;
}

@keyframes pulse-icon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,246,255,.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,246,255,0); }
}

.step-text {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
}

.step.active .step-text {
  color: var(--text);
}

.step-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--neon);
  min-width: 60px;
  text-align: right;
}

.step.complete .step-status {
  color: #28c840;
}

/* Progress Bar */
.access-progress {
  height: 4px;
  background: rgba(124,124,255,.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon), var(--magenta));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.access-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
}

.encryption {
  color: #28c840;
}

/* Portal Styles */
.portal-container {
  min-height: 100vh;
}

.portal-header {
  text-align: center;
  padding: 60px 0 40px;
}

.portal-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.portal-header .sigil {
  width: 60px;
  height: 60px;
}

.portal-header .accent {
  color: var(--magenta);
  text-shadow: 0 0 20px rgba(255,43,214,.6);
}

.portal-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 12px;
}

/* Stats Overview */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(11,16,32,.9), rgba(7,10,18,.9));
  border: 1px solid rgba(124,124,255,.25);
  border-radius: 14px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.signals-icon { background: rgba(0,246,255,.15); color: var(--neon); }
.archive-icon { background: rgba(124,124,255,.15); color: var(--violet); }
.storage-icon { background: rgba(255,43,214,.15); color: var(--magenta); }
.nodes-icon { background: rgba(40,200,64,.15); color: #28c840; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--text);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Sector Grid */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.sector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: linear-gradient(180deg, rgba(11,16,32,.95), rgba(7,10,18,.95));
  border: 1px solid rgba(124,124,255,.3);
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sector-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,246,255,.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sector-card:hover .sector-glow {
  opacity: 1;
}

.sector-card:hover {
  transform: translateY(-6px);
  border-color: var(--neon);
  box-shadow: 0 12px 40px rgba(0,246,255,.2);
}

.signals-sector:hover { border-color: var(--neon); }
.signals-sector:hover .sector-glow { background: radial-gradient(circle, rgba(0,246,255,.15), transparent 40%); }

.archive-sector:hover { border-color: var(--violet); }
.archive-sector:hover .sector-glow { background: radial-gradient(circle, rgba(124,124,255,.15), transparent 40%); }

.terminal-sector:hover { border-color: var(--magenta); }
.terminal-sector:hover .sector-glow { background: radial-gradient(circle, rgba(255,43,214,.15), transparent 40%); }

.contact-sector:hover { border-color: #28c840; }
.contact-sector:hover .sector-glow { background: radial-gradient(circle, rgba(40,200,64,.15), transparent 40%); }

.sector-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  color: var(--neon);
}

.signals-sector .sector-icon { color: var(--neon); }
.archive-sector .sector-icon { color: var(--violet); }
.terminal-sector .sector-icon { color: var(--magenta); }
.contact-sector .sector-icon { color: #28c840; }

.sector-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--text);
  margin: 0 0 10px;
}

.sector-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.sector-stats {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.sector-stats span {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(124,124,255,.1);
  color: var(--muted);
}

.sector-stats .active, .sector-stats .session { color: #28c840; }
.sector-stats .anomalies { color: var(--magenta); }
.sector-stats .encrypted { color: var(--neon); }

.sector-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--muted);
  transition: all 0.3s ease;
}

.sector-card:hover .sector-arrow {
  color: var(--neon);
  transform: translateX(6px);
}

/* Recent Activity */
.recent-activity {
  margin-bottom: 48px;
}

.activity-feed {
  margin-top: 20px;
  background: #01030a;
  border: 1px solid rgba(124,124,255,.25);
  border-radius: 14px;
  overflow: hidden;
}

.activity-item {
  display: grid;
  grid-template-columns: 100px 80px 1fr;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(124,124,255,.1);
  font-size: 0.85rem;
  align-items: center;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.activity-type {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
}

.activity-item.signal .activity-type {
  background: rgba(0,246,255,.15);
  color: var(--neon);
}

.activity-item.archive .activity-type {
  background: rgba(124,124,255,.15);
  color: var(--violet);
}

.activity-item.security .activity-type {
  background: rgba(255,43,214,.15);
  color: var(--magenta);
}

.activity-item.system .activity-type {
  background: rgba(40,200,64,.15);
  color: #28c840;
}

.activity-message {
  color: var(--text);
}
