/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', sans-serif;
  background: #111;
  color: #eee;
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a1a1a;
  padding: 1rem 2rem;
  z-index: 10;
  position: relative;
}
.logo { height: 40px; }
.nav { display: flex; gap: 1.5rem; }
.nav-link {
  color: #eee;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  position: relative;
}
.nav-link.active,
.nav-link:hover {
  color: #4db8ff;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  height: 500px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.hero-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}
.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.btn {
  background: #4db8ff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  color: #111;
  transition: opacity 0.3s ease;
}
.btn:hover {
  opacity: 0.9;
}

/* Page Content */
.page-content {
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.page-content h1 { 
  margin-bottom: 0.5rem; 
}
.page-content ul { 
  list-style: disc inside; 
  margin: 0.5rem 0; 
}
.page-content h2, .page-content h3, .page-content h4 {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

/* Card Grid (Leaks, News) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.card {
  background: #222;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.card h2 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0.5rem; }

/* Community Section */
.page-content a.btn { margin-top: 0.5rem; }

/* Footer */
.site-footer {
  text-align: center;
  background: #1a1a1a;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  position: relative;
  padding-bottom: 60px;
  margin-bottom: 60px;
}

/* Social Links */
.social { display: inline-flex; gap: 1rem; }
.social img { width: 28px; height: auto; }

/* Standard text link styling */
.page-content a:not(.btn),
.hero-text a:not(.btn) {
  color: #68859c;
  text-decoration: underline;
}

.page-content a:not(.btn):hover,
.hero-text a:not(.btn):hover {
  color: #68859c;
  text-decoration: underline;
}

/* Button styling */
.btn {
  background: #4db8ff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  color: #fff;
  text-decoration: none;
}

/* Logo Link */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo {
  height: 40px;
  margin-right: 0.5rem;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

/* Layout for Community Page */
.community-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.main-content {
  flex: 1 1 60%;
}

.discord-sidebar {
  flex: 1 1 300px;
  max-width: 350px;
  background: #1e1e1e;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Fixed Discord Sidebar */
.discord-sidebar {
  position: fixed;
  top: 85px;
  right: 20px;
  width: 400px;
  height: 500px;
  background: #1e1e1e;
  border-radius: 15px;
  padding: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

/* Ensure Footer Spacing */
.site-footer {
  position: relative;
  padding-bottom: 60px;
  margin-bottom: 60px;
}

/* Main content layout adjustment */
.page-content {
  margin-bottom: 80px;
}

/* Hide Discord Widget on smaller screens */
@media (max-width: 768px) {
  .discord-sidebar {
    display: none;
  }

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

  .hero-text p {
    font-size: 1rem;
  }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  /* Header: stack and center */
  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
  }
  .logo {
    margin-bottom: 0.5rem;
  }
  .nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }

  /* Hero: shorter and buttons full-width */
  .hero {
    height: 300px;
  }
  .hero-text {
    padding: 1rem;
    width: 100%;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
    margin: 0.5rem auto 0;
  }
  .hero-buttons .btn {
    width: 100%;
  }

  /* Intro section: tighter spacing */
  .intro {
    padding: 1.5rem 1rem;
  }
  .intro h2 {
    font-size: 1.75rem;
  }
  .intro p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .intro ul {
    text-align: left;
    padding-left: 1rem;
  }
  .intro ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  /* Page-content general */
  .page-content {
    margin: 1.5rem auto;
    padding: 0 1rem;
  }

  /* Card grid: single column */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card {
    padding: 1rem;
  }

  /* Buttons: slightly larger tap area */
  .btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
} 