@font-face {
  font-family: "Sharp Sans";
  src: url("/assets/fonts/Sharp-Sans.otf") format("opentype");
}
@font-face {
  font-family: "Sharp Sans Bold";
  src: url("/assets/fonts/SharpSans-Bold.otf") format("opentype");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Sharp Sans", sans-serif;
  background: url("/assets/backgrounds/tiles-bg.png") repeat;
  background-size: 32px 32px;
  color: white;
}

nav {
  background: #111;
  padding: 20px 40px;
  position: relative;
  z-index: 1001;
}

.container-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.web-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links a {
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
  color: white;
  position: relative;
  padding: 0 10px;
}

.nav-links a.home::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  background-color: #3b82f6;
}

.nav-links a.about::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  background-color: #dc2626;
}

.nav-links a.channels::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  background-color: #facc15;
}

.nav-links a.discord::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  background-color: #3b82f6;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1011;
  width: 30px;
  height: 30px;
  gap: 5px;
}

.nav-toggle span {
  background: white;
  height: 3px;
  width: 100%;
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: #222;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 20px;
  z-index: 1003;
}

.mobile-menu a {
  display: block;
  margin: 20px 0;
  text-decoration: none;
  font-size: 20px;
  color: white;
  position: relative;
  padding: 0 10px;
}

.mobile-menu a.home::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  background-color: #3b82f6;
}

.mobile-menu a.about::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  background-color: #dc2626;
}

.mobile-menu a.channels::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  background-color: #facc15;
}

.mobile-menu a.discord::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  background-color: #3b82f6;
}

.mobile-menu.active {
  transform: translateX(0);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1002;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.main {
  padding: 40px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  margin-bottom: 30px;
  font-size: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.grid a {
  text-decoration: none;
  display: block;
}

.tile-button {
  width: 100%;
  display: flex;
  align-items: center;
  background: #333;
  border: none;
  border-radius: 20px;
  color: white;
  padding: 20px;
  font-size: 40px;
  cursor: pointer;
  height: 300px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  font-family: "Sharp Sans Bold", sans-serif;
}

.tile-button:hover {
  background: #555;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.tile-button.reverse {
  flex-direction: row-reverse;
}

.tile-image {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  object-fit: cover;
  flex-shrink: 0;
}

.tile-content {
  margin-left: 30px;
  flex-grow: 1;
  text-align: left;
}

.tile-button.reverse .tile-content {
  margin-left: 0;
  margin-right: 30px;
  text-align: left;
}

.tile-title {
  font-size: 40px;
  font-weight: bold;
}

.tile-era {
  font-size: 16px;
  opacity: 0.7;
}

.tile-author {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.6;
}

.about-main {
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.channels-main {
  padding: 100px 0px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.channels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.channel-tile {
  display: flex;
  align-items: flex-start;
  background: #333;
  border-radius: 15px;
  color: white;
  padding: 20px;
  text-align: left;
  font-size: 18px;
  font-family: "Sharp Sans Bold", sans-serif;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  position: relative;
}

.channel-tile:hover {
  background: #555;
  transform: translateY(-3px);
}

.channel-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.channel-image {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  background: #555;
  flex-shrink: 0;
}

.channel-text {
  margin-left: 20px;
}

.channel-title {
  font-size: 20px;
  font-weight: bold;
}

.channel-era {
  font-size: 14px;
  opacity: 0.7;
}

.channel-author {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex !important;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .tile-button {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    height: auto;
  }

  .tile-button.reverse {
    flex-direction: column;
  }

  .tile-content,
  .tile-button.reverse .tile-content {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }

  .tile-image {
    margin-bottom: 20px;
  }

  .channel-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .channel-text {
    margin-left: 0;
    margin-top: 30px;
  }

  .channel-tile .status-indicator {
    top: 10px;
    right: 10px;
  }
}
