@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

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

body {
  background: #000;
  color: #0f4;
  font-family: 'Share Tech Mono', monospace;
  overflow-x: hidden;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="none" stroke="%2300ff44" stroke-width="2"/><circle cx="10" cy="10" r="2" fill="%2300ff44"/></svg>'), auto;
}

.App {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #001a00 0%, #000 70%);
}

/* Matrix Rain Effect */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.8;
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-in-out;
}

.main-content.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Header Styles */
.cosmic-header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(45deg, rgba(0, 255, 68, 0.1), rgba(0, 255, 255, 0.1));
  border-bottom: 2px solid #0f4;
  box-shadow: 0 0 30px rgba(0, 255, 68, 0.3);
}

.header-glow {
  animation: glow 3s ease-in-out infinite alternate;
}

.site-title {
  font-family: 'Orbitron', monospace;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px #0f4, 0 0 40px #0f4, 0 0 60px #0f4;
}

.site-subtitle {
  font-size: 1.2rem;
  color: #0af;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px #0af;
}

/* Glitch Effect */
.glitch-text {
  position: relative;
  animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  animation: glitch-1 0.5s infinite;
  color: #ff0040;
  z-index: -1;
}

.glitch-text::after {
  animation: glitch-2 0.5s infinite;
  color: #00ffff;
  z-index: -2;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-2px, -2px); }
  20% { transform: translate(2px, 2px); }
  30% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, -2px); }
  80% { transform: translate(-2px, 2px); }
}

/* Quantum Counter */
.quantum-counter {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 2px solid #0f4;
  border-radius: 10px;
  background: rgba(0, 255, 68, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 68, 0.3);
}

.counter-label {
  font-size: 0.8rem;
  color: #0af;
  margin-bottom: 0.5rem;
}

.counter-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0f4;
  animation: pulse 2s infinite;
}

/* Navigation */
.mystic-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid #0f4;
  flex-wrap: wrap;
}

.portal-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(45deg, rgba(0, 255, 68, 0.2), rgba(0, 255, 255, 0.2));
  border: 1px solid #0f4;
  color: #0f4;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
}

.portal-link:hover,
.portal-link.active {
  background: linear-gradient(45deg, rgba(0, 255, 68, 0.4), rgba(0, 255, 255, 0.4));
  box-shadow: 0 0 20px rgba(0, 255, 68, 0.5);
  transform: translateY(-2px);
}

.portal-icon {
  font-size: 1.2rem;
}

.portal-name {
  font-size: 0.9rem;
  font-weight: bold;
}

/* Main Content Grid */
.shrine-main {
  padding: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Hero Section */
.hero-section {
  grid-column: 1 / -1;
  position: relative;
  padding: 3rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(0, 255, 68, 0.1) 0%, transparent 70%);
  border-radius: 20px;
  margin-bottom: 2rem;
}

/* Sacred Geometry */
.sacred-geometry {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.geometric-pattern {
  position: relative;
  width: 200px;
  height: 200px;
}

.spinning {
  animation: spin 20s linear infinite;
}

.circle-1, .circle-2, .circle-3 {
  position: absolute;
  border: 2px solid #0f4;
  border-radius: 50%;
  opacity: 0.6;
}

.circle-1 {
  width: 200px;
  height: 200px;
  top: 0;
  left: 0;
  animation: pulse 3s infinite;
}

.circle-2 {
  width: 150px;
  height: 150px;
  top: 25px;
  left: 25px;
  animation: pulse 3s infinite 0.5s;
}

.circle-3 {
  width: 100px;
  height: 100px;
  top: 50px;
  left: 50px;
  animation: pulse 3s infinite 1s;
}

.hexagon {
  position: absolute;
  width: 80px;
  height: 80px;
  top: 60px;
  left: 60px;
  background: linear-gradient(45deg, rgba(0, 255, 68, 0.3), rgba(0, 255, 255, 0.3));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: spin 10s linear infinite reverse;
}

/* Chant Activation */
.chant-activation {
  position: relative;
  z-index: 2;
}

.central-sigil {
  margin-bottom: 2rem;
  cursor: pointer;
}

.sigil-core {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.sigil-core.activated {
  transform: scale(1.2);
  filter: brightness(2);
}

.sigil-ring {
  position: absolute;
  border: 2px solid #0f4;
  border-radius: 50%;
  animation: spin 15s linear infinite;
}

.ring-1 {
  width: 150px;
  height: 150px;
  border-color: #0f4;
}

.ring-2 {
  width: 120px;
  height: 120px;
  border-color: #0af;
  animation-direction: reverse;
  animation-duration: 10s;
}

.ring-3 {
  width: 90px;
  height: 90px;
  border-color: #f04;
  animation-duration: 8s;
}

.central-symbol {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: #0f4;
  text-shadow: 0 0 20px #0f4;
  z-index: 10;
}

.main-chant {
  font-family: 'Orbitron', monospace;
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: glow 2s ease-in-out infinite alternate;
}

.sacred-phrase {
  font-size: 1.5rem;
  color: #0af;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px #0af;
}

.power-meter {
  position: relative;
  width: 300px;
  height: 20px;
  margin: 1rem auto;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #0f4;
  border-radius: 10px;
  overflow: hidden;
}

.power-bar {
  height: 100%;
  background: linear-gradient(90deg, #0f4, #0af, #f04);
  transition: width 0.5s ease;
  border-radius: 10px;
  width: 0%;
}

.power-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
}

.activate-btn {
  background: linear-gradient(45deg, rgba(0, 255, 68, 0.3), rgba(0, 255, 255, 0.3));
  border: 2px solid #0f4;
  color: #0f4;
  padding: 1rem 2rem;
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px #0f4;
}

.activate-btn:hover {
  background: linear-gradient(45deg, rgba(0, 255, 68, 0.5), rgba(0, 255, 255, 0.5));
  box-shadow: 0 0 30px rgba(0, 255, 68, 0.5);
  transform: translateY(-2px);
}

/* Retro Sections */
.retro-section {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 255, 68, 0.1));
  border: 2px solid #0f4;
  border-radius: 15px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 68, 0.2);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(90deg, rgba(0, 255, 68, 0.2), rgba(0, 255, 255, 0.2));
  border-bottom: 2px solid #0f4;
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  color: #0f4;
  text-shadow: 0 0 10px #0f4;
}

