/* Ultima SMP - Rainbow Kristall Design */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rainbow-1: #ff0080;
  --rainbow-2: #8a2be2;
  --rainbow-3: #00d4ff;
  --rainbow-4: #00ff88;
  --rainbow-5: #ffaa00;
  --kristall-glow: rgba(255,255,255,0.4);
  --bg-dark: #0a0a0a;
  --bg-card: rgba(17,17,34,0.95);
  --border-glow: #8a2be2;
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rainbow-text {
  background: linear-gradient(-45deg, var(--rainbow-1), var(--rainbow-2), var(--rainbow-3), var(--rainbow-4), var(--rainbow-5));
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 4s ease infinite;
  text-shadow: 0 0 30px var(--kristall-glow);
}

body { 
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,0,128,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,212,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 40% 60%, rgba(138,43,226,0.15) 0%, transparent 40%),
    #0a0a0a;
  color: #e0e0e0; 
  font-family: 'Courier New', monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

/* HEADER */
header {
  background: linear-gradient(135deg, rgba(10,10,10,0.97), rgba(26,17,34,0.97));
  backdrop-filter: blur(20px);
  border-bottom: 3px solid transparent;
  background-clip: padding-box;
  padding: clamp(12px, 4vw, 18px) clamp(20px, 5vw, 25px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(138,43,226,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo { 
  font-size: clamp(1.5rem, 6vw, 2.2rem); 
  font-weight: 900;
}

.logo .rainbow-text {
  font-size: inherit;
}

/* NAVIGATION */
nav { 
  display: flex; 
  gap: clamp(8px, 2.5vw, 15px);
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: #e0e0e0;
  text-decoration: none;
  padding: clamp(8px, 2.5vw, 12px) clamp(14px, 4vw, 18px);
  border: 2px solid rgba(138,43,226,0.4);
  border-radius: 16px;
  background: rgba(138,43,226,0.12);
  backdrop-filter: blur(12px);
  font-size: clamp(0.85rem, 3.2vw, 1rem);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

nav a:hover {
  border-color: var(--rainbow-2);
  background: linear-gradient(45deg, var(--rainbow-1), var(--rainbow-2));
  box-shadow: 0 0 20px var(--kristall-glow);
  transform: translateY(-2px);
  color: white;
}

/* MAIN CONTENT */
main { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: clamp(20px, 6vw, 30px);
}

.hero {
  background: linear-gradient(135deg, 
    rgba(17,17,51,0.97) 0%, 
    rgba(51,17,85,0.97) 50%, 
    rgba(17,51,85,0.97) 100%);
  border: 3px solid rgba(138,43,226,0.5);
  border-radius: 24px;
  padding: clamp(35px, 12vw, 60px);
  text-align: center;
  position: relative;
  box-shadow: 
    0 25px 80px rgba(138,43,226,0.5),
    inset 0 0 50px rgba(255,255,255,0.08);
  backdrop-filter: blur(25px);
  margin-bottom: clamp(40px, 12vh, 60px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(255,0,128,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,212,255,0.12) 0%, transparent 50%);
  animation: rotate 25s linear infinite;
  z-index: 0;
  opacity: 0.7;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero > * { position: relative; z-index: 1; }

.hero h1 { 
  font-size: clamp(2.5rem, 11vw, 4.5rem); 
  margin-bottom: 25px; 
}

.hero h1 .rainbow-text {
  font-size: inherit;
}

.hero p {
  font-size: clamp(1rem, 4vw, 1.3rem);
  margin-bottom: 25px;
}

/* BUTTON */
.btn-primary {
  display: inline-block; 
  padding: clamp(14px, 5vw, 18px) clamp(30px, 8vw, 40px); 
  background: linear-gradient(45deg, var(--rainbow-1), var(--rainbow-2), var(--rainbow-3));
  background-size: 400% 400%;
  animation: rainbow 3s ease infinite;
  color: white; 
  font-size: clamp(1.1rem, 4vw, 1.4rem); 
  font-weight: 800;
  text-decoration: none;
  border: 3px solid transparent;
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(138,43,226,0.6);
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 25px 70px rgba(138,43,226,0.8);
}

/* STATUS BOX */
.status-box {
  margin-top: 30px; 
  padding: clamp(20px, 6vw, 25px); 
  background: linear-gradient(145deg, rgba(26,26,51,0.9), rgba(51,17,85,0.9));
  border-radius: 18px;
  border: 2px solid rgba(138,43,226,0.4);
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  align-items: center; 
  text-align: center;
}

.status-pill { 
  padding: 10px 25px; 
  border-radius: 25px; 
  font-weight: 800; 
  font-size: clamp(1rem, 3.5vw, 1.2rem); 
  background: linear-gradient(45deg, var(--rainbow-1), var(--rainbow-2));
  box-shadow: 0 0 18px var(--kristall-glow);
}

/* SECTIONS */
.section {
  margin-top: clamp(35px, 10vh, 50px);
  background: linear-gradient(145deg, rgba(17,17,34,0.94), rgba(34,17,51,0.94));
  border: 2px solid rgba(138,43,226,0.35);
  border-radius: 22px;
  padding: clamp(30px, 8vw, 40px);
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 0 30px rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
}

.section h2 { 
  color: #e0e0e0; 
  margin-bottom: 20px; 
  font-size: clamp(1.8rem, 7vw, 2.4rem); 
  text-align: center;
}

/* TEAM GRID */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 90vw, 340px), 1fr));
  gap: clamp(20px, 5vw, 25px);
  margin-top: 20px;
}

.team-card {
  background: linear-gradient(145deg, rgba(26,26,51,0.85), rgba(51,17,85,0.85));
  border: 2px solid rgba(138,43,226,0.45);
  border-radius: 18px;
  padding: clamp(22px, 7vw, 30px);
  transition: all 0.3s;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(138,43,226,0.7);
  border-color: var(--rainbow-2);
}

.team-name { 
  font-size: clamp(1.3rem, 6vw, 1.8rem); 
  font-weight: 800;
  margin-bottom: 8px;
}

.team-role { 
  font-size: clamp(1rem, 4vw, 1.2rem); 
  opacity: 0.9;
}

/* FORMS */
form { 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
  max-width: 480px;
}

input, select {
  padding: 14px;
  background: rgba(26,26,51,0.9);
  border: 2px solid rgba(138,43,226,0.4);
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 1rem;
}

input:focus, select:focus {
  border-color: var(--rainbow-2);
  outline: none;
}

/* BUTTON (FORM) */
button {
  background: linear-gradient(45deg, var(--rainbow-1), var(--rainbow-2), var(--rainbow-3));
  background-size: 300% 300%;
  animation: rainbow 3s ease infinite;
  border: none;
  padding: 14px 20px;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(138,43,226,0.5);
  transition: all 0.3s;
}

button:hover {
  transform: translateY(-3px);
}

/* FOOTER */
footer { 
  text-align: center; 
  padding: 30px; 
  color: #888; 
  border-top: 2px solid rgba(138,43,226,0.3); 
  margin-top: clamp(40px, 10vh, 60px); 
  font-size: 0.9rem; 
}

/* LOGIN OVERLAY (Admin) */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,26,0.96);
  backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-box {
  background: linear-gradient(135deg, rgba(26,26,51,0.97), rgba(51,17,85,0.97));
  border: 3px solid rgba(138,43,226,0.6);
  border-radius: 24px;
  padding: 35px 30px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(138,43,226,0.7);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 20px;
}
.login-box input {
  width: 100%;
  margin-bottom: 15px;
}
