:root {
  --bg: #050310;
  --card: rgba(12, 8, 24, 0.7);
  --card-border: rgba(80, 200, 255, 0.2);
  --text: #e0e0ff;
  --text-muted: #8a90b0;
  --neon-cyan: #00f7ff;
  --neon-magenta: #ff00f7;
  --neon-violet: #b967ff;
  --copper: #d4af37;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Fira Code', monospace;
  line-height: 1.7;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(10, 5, 20, 0.8) 0%, transparent 40%),
    linear-gradient(to bottom, #03010a, #08051a);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 20px);
  pointer-events: none;
  z-index: -1;
}

header {
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(185, 103, 255, 0.15);
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--neon-violet);
  text-shadow: 0 0 10px rgba(185, 103, 255, 0.7);
  letter-spacing: 1.5px;
}

.nav-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.lang-toggle {
  background: rgba(30, 25, 45, 0.6);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(0, 247, 255, 0.15);
  box-shadow: 0 0 8px rgba(0, 247, 255, 0.5);
}

.nav-link {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: var(--neon-cyan);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--neon-cyan);
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.2), transparent);
  transition: 0.5s;
}

.nav-link:hover {
  background: rgba(0, 247, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.6);
  text-shadow: 0 0 8px var(--neon-cyan);
}

.nav-link:hover::before {
  left: 100%;
}

main {
  padding: 2.5rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section { display: none; }
.section.active { display: block; }

h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1.2rem;
}

h1 {
  font-size: 2.6rem;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 15px rgba(0, 247, 255, 0.3);
  position: relative;
}

h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--neon-cyan), transparent);
  margin-top: 0.5rem;
}

h2 {
  font-size: 1.8rem;
  color: var(--neon-magenta);
  text-shadow: 0 0 10px rgba(255, 0, 247, 0.4);
}

p, li {
  margin-bottom: 1rem;
  color: var(--text);
}

ul {
  padding-left: 1.8rem;
  margin: 1.2rem 0;
}

table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

th, td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(185, 103, 255, 0.2);
}

tr:nth-child(even) {
  background: rgba(20, 15, 35, 0.3);
}

.plugins-grid, .shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.plugin-card, .shop-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.6rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.plugin-card::before, .shop-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta), var(--neon-violet));
  z-index: -1;
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.plugin-card:hover::before, .shop-card:hover::before {
  opacity: 1;
}

.plugin-card:hover, .shop-card:hover {
  transform: translateY(-8px) rotateX(3deg);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(185, 103, 255, 0.4),
    0 0 20px rgba(185, 103, 255, 0.3);
}

.plugin-card h3, .shop-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: white;
}

.plugin-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.8rem 0;
}

.author { color: var(--neon-violet); font-weight: bold; }
.stars { color: var(--neon-magenta); font-weight: bold; }

.description {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0.8rem 0;
}

.view-releases {
  display: inline-block;
  margin-top: 1rem;
  color: var(--neon-cyan);
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
}

.view-releases:hover {
  text-shadow: 0 0 10px var(--neon-cyan);
}

.back-btn {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--neon-violet);
  text-decoration: none;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
}

.back-btn:hover {
  text-shadow: 0 0 10px rgba(185, 103, 255, 0.8);
}

.release-item {
  background: rgba(15, 10, 30, 0.6);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  border-left: 3px solid var(--neon-violet);
}

.release-header {
  color: var(--neon-magenta);
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.release-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.release-body {
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.6;
  margin-top: 0.6rem;
  font-family: 'Fira Code', monospace;
}

.loading, .error {
  text-align: center;
  padding: 3rem;
  color: var(--neon-cyan);
  font-size: 1.2rem;
}

footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(185, 103, 255, 0.1);
}

@media (max-width: 600px) {
  .plugins-grid, .shop-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  header { flex-direction: column; gap: 1rem; }
}
