/* Import fonts - both Minecraft and cozy styles */
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Comfortaa:wght@300;400;600;700&display=swap");

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Comfortaa", sans-serif;
  background: linear-gradient(
      135deg,
      rgba(139, 69, 19, 0.2) 0%,
      rgba(210, 105, 30, 0.3) 50%,
      rgba(205, 133, 63, 0.5) 100%
    ),
    url("abs_background.png") center center fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #2f1b14;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 14px;
  position: relative;
  overflow-x: hidden;
}

/* Cozy background elements */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 228, 181, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 60%,
      rgba(160, 82, 45, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(210, 180, 140, 0.25) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

/* Header Styles - Cozy version with your structure */
.header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  background: rgba(139, 69, 19, 0.9);
  backdrop-filter: blur(10px);
  padding: 30px;
  border: 4px solid #8b4513;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.title {
  font-family: "Press Start 2P", monospace;
  font-size: 24px;
  color: #ffe4b5;
  text-shadow: 3px 3px 0px #8b4513, 6px 6px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.subtitle {
  font-family: "Comfortaa", sans-serif;
  font-size: 16px;
  color: #deb887;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.ghast-decoration {
  position: absolute;
  top: 15px;
  right: 25px;
}

.ghast {
  font-size: 40px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Cozy Mods Info */
.mods-info {
  background: linear-gradient(135deg, #dda0dd, #e6e6fa);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid #da70d6;
}

.mods-info h3 {
  color: #8b4513;
  font-size: 14px;
  margin-bottom: 15px;
  font-family: "Press Start 2P", monospace;
}

.mods-info p {
  color: #8b4513;
  font-size: 12px;
  margin-top: 15px;
}

.mod-highlight {
  display: inline-block;
  background: linear-gradient(135deg, #ff69b4, #ffb6c1);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  margin: 5px;
  font-weight: 600;
  font-size: 12px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Notice Box - Enhanced cozy version */
.notice-box {
  background: linear-gradient(135deg, #ff6b35, #ff8e53);
  border: 3px solid #ff4500;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
  border-left: 5px solid #ff4500;
}

.notice-content h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 14px;
  font-family: "Press Start 2P", monospace;
}

.notice-content p {
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 5px;
  font-weight: 600;
}

/* Tab Styles - Cozy enhanced */
.tab-container {
  margin-bottom: 30px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tab-button {
  background: linear-gradient(135deg, #8fbc8f, #90ee90);
  border: 3px solid #2f4f2f;
  border-radius: 15px;
  padding: 15px 20px;
  color: #2f4f2f;
  font-family: "Comfortaa", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tab-button:hover {
  background: linear-gradient(135deg, #98fb98, #adff2f);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.tab-button.active {
  background: linear-gradient(135deg, #32cd32, #7cfc00);
  border-color: #228b22;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(50, 205, 50, 0.4);
}

.tab-icon {
  font-size: 20px;
}

/* Content Styles - Enhanced */
.content-container {
  margin-bottom: 30px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
  display: block;
  animation: slideIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-box {
  background: rgba(255, 248, 220, 0.95);
  backdrop-filter: blur(10px);
  border: 3px solid #deb887;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.content-box h2 {
  color: #8b4513;
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
  font-family: "Press Start 2P", monospace;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Steps Styles - Cozy enhanced */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  background: linear-gradient(
    135deg,
    rgba(160, 82, 45, 0.1),
    rgba(210, 180, 140, 0.1)
  );
  border: 2px solid #cd853f;
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
}

.step:hover {
  border-color: #8b4513;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.2);
  transform: translateX(5px);
}

.step-number {
  background: linear-gradient(135deg, #ff6347, #ff7f50);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  font-family: "Press Start 2P", monospace;
  border: 2px solid #ff4500;
  flex-shrink: 0;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.step-content h3 {
  color: #8b4513;
  margin-bottom: 10px;
  font-size: 14px;
  font-family: "Press Start 2P", monospace;
}

.step-content p {
  color: #5d4037;
  font-size: 12px;
  line-height: 1.6;
}

/* Server Grid - New cozy addition */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.server-card {
  background: linear-gradient(135deg, #f0e68c, #ffffe0);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid #daa520;
  transition: transform 0.3s ease;
  text-align: center;
}

.server-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.server-name {
  font-size: 16px;
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 15px;
  font-family: "Press Start 2P", monospace;
}

.server-ip {
  background: rgba(139, 69, 19, 0.1);
  border: 2px solid #8b4513;
  border-radius: 10px;
  padding: 12px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #8b4513;
  font-weight: 600;
  margin-bottom: 15px;
}

.server-ip:hover {
  background: rgba(139, 69, 19, 0.2);
  transform: scale(1.02);
}

.server-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.copy-btn,
.download-btn {
  background: linear-gradient(135deg, #ff6347, #ff7f50);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Comfortaa", sans-serif;
  font-weight: 600;
  font-size: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.copy-btn:hover,
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ff4500, #ff6347);
}

/* Footer Styles - Enhanced cozy */
.footer {
  text-align: center;
  background: rgba(139, 69, 19, 0.9);
  backdrop-filter: blur(10px);
  border: 3px solid #8b4513;
  border-radius: 15px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.footer-content p {
  color: #ffe4b5;
  margin-bottom: 15px;
  font-size: 12px;
  font-family: "Press Start 2P", monospace;
}

.footer-blocks {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.block {
  width: 30px;
  height: 30px;
  border: 2px solid #000;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.block:hover {
  transform: scale(1.1) rotate(5deg);
}

.block.grass {
  background: linear-gradient(
    to bottom,
    #55ff55 0%,
    #55ff55 70%,
    #8b4513 70%,
    #8b4513 100%
  );
}

.block.stone {
  background: #808080;
  background-image: radial-gradient(
      circle at 25% 25%,
      #999 2px,
      transparent 2px
    ),
    radial-gradient(circle at 75% 75%, #666 1px, transparent 1px);
}

.block.dirt {
  background: #8b4513;
  background-image: radial-gradient(
      circle at 20% 20%,
      #a0522d 2px,
      transparent 2px
    ),
    radial-gradient(circle at 80% 80%, #654321 1px, transparent 1px);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #32cd32, #90ee90);
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 1000;
  font-weight: 600;
  font-family: "Comfortaa", sans-serif;
}

.toast.show {
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .title {
    font-size: 18px;
  }

  .tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-button {
    width: 100%;
    max-width: 300px;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    align-self: center;
  }

  .server-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 12px;
  }

  .title {
    font-size: 16px;
  }

  .content-box {
    padding: 15px;
  }

  .step {
    padding: 15px;
  }

  .server-buttons {
    flex-direction: column;
  }
}
