/* ===== RualyWorld — Minecraft Griefer Server ===== */

:root {
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --accent: #00d2ff;
  --accent2: #7b2ff7;
  --green: #00e676;
  --red: #ff5252;
  --orange: #ffab40;
  --text: #e0e0e0;
  --text-dim: #9e9e9e;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: relative;
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #0d0d2b 0%, #1a1a3e 50%, #2d1b69 100%);
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(0,210,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(123,47,247,0.08) 0%, transparent 50%);
  animation: headerGlow 8s ease-in-out infinite alternate;
}
@keyframes headerGlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(10deg); }
}
header h1 {
  position: relative;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 4s linear infinite;
}
@keyframes gradientText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
header p {
  position: relative;
  margin-top: 12px;
  font-size: 1.1rem;
  color: var(--text-dim);
}
.server-ip {
  position: relative;
  display: inline-block;
  margin-top: 18px;
  padding: 10px 28px;
  background: rgba(0,210,255,0.1);
  border: 2px solid var(--accent);
  border-radius: 30px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.3s;
}
.server-ip:hover {
  background: rgba(0,210,255,0.2);
  transform: scale(1.05);
}
.server-ip .copied {
  display: none;
  color: var(--green);
  margin-left: 8px;
  font-size: 0.9rem;
}
.server-ip.copied .copied { display: inline; }

/* ===== NAV ===== */
nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  transition: all 0.25s;
}
nav a:hover, nav a.active {
  color: #fff;
  background: rgba(0,210,255,0.15);
}

/* ===== SECTIONS ===== */
section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}
section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent2);
  display: flex;
  align-items: center;
  gap: 10px;
}
section h2 .icon {
  font-size: 1.4rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,210,255,0.1);
}

/* ===== CREATOR ===== */
.creator-card {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.creator-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}
.creator-info h3 {
  font-size: 1.4rem;
  color: var(--accent);
}
.creator-info p {
  margin-top: 8px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== RULES ===== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border-left: 4px solid;
}
.rule-item.allowed  { border-left-color: var(--green); }
.rule-item.forbidden { border-left-color: var(--red); }
.rule-item.warning  { border-left-color: var(--orange); }
.rule-item .badge {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.rule-item .badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rule-item.allowed  .badge-text { color: var(--green); }
.rule-item.forbidden .badge-text { color: var(--red); }
.rule-item.warning  .badge-text { color: var(--orange); }
.rule-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.rule-item p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ===== CHEATS SECTION ===== */
.cheat-status {
  text-align: center;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 20px;
}
.cheat-status.allowed-bg {
  background: linear-gradient(135deg, rgba(0,230,118,0.1), rgba(0,230,118,0.05));
  border: 2px solid rgba(0,230,118,0.3);
}
.cheat-status.forbidden-bg {
  background: linear-gradient(135deg, rgba(255,82,82,0.1), rgba(255,82,82,0.05));
  border: 2px solid rgba(255,82,82,0.3);
}
.cheat-status.partial-bg {
  background: linear-gradient(135deg, rgba(255,171,64,0.1), rgba(255,171,64,0.05));
  border: 2px solid rgba(255,171,64,0.3);
}
.cheat-status .big-icon { font-size: 4rem; }
.cheat-status h3 { font-size: 1.5rem; margin: 12px 0 8px; }
.cheat-status p { color: var(--text-dim); }

/* ===== BUTTONS ===== */
.btn {
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 60px;
}
footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ===== PARTICLES (bg) ===== */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ===== VIDEO BACKGROUND ===== */
.video-bg-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.video-bg-wrapper iframe {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  width: 177.78vh;
  height: 56.25vw;
  max-width: none;
  transform: translate(-50%, -50%);
}
.video-bg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(26, 26, 46, 0.82);
  z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  header h1 { font-size: 2rem; }
  nav { flex-wrap: wrap; gap: 6px; }
  nav a { font-size: 0.85rem; padding: 6px 12px; }
  .creator-card { flex-direction: column; text-align: center; }
  .creator-avatar { width: 90px; height: 90px; font-size: 2.2rem; }
}
