/* =========================================================
   MINECRAFT SETUP - ESTILOS ESPECÍFICOS
   ========================================================= */

/* Hero Section con Canvas de fondo */
.minecraft-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(var(--color3-rgb), 0.95) 0%,
    rgba(var(--color1-rgb), 0.98) 100%);
}

#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

.minecraft-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
}

.minecraft-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(var(--color2-rgb), 0.5);
}

.minecraft-hero .lead {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color5);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards principales */
.minecraft-card {
  background: linear-gradient(135deg,
    rgba(var(--color4-rgb), 0.7) 0%,
    rgba(var(--color4-rgb), 0.5) 100%);
  border: 1px solid rgba(var(--color2-rgb), 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(var(--color2-rgb), 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.minecraft-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--color2-rgb), 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.minecraft-card:hover::before {
  left: 100%;
}

.minecraft-card:hover {
  border-color: var(--color2);
  box-shadow:
    0 6px 30px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(var(--color2-rgb), 0.3);
  transform: translateY(-5px);
}

.minecraft-card h3 {
  color: var(--color2);
  border-bottom: 2px solid var(--color2);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Step numbers */
.step-number {
  background: linear-gradient(135deg, var(--color2), #00cc33);
  color: var(--color1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.4rem;
  margin-right: 1rem;
  box-shadow: 0 4px 15px rgba(var(--color2-rgb), 0.4);
  flex-shrink: 0;
}

/* Download buttons */
.download-btn {
  background: linear-gradient(135deg, #00ff41, #00cc33);
  color: #0a0f0d;
  padding: 0.9rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 15px rgba(0, 255, 65, 0.4),
    0 0 20px rgba(0, 255, 65, 0.2);
  position: relative;
  overflow: hidden;
  font-size: 1.05rem;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.download-btn:hover::before {
  width: 300px;
  height: 300px;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 25px rgba(0, 255, 65, 0.6),
    0 0 30px rgba(0, 255, 65, 0.4);
  color: #0a0f0d;
}

.download-btn:active {
  transform: translateY(-1px);
}

/* Alert boxes */
.warning-box {
  background: linear-gradient(135deg,
    rgba(255, 193, 7, 0.15),
    rgba(255, 193, 7, 0.05));
  border-left: 4px solid #ffc107;
  padding: 1.2rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
}

.warning-box,
.warning-box * {
  color: var(--color5) !important;
}

.warning-box strong {
  color: #ffc107 !important;
}

.info-box {
  background: linear-gradient(135deg,
    rgba(0, 123, 255, 0.15),
    rgba(0, 123, 255, 0.05));
  border-left: 4px solid #007bff;
  padding: 1.2rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}

.info-box,
.info-box * {
  color: var(--color5) !important;
}

.info-box strong {
  color: #00ccff !important;
}

.success-box {
  background: linear-gradient(135deg,
    rgba(40, 167, 69, 0.15),
    rgba(40, 167, 69, 0.05));
  border-left: 4px solid #28a745;
  padding: 1.2rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2);
}

.success-box,
.success-box * {
  color: var(--color5) !important;
}

.success-box strong {
  color: var(--color2) !important;
}

/* Code blocks */
.code-block {
  background: rgba(0, 0, 0, 0.5);
  color: var(--color2);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-family: 'Courier New', 'Consolas', monospace;
  margin: 1rem 0;
  border: 1px solid rgba(var(--color2-rgb), 0.3);
  font-size: 0.95rem;
  position: relative;
  overflow-x: auto;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--color2),
    transparent);
}

/* Copy button for code blocks */
.copy-code-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(var(--color2-rgb), 0.2);
  border: 1px solid rgba(var(--color2-rgb), 0.3);
  color: var(--color2);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.copy-code-btn:hover {
  background: rgba(var(--color2-rgb), 0.3);
  border-color: var(--color2);
  transform: translateY(-2px);
}

/* Server info grid */
.server-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.server-info-item {
  background: rgba(var(--color1-rgb), 0.4);
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--color2-rgb), 0.2);
  transition: all 0.3s ease;
}

.server-info-item:hover {
  border-color: var(--color2);
  box-shadow: 0 4px 15px rgba(var(--color2-rgb), 0.2);
  transform: translateY(-2px);
}

.server-info-item strong {
  display: block;
  color: var(--color2);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Accordion troubleshooting */
.accordion-item {
  background: rgba(var(--color4-rgb), 0.4) !important;
  border: 1px solid rgba(var(--color2-rgb), 0.2) !important;
  margin-bottom: 0.5rem;
  border-radius: 6px !important;
  overflow: hidden;
}

.accordion-button {
  background: rgba(var(--color1-rgb), 0.6) !important;
  color: var(--color5) !important;
  font-weight: 600;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: rgba(var(--color2-rgb), 0.1) !important;
  color: var(--color2) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--color2-rgb), 0.25) !important;
}

.accordion-body {
  background: rgba(var(--color4-rgb), 0.3) !important;
  color: var(--color5) !important;
  padding: 1.5rem;
}

.accordion-body p,
.accordion-body li,
.accordion-body ul,
.accordion-body strong {
  color: var(--color5) !important;
}

.accordion-body strong {
  color: var(--color2) !important;
}

/* Lists styling */
.minecraft-card ul,
.minecraft-card ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.minecraft-card li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--color5);
}

