/* Global Styles */
:root {
  --primary: #3cb371; /* Minecraft green */
  --secondary: #2c3e50; /* Dark blue */
  --accent: #f39c12; /* Orange */
  --light: #f5f5f5; /* Light gray */
  --dark: #333333; /* Dark gray */
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  background-image: url("https://i.imgur.com/8ZmQPvO.png");
  background-attachment: fixed;
  background-size: 100px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent);
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style-position: inside;
  margin: 20px 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  margin-bottom: 20px;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--secondary);
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  margin: 15px auto 0;
}

section {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.btn:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
header {
  background-color: var(--secondary);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: white;
  margin: 0;
  font-size: 1.8rem;
  font-family: "Minecraft", cursive, sans-serif;
}

nav ul {
  display: flex;
  margin: 0;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: white;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s;
}

nav ul li a:hover {
  color: var(--accent);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(135deg, #1a2a3a, #3a4a5a);
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 150px 0;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.hero h2::after {
  background-color: var(--accent);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Discord Section */
.discord {
  background-color: #7289da;
  color: white;
  text-align: center;
  padding: 50px 0 60px;
}

.discord h2 {
  color: white;
}

.discord h2::after {
  background-color: white;
}

.discord h3 {
  color: white;
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.discord p {
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.discord-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.discord-widget {
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
}

.discord-widget iframe {
  display: block;
}

/* Profile Card */
.profile-card {
  width: 100%;
  max-width: 450px;
  background-color: #2f3136;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin: 0 auto;
}

/* Discord Card Styling */
.discord-card {
  display: flex;
  background-color: #36393f;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.discord-card.loading .discord-avatar {
  opacity: 0.5;
}

.discord-card.loading .discord-username:after {
  content: "Loading...";
  font-size: 0.8rem;
  color: #b9bbbe;
  margin-left: 8px;
}

.discord-card.error {
  border-left: 3px solid #f04747;
}

.discord-card-header {
  position: relative;
  margin-right: 15px;
}

.discord-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #5865f2;
}

.status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #36393f;
}

.status-indicator.online {
  background-color: #43b581;
}

.status-indicator.idle {
  background-color: #faa61a;
}

.status-indicator.dnd {
  background-color: #f04747;
}

.status-indicator.offline {
  background-color: #747f8d;
}

.discord-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.discord-username {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: white;
}

.discord-activity {
  color: #b9bbbe;
}

/* WidgetBot styling */
.widgetbot {
  border: none;
  border-radius: 8px;
  height: 400px;
}

/* Server Section */
.server-info {
  background-color: white;
}

.server-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 5px solid var(--primary);
}

.server-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.server-card h3 {
  font-size: 1.8rem;
  color: var(--secondary);
}

.server-details p {
  margin-bottom: 10px;
}

.copy-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.copy-btn:hover {
  background-color: var(--accent);
}

/* Guide Section */
.guide {
  background-color: var(--light);
}

.guide-content {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.guide-content h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-top: 30px;
}

.guide-content h3:first-child {
  margin-top: 0;
}

.guide-content li {
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: white;
  text-align: center;
  padding: 30px 0;
}

footer p {
  margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }

  nav ul {
    margin-top: 20px;
  }

  nav ul li {
    margin-left: 15px;
    margin-right: 15px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .server-card {
    padding: 20px;
  }

  .guide-content {
    padding: 20px;
  }

  .discord-container {
    padding: 0 15px;
  }

  .profile-card {
    width: 90%;
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 0 10px 10px;
  }

  .hero {
    padding: 100px 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .copy-btn {
    width: 100%;
  }

  .discord-widget iframe {
    width: 100%;
    height: 400px;
  }

  .discord-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .discord-card-header {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
