body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #181818;
  color: #eee;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
nav {
  background: #181818;
  color: #fff;
  padding: 1rem 0;
}
.logo {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #a259ff;
  letter-spacing: 2px;
}
.nav-links {
  list-style: none;
  float: right;
  margin: 0;
  padding: 0;
}
.nav-links li {
  display: inline-block;
  margin-left: 2rem;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #a259ff;
}

/* Icon button for auth */
.auth-icon-btn {
  background: transparent;
  border: 2px solid #a259ff;
  color: #a259ff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.auth-icon-btn:hover {
  background: #a259ff;
  color: #fff;
  transform: scale(1.1);
}
.hero {
  background: linear-gradient(120deg, #a259ff 0%, #181818 100%);
  color: #fff;
  padding: 5rem 0 3rem 0;
  text-align: center;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero .btn {
  display: inline-block;
  background: #a259ff;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1.5rem;
  transition: background 0.2s, color 0.2s;
  border: none;
}
.hero .btn:hover {
  background: #fff;
  color: #a259ff;
}
section {
  padding: 3rem 0;
}
section h2 {
  margin-bottom: 1rem;
  color: #a259ff;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}
form input, form textarea {
  padding: 0.75rem;
  border: 1px solid #a259ff;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #222;
  color: #fff;
}
form input:focus, form textarea:focus {
  outline: 2px solid #a259ff;
}
form button {
  background: #a259ff;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
form button:hover {
  background: #fff;
  color: #a259ff;
}
footer {
  background: #181818;
  color: #888;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

footer a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #a259ff;
}
@media (max-width: 700px) {
  .nav-links {
    float: none;
    text-align: center;
    margin-top: 1rem;
  }
  .nav-links li {
    display: block;
    margin: 0.5rem 0;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .container {
    width: 98%;
  }
}
.project-list {
  list-style: disc inside;
  margin: 1rem 0 0 0;
  padding: 0;
}
.project-list li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.project-list a {
  color: #a259ff;
  text-decoration: underline;
  transition: color 0.2s;
}
.project-list a:hover {
  color: #fff;
  background: #a259ff;
  border-radius: 0.25rem;
  padding: 0 0.25rem;
}
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-flex {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}
.sidebar {
  background: #222;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  min-width: 220px;
  color: #eee;
  box-shadow: 0 2px 12px #0002;
  height: fit-content;
}
.sidebar h3 {
  color: #a259ff;
  margin-top: 0;
}
.search-bar {
  width: 100%;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #a259ff;
  background: #181818;
  color: #fff;
  font-size: 1rem;
}
.grid-section {
  flex: 1;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.card {
  background: #222;
  border-radius: 1rem;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 2px 12px #0003;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 24px #a259ff44;
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.card h4 {
  margin: 0.5rem 0 0.25rem 0;
  color: #a259ff;
}
.card p {
  margin: 0.5rem 0 1rem 0;
  color: #ccc;
}
.tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 0.5rem;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
  background: #a259ff;
  color: #fff;
  letter-spacing: 1px;
}
.tag.windows { background: #6c3cff; }
.tag.android { background: #7b3cff; }
.tag.ios { background: #a259ff; }
.tag.modpack { background: #c77dff; }
.download-btn {
  background: #a259ff;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.download-btn:hover {
  background: #fff;
  color: #a259ff;
}
.download-progress {
  width: 100%;
  background: #222;
  border-radius: 4px;
  margin-top: 4px;
  height: 8px;
  overflow: hidden;
}
.download-progress .bar {
  height: 100%;
  background: #a259ff;
  width: 0%;
  transition: width 0.2s, background 0.2s;
}
.download-progress.success .bar {
  background: #4caf50;
}
.download-progress.error .bar {
  background: #e53935;
}
.download-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.submit-section {
  background: #222;
  border-radius: 1rem;
  margin: 3rem auto 0 auto;
  padding: 2rem 0;
  max-width: 700px;
  box-shadow: 0 2px 12px #0002;
}
.submit-section h2 {
  color: #a259ff;
}
#submit-form input, #submit-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #a259ff;
  border-radius: 0.5rem;
  background: #181818;
  color: #fff;
  font-size: 1rem;
}
#submit-form button {
  background: #a259ff;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#submit-form button:hover {
  background: #fff;
  color: #a259ff;
}
@media (max-width: 1000px) {
  .main-flex {
    flex-direction: column;
    gap: 1rem;
  }
  .sidebar {
    min-width: 0;
    width: 100%;
    margin-bottom: 1rem;
  }
}
@media (max-width: 700px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .main-flex {
    width: 98%;
    margin: 1rem auto;
  }
  .submit-section {
    padding: 1rem 0.5rem;
  }
}

/* Modpacks Section */
.modpacks-section {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}
.modpack-sidebar {
  background: #222;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  min-width: 220px;
  color: #eee;
  box-shadow: 0 2px 12px #0002;
  height: fit-content;
}
.category-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.category-list li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.modpacks-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.modpack-sorting {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.sort-btn {
  background: #181818;
  color: #a259ff;
  border: 1px solid #a259ff;
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.sort-btn.active, .sort-btn:hover {
  background: #a259ff;
  color: #fff;
}
.modpack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.modpack-card {
  background: #222;
  border-radius: 1rem;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 2px 12px #0003;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.modpack-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 24px #a259ff44;
}
.modpack-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.modpack-card h4 {
  margin: 0.5rem 0 0.25rem 0;
  color: #a259ff;
}
.modpack-card p {
  margin: 0.5rem 0 1rem 0;
  color: #ccc;
}
.modpack-meta {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 0.5rem;
}
.details-btn {
  background: #a259ff;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.details-btn:hover {
  background: #fff;
  color: #a259ff;
}
@media (max-width: 1000px) {
  .modpacks-section {
    flex-direction: column;
    gap: 1rem;
  }
  .modpack-sidebar {
    min-width: 0;
    width: 100%;
    margin-bottom: 1rem;
  }
}
@media (max-width: 700px) {
  .modpack-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .modpacks-section {
    width: 98%;
    margin: 1rem auto;
  }
}

.about-section {
  background: #222;
  border-radius: 1rem;
  margin: 3rem auto 0 auto;
  padding: 2rem 0;
  max-width: 900px;
  box-shadow: 0 2px 12px #0002;
}
.about-section h2 {
  color: #a259ff;
}
.about-list {
  margin: 1.5rem 0 0 0;
  padding: 0 0 0 1.5rem;
  color: #eee;
}
.about-list li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.cta-section {
  background: #181818;
  padding: 2.5rem 0 2rem 0;
  text-align: center;
}
.cta-section h2 {
  color: #a259ff;
  margin-bottom: 1.5rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-buttons .btn {
  min-width: 180px;
  margin-bottom: 1rem;
}
@media (max-width: 700px) {
  .about-section {
    padding: 1rem 0.5rem;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

.publish-btn {
  background: linear-gradient(135deg, #a259ff 0%, #8b4dff 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.publish-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(162, 89, 255, 0.4);
}

.premium-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.premium-btn::before {
  content: '✨';
  margin-right: 0.3rem;
}

.premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

.publish-modpack-section {
  background: #222;
  border-radius: 1rem;
  margin: 3rem auto 0 auto;
  padding: 2rem 0;
  max-width: 700px;
  box-shadow: 0 2px 12px #0002;
}
#publish-modpack-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
#publish-modpack-form input[type="text"],
#publish-modpack-form input[type="file"],
#publish-modpack-form select {
  padding: 0.75rem;
  border: 1px solid #a259ff;
  border-radius: 0.5rem;
  background: #181818;
  color: #fff;
  font-size: 1rem;
}
#publish-modpack-form label {
  color: #eee;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
#publish-modpack-form select {
  min-height: 2.5rem;
}
#publish-modpack-form button {
  background: #a259ff;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 1rem;
}
#publish-modpack-form button:hover {
  background: #fff;
  color: #a259ff;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  position: relative;
}
.form-group label {
  font-weight: 500;
  color: #a259ff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.info-bubble {
  display: inline-block;
  background: #a259ff;
  color: #fff;
  border-radius: 50%;
  width: 1.2em;
  height: 1.2em;
  text-align: center;
  font-size: 0.95em;
  font-weight: bold;
  cursor: help;
  line-height: 1.2em;
  margin-left: 0.3em;
  transition: background 0.2s;
}
.info-bubble:hover {
  background: #fff;
  color: #a259ff;
  border: 1px solid #a259ff;
}
.modpack-form-organized input[type="text"],
.modpack-form-organized input[type="file"],
.modpack-form-organized select {
  padding: 0.75rem;
  border: 1px solid #a259ff;
  border-radius: 0.5rem;
  background: #181818;
  color: #fff;
  font-size: 1rem;
}
.modpack-form-organized select {
  min-height: 2.5rem;
}
.modpack-form-organized button {
  background: #a259ff;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 1rem;
}
.modpack-form-organized button:hover {
  background: #fff;
  color: #a259ff;
}

.publish-flex {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.publish-form-area {
  flex: 1 1 350px;
  min-width: 320px;
}
.publish-preview-area {
  flex: 0 1 340px;
  min-width: 300px;
  max-width: 370px;
}
.publish-preview-area h3 {
  color: #a259ff;
  margin-bottom: 1rem;
  text-align: center;
}
.preview-card {
  margin: 0 auto;
  width: 100%;
  min-height: 260px;
  background: #181818;
  border: 2px solid #333;
  box-shadow: 0 2px 12px #0003;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  position: relative;
}
.preview-image {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  background: #222;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #a259ff;
  overflow: hidden;
}
.preview-card h4 {
  margin: 0.5rem 0 0.25rem 0;
  color: #a259ff;
  font-size: 1.25rem;
}
.preview-tags {
  margin-bottom: 0.7rem;
}
.preview-tags .tag {
  margin-right: 0.3rem;
  margin-bottom: 0.2rem;
}
.preview-desc {
  color: #bbb;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.tag-btn {
  background: #181818;
  color: #a259ff;
  border: 1px solid #a259ff;
  border-radius: 0.5rem;
  padding: 0.3rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tag-btn:hover {
  background: #a259ff;
  color: #fff;
}
.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.selected-tag {
  background: #a259ff;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.2rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  margin-right: 0.2rem;
  margin-bottom: 0.2rem;
  transition: background 0.2s, color 0.2s;
}
.selected-tag:hover {
  background: #fff;
  color: #a259ff;
  border: 1px solid #a259ff;
}
@media (max-width: 900px) {
  .publish-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .publish-preview-area {
    max-width: 100%;
    min-width: 0;
  }
}

.modpacks-controls {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modpack-search-bar {
  width: 100%;
  margin: 1.5rem 0 1rem 0;
  display: flex;
  justify-content: flex-start;
}
#modpack-search {
  width: 100%;
  max-width: 400px;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  border: 1px solid #a259ff;
  background: #181818;
  color: #fff;
  font-size: 1.1rem;
  transition: border 0.2s;
}
#modpack-search:focus {
  outline: none;
  border: 2px solid #a259ff;
}

.modpack-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modpack-filters select {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #a259ff;
  background: #181818;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.modpack-filters select:focus {
  outline: 2px solid #a259ff;
  border-color: #a259ff;
}

.no-modpacks-msg {
  color: #bbb;
  font-size: 1.2rem;
  text-align: center;
  width: 100%;
  padding: 2.5rem 0;
  background: #222;
  border-radius: 1rem;
  margin: 0 auto;
  box-shadow: 0 2px 12px #0002;
}

.auth-btn {
  background: #a259ff;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: 1rem;
  transition: background 0.2s, color 0.2s;
}
.auth-btn:hover {
  background: #fff;
  color: #a259ff;
}
.auth-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.auth-modal-content {
  background: #222;
  border-radius: 1rem;
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 400px;
  width: 95vw;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 4px 32px #0008;
  color: #fff;
}
.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #a259ff;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}
.auth-modal-close:hover {
  color: #fff;
}
.auth-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.auth-tab {
  background: #181818;
  color: #a259ff;
  border: 1px solid #a259ff;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0.5rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
}
.auth-tab.active, .auth-tab:hover {
  background: #a259ff;
  color: #fff;
}
.form-message {
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
}
@media (max-width: 600px) {
  .auth-modal-content {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
  .auth-tabs {
    gap: 0.3rem;
  }
  .auth-tab {
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
  }
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 250px;
  max-width: 90vw;
  pointer-events: none;
}
.toast {
  background: #222;
  color: #fff;
  border-left: 6px solid #a259ff;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px #0005;
  font-size: 1.1rem;
  opacity: 0.97;
  pointer-events: auto;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.success { border-left-color: #4caf50; }
.toast.error { border-left-color: #f44336; }
.toast.info { border-left-color: #2196f3; }

/* Spinner Overlay Styles */
.spinner-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  border: 6px solid #eee;
  border-top: 6px solid #a259ff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Featured Modpacks Section */
.featured-section {
  background: #1a1a1a;
  padding: 4rem 0;
}

.featured-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.featured-section p {
  text-align: center;
  color: #bbb;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.featured-modpack-card {
  background: #222;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 16px #0004;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #a259ff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.featured-modpack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px #0006;
  border-color: #a259ff;
}

.featured-modpack-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.7rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #a259ff, #6c3cff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  overflow: hidden;
}

.featured-modpack-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.7rem;
  display: block;
}

.featured-modpack-card h3 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.featured-modpack-card p {
  color: #bbb;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
}

.featured-modpack-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #888;
}

.featured-download-count {
  background: #a259ff;
  color: #fff;
  padding: 0.3rem 1.2rem;
  border-radius: 1rem;
  font-weight: bold;
  font-size: 0.95rem;
  position: absolute;
  right: 1.5rem;
  bottom: 4.2rem;
  z-index: 2;
  box-shadow: 0 2px 8px #0003;
}

.featured-download-btn {
  background: #a259ff;
  color: #fff;
  border: none;
  padding: 0.9rem 0;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.featured-download-btn:hover {
  background: #fff;
  color: #a259ff;
}

/* Featured Slideshow Styles */
.featured-slideshow-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
}

.featured-slides {
  position: relative;
  width: 100%;
}

.featured-slide {
  width: 100%;
  transition: opacity 0.5s ease-in-out;
}

.featured-modpack-card {
  background: #222;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px #0004;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #a259ff;
  display: flex;
  gap: 2rem;
  position: relative;
  min-height: 300px;
}

.featured-modpack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px #0006;
  border-color: #a259ff;
}

.featured-modpack-image {
  width: 200px;
  height: 200px;
  border-radius: 0.7rem;
  background: linear-gradient(45deg, #a259ff, #6c3cff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  overflow: hidden;
  flex-shrink: 0;
}

.featured-modpack-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.7rem;
  display: block;
}

.featured-modpack-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-modpack-content h3 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.featured-modpack-content p {
  color: #bbb;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

.featured-modpack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #888;
}

.featured-creator {
  color: #a259ff;
  font-weight: bold;
}

.featured-download-count {
  background: #a259ff;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 1rem;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px #0003;
}

.featured-download-btn {
  background: #a259ff;
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.1rem;
  align-self: flex-start;
}

.featured-download-btn:hover {
  background: #fff;
  color: #a259ff;
}

/* Navigation arrows */
.featured-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(162, 89, 255, 0.8);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.featured-nav-btn:hover {
  background: rgba(162, 89, 255, 1);
}

.featured-prev {
  left: 20px;
}

.featured-next {
  right: 20px;
}

/* Navigation dots */
.featured-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.featured-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  transition: background 0.2s;
}

.featured-dot.active {
  background: #a259ff;
}

.featured-dot:hover {
  background: #666;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .featured-modpack-card {
    flex-direction: column;
    padding: 1.5rem;
    min-height: auto;
  }
  
  .featured-modpack-image {
    width: 100%;
    height: 150px;
  }
  
  .featured-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .featured-prev {
    left: 10px;
  }
  
  .featured-next {
    right: 10px;
  }
}

/* Top Users Section */
.top-users-section {
  background: #181818;
  padding: 4rem 0;
}

.top-users-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.top-users-section p {
  text-align: center;
  color: #bbb;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.top-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.top-user-card {
  background: #222;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px #0004;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
  position: relative;
}

.top-user-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px #0006;
  border-color: #a259ff;
}

.top-user-rank {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #a259ff;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px #0004;
}

.top-user-card:nth-child(1) .top-user-rank {
  background: #ffd700;
  color: #000;
}

.top-user-card:nth-child(2) .top-user-rank {
  background: #c0c0c0;
  color: #000;
}

.top-user-card:nth-child(3) .top-user-rank {
  background: #cd7f32;
  color: #fff;
}

.top-user-username {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  margin: 1rem 0 0.5rem 0;
  cursor: pointer;
  transition: color 0.2s;
}

.top-user-username:hover {
  color: #a259ff;
}

.top-user-username.greyed-out {
  color: #888;
  cursor: not-allowed;
}

.top-user-username.greyed-out:hover {
  color: #888;
}

.top-user-downloads {
  font-size: 1.1rem;
  color: #a259ff;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.top-user-label {
  color: #bbb;
  font-size: 0.9rem;
}

.loading-placeholder {
  text-align: center;
  color: #bbb;
  font-size: 1.1rem;
  padding: 2rem;
  background: #222;
  border-radius: 1rem;
  grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .top-users-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .featured-modpack-card,
  .top-user-card {
    padding: 1rem;
  }
  
  .featured-modpack-image {
    height: 150px;
  }
}

/* Server Styles */
.servers-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.server-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.server-filters select {
  padding: 0.5rem 1rem;
  border: 1px solid #a259ff;
  border-radius: 0.5rem;
  background: #222;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.server-filters select:focus {
  outline: 2px solid #a259ff;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.server-card {
  background: #222;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px #0003;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #333;
}

.server-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px #0004;
  border-color: #a259ff;
}

.server-image {
  width: 100%;
  height: 150px;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-image .placeholder {
  color: #666;
  font-size: 3rem;
}

.server-card h3 {
  color: #fff;
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.server-card p {
  color: #bbb;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.server-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.server-category {
  background: #a259ff;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: bold;
}

.server-players {
  color: #4CAF50;
  font-weight: bold;
}

.server-ip {
  background: #333;
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-family: monospace;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.server-ip .copy-btn {
  background: #a259ff;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.server-ip .copy-btn:hover {
  background: #8b4dff;
}

.server-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.server-link {
  background: #333;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: background 0.2s;
  flex: 1;
  text-align: center;
}

.server-link:hover {
  background: #a259ff;
}

.server-link.website {
  background: #4CAF50;
}

.server-link.website:hover {
  background: #45a049;
}

.server-link.discord {
  background: #7289DA;
  color: #fff;
}

.server-link.discord:hover {
  background: #5b6eae;
}

.publish-server-section {
  max-width: 600px;
  margin: 0 auto;
}

#publish-server-form {
  max-width: 100%;
}

@media (max-width: 768px) {
  .servers-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .server-filters {
    justify-content: center;
  }
  
  .server-grid {
    grid-template-columns: 1fr;
  }
  
  .server-links {
    flex-direction: column;
  }
  
  .modpacks-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .modpack-filters {
    justify-content: center;
  }
}

/* Addon Section Styles */
.addons-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.addon-search-bar {
  padding: 0.75rem 1rem;
  border: 1px solid #a259ff;
  border-radius: 0.5rem;
  background: #222;
  color: #fff;
  font-size: 1rem;
  min-width: 250px;
  transition: border-color 0.2s;
}

#addon-search {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  outline: none;
}

#addon-search::placeholder {
  color: #888;
}

#addon-search:focus {
  outline: none;
}

.addon-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.addon-filters select {
  padding: 0.5rem;
  border: 1px solid #a259ff;
  border-radius: 0.5rem;
  background: #222;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.addon-filters select:focus {
  outline: none;
  border-color: #fff;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.addon-card {
  background: #222;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #333;
  position: relative;
  overflow: hidden;
}

.addon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(162, 89, 255, 0.2);
}

.addon-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.addon-card h4 {
  margin: 0 0 0.5rem 0;
  color: #a259ff;
  font-size: 1.2rem;
}

.addon-card p {
  color: #bbb;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.addon-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
}

.addon-type {
  background: #a259ff;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: bold;
}

.addon-downloads {
  color: #888;
}

.addon-author {
  color: #a259ff;
  text-decoration: none;
  transition: color 0.2s;
}

.addon-author:hover {
  color: #fff;
}

.publish-addon-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

#publish-addon-form {
  background: #222;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #333;
}

#publish-addon-form input[type="text"],
#publish-addon-form textarea,
#publish-addon-form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #a259ff;
  border-radius: 0.5rem;
  background: #181818;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s;
}

#publish-addon-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 500;
}

#publish-addon-form select {
  cursor: pointer;
}

#publish-addon-form button {
  width: 100%;
  padding: 1rem;
  background: #a259ff;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 1rem;
}

#publish-addon-form button:hover {
  background: #8a4fd8;
}

@media (max-width: 768px) {
  .addons-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .addon-filters {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .addon-grid {
    grid-template-columns: 1fr;
  }
} 