.minecraft-card li strong {
  color: var(--color2);
}

/* Párrafos y texto general */
.minecraft-card p {
  color: var(--color5);
  line-height: 1.7;
}

.minecraft-card em {
  color: var(--color5);
  opacity: 0.95;
}

.minecraft-card small {
  color: var(--color5);
  opacity: 0.9;
}

.text-muted {
  color: var(--color5) !important;
  opacity: 0.85 !important;
}

/* Inline code */
code {
  background: rgba(var(--color2-rgb), 0.1);
  border: 1px solid rgba(var(--color2-rgb), 0.3);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 0.9em;
  color: var(--color2) !important;
}

/* Keyboard shortcuts */
kbd {
  background: rgba(var(--color1-rgb), 0.8);
  border: 1px solid var(--color2);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--color2);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Support section */
.support-section {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg,
    rgba(var(--color2-rgb), 0.05),
    rgba(var(--color2-rgb), 0.1));
  border-radius: 12px;
}

.support-section h3 {
  border: none;
  margin-bottom: 1rem;
}

.support-section p {
  color: var(--color5) !important;
}

/* Iconos */
.minecraft-card i {
  color: var(--color2);
}

.text-danger {
  color: #ff4466 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .minecraft-card {
    padding: 1.5rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .download-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .minecraft-hero h1 {
    font-size: 2rem;
  }

  /* Reducir número y tamaño de burbujas en móviles */
  .bubble.large {
    width: 80px;
    height: 80px;
  }

  .bubble.medium {
    width: 60px;
    height: 60px;
  }

  .bubble.small {
    width: 30px;
    height: 30px;
  }
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.minecraft-card {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: calc(var(--card-index, 0) * 0.1s);
}

/* Minecraft themed decorations */
.minecraft-icon {
  display: inline-block;
  color: var(--color2);
  margin-right: 0.5rem;
  filter: drop-shadow(0 0 5px rgba(var(--color2-rgb), 0.5));
}

/* ============================================
   FONDO DE BURBUJAS FLOTANTES
   ============================================ */
.bubble-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(var(--color2-rgb), 0.15),
    rgba(var(--color2-rgb), 0.05)
  );
  border: 1px solid rgba(var(--color2-rgb), 0.2);
  border-radius: 50%;
  opacity: 0.6;
  animation: rise linear infinite;
  box-shadow:
    0 0 20px rgba(var(--color2-rgb), 0.1),
    inset 0 0 20px rgba(var(--color2-rgb), 0.05);
  backdrop-filter: blur(2px);
}

/* Variaciones de tamaño y velocidad */
.bubble.small {
  width: 40px;
  height: 40px;
}

.bubble.medium {
  width: 80px;
  height: 80px;
}

.bubble.large {
  width: 120px;
  height: 120px;
}

/* Animación de ascenso */
@keyframes rise {
  0% {
    bottom: -100px;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    bottom: 110vh;
    transform: translateX(var(--drift, 0)) rotate(360deg);
    opacity: 0;
  }
}

/* Variaciones de drift horizontal */
.bubble:nth-child(odd) {
  --drift: 100px;
}

.bubble:nth-child(even) {
  --drift: -100px;
}

.bubble:nth-child(3n) {
  --drift: 50px;
}

/* Asegurar que el contenido principal esté por encima */
.container {
  position: relative;
  z-index: 10;
}

/* Hero section por encima de burbujas */
.minecraft-hero {
  position: relative;
  z-index: 5;
}

/* Cards por encima de burbujas */
.minecraft-card {
  position: relative;
  z-index: 10;
}
