/* ==========================================================================
   BASE: declarations that were identical in styles.css (home) and mini.css (subpages).
   Loaded after theme.css and before the page stylesheet, so each page's own
   styles.css / mini.css still has the last word wherever the two pages differ.
   Only declarations with the same property AND value in both files live here.
   ========================================================================== */

@font-face {
  font-family: "Valorant";
  src: url(/assets/fonts/Valorant.ttf) format("truetype");
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--ink-2);
  line-height: 1.6;
  background-color: var(--bg);
}

header {
  background: var(--header-bg);
  color: var(--ink-2);
  padding: 1.5rem;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px var(--shadow),
    0 0 0 0.25px var(--header-ring);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-2);
  padding: 0.3rem 1rem;
  border-radius: 8px;
  transition: color 0.3s, background 0.3s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-text);
  background: var(--nav-hover-bg);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
}

.hamburger .line {
  width: 25px;
  height: 3px;
  background: var(--ink-2);
  margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .line1 {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .line2 {
  opacity: 0;
}

.hamburger.active .line3 {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    margin: 10px 0;
  }

  .nav-links a {
    padding: 10px;
    display: block;
  }
}

@media (hover: hover) {
  .server-card:hover,
  .video-card:hover,
  .thumbnail-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 6px 8px var(--shadow-hover);
    cursor: auto;
    animation: none;
  }
}

.video-card:hover {
  cursor: pointer;
}

.thumbnail-card:hover {
  cursor: zoom-in;
}

footer {
  background: var(--bg);
  color: var(--ink-2);
  text-align: center;
  padding: 1rem;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 0.5rem;
  }
}

.thumbnail-cards {
  justify-content: center;
  gap: 2rem;
}

.video-card {
  position: relative;
}

.server-cards {
  justify-content: center;
  gap: 2rem;
}

.server-card {
  font-family: "Minecraft", sans-serif;
  background: var(--surface);
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.server-card a:link {
  color: var(--link);
  text-decoration: none;
}

.server-card a:visited {
  color: var(--link);
  text-decoration: none;
}

.server-card a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

.server-card .server-icon {
  height: auto;
  width: 80%;
  max-height: 120px;
  object-fit: contain;
}

.server-card .server-ip {
  text-transform: uppercase;
  color: var(--ink-1);
  margin-top: -0.3rem;
}

.server-card .server-role {
  color: var(--ink-4);
  margin-top: -1.3rem;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 1));
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
}

.thumbnail-card:hover .video-title {
  opacity: 0;
}

.thumbnail-card .video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.thumbnail-card .video-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-weight: bold;
}

.card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: inherit;
}

.card-hit:focus-visible {
  outline-offset: -4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--overlay-scrim);
  backdrop-filter: blur(5px);
  color: #fff;
  touch-action: none;
}

.lightbox[open] {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox-stage:focus {
  outline: none;
}

.lightbox-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-stage img {
  box-shadow: 0 4px 10px var(--modal-shadow);
}

.lightbox-stage iframe {
  border: none;
}

.lightbox .close,
.lightbox .arrow {
  position: absolute;
  padding: 0;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.lightbox .close {
  top: 10px;
  right: 20px;
}

.lightbox .arrow {
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox .prev-arrow {
  left: 1rem;
}

.lightbox .next-arrow {
  right: 1rem;
}

.lightbox [hidden] {
  display: none;
}