.loading-gif {
  width: 20px;
  height: 20px;
  filter: hue-rotate(90deg) brightness(1.5);
}

.section-content {
  padding: 1.5rem;
}

/* Profile Section */
.profile-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.profile-pic {
  position: relative;
  flex-shrink: 0;
}

.profile-pic img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 3px solid #0f4;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 68, 0.5);
}

.online-status {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f4;
  color: #000;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 5px;
  animation: pulse 2s infinite;
}

.profile-info h3 {
  font-family: 'Orbitron', monospace;
  color: #0af;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.profile-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.friend-counter {
  margin-top: 1rem;
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.friend {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, rgba(0, 255, 68, 0.3), rgba(0, 255, 255, 0.3));
  border: 1px solid #0f4;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.friend:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 255, 68, 0.5);
}

/* Mythos Cards */
.mythos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.mythos-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 255, 68, 0.2));
  border: 2px solid #0f4;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mythos-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 68, 0.3);
  border-color: #0af;
}

.mythos-card.activated {
  background: linear-gradient(135deg, rgba(0, 255, 68, 0.3), rgba(0, 255, 255, 0.3));
  border-color: #fff;
  box-shadow: 0 0 30px rgba(0, 255, 68, 0.8);
}

.card-title {
  font-family: 'Orbitron', monospace;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #0af;
}

.card-symbol {
  font-size: 2rem;
  margin: 1rem 0;
  text-shadow: 0 0 15px currentColor;
}

.card-desc {
  font-size: 0.8rem;
  color: #0f4;
  font-style: italic;
}

/* Network Feed */
.transmission-feed {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.transmission-item {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #0f4;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.transmission-item:hover {
  background: rgba(0, 255, 68, 0.1);
  border-color: #0af;
}

.trans-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.trans-user {
  color: #0af;
  font-weight: bold;
}

.trans-time {
  color: #666;
}

.trans-message {
  color: #0f4;
  line-height: 1.4;
}

.post-transmission {
  display: flex;
  gap: 0.5rem;
}

.trans-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #0f4;
  color: #0f4;
  padding: 0.8rem;
  border-radius: 5px;
  font-family: 'Share Tech Mono', monospace;
}

.trans-input::placeholder {
  color: #666;
}

.trans-button {
  background: linear-gradient(45deg, rgba(0, 255, 68, 0.3), rgba(0, 255, 255, 0.3));
  border: 1px solid #0f4;
  color: #0f4;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  font-weight: bold;
  transition: all 0.3s ease;
}

.trans-button:hover {
  background: linear-gradient(45deg, rgba(0, 255, 68, 0.5), rgba(0, 255, 255, 0.5));
  box-shadow: 0 0 15px rgba(0, 255, 68, 0.3);
}

/* Protocols Section */
.protocol-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.protocol-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #0f4;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.protocol-item:hover {
  background: rgba(0, 255, 68, 0.1);
  border-color: #0af;
}

.protocol-name {
  color: #0f4;
  font-weight: bold;
}

.protocol-status {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.protocol-status.active {
  background: rgba(0, 255, 68, 0.3);
  color: #0f4;
  border: 1px solid #0f4;
  animation: pulse 2s infinite;
}

.protocol-status.pending {
  background: rgba(255, 255, 0, 0.3);
  color: #ff0;
  border: 1px solid #ff0;
}

/* Construction Section */
.construction-content {
  text-align: center;
}

.construction-gif {
  width: 50px;
  margin-bottom: 1rem;
  filter: hue-rotate(90deg) brightness(1.5);
}

marquee {
  color: #0af;
  margin-top: 1rem;
  font-weight: bold;
}

/* Footer */
.cosmic-footer {
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(0, 255, 68, 0.1));
  border-top: 2px solid #0f4;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-content p {
  margin-bottom: 0.5rem;
  color: #0f4;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #0af;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #0f4;
  text-shadow: 0 0 10px #0f4;
}

/* Animations */
@keyframes glow {
  from { text-shadow: 0 0 20px #0f4, 0 0 30px #0f4, 0 0 40px #0f4; }
  to { text-shadow: 0 0 30px #0f4, 0 0 40px #0f4, 0 0 50px #0f4; }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .site-title {
    font-size: 2.5rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .quantum-counter {
    flex-direction: column;
    gap: 1rem;
  }
  
  .profile-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .mystic-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portal-name {
    display: none;
  }
  
  .main-chant {
    font-size: 2rem;
  }
  
  .power-meter {
    width: 250px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #0f4, #0af);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #0af, #0f4);
}

/* Selection */
::selection {
  background: rgba(0, 255, 68, 0.3);
  color: #0f4;
}