/* WallPaperX "Tidal" theme. Swap the palette by editing this :root block only. */

:root {
  --bg: #0A1018;
  --surface: #0F1824;
  --raised: #172236;
  --border: #22314A;
  --text: #EAF2FA;
  --muted: #8FA3BA;
  --accent: #3EC6E0;
  --on-accent: #04131A;

  --font-display: 'Unbounded', 'DM Sans', Arial, sans-serif;
}

/* 1. Solid page background everywhere */
html,
body,
body.overview,
body.overview #main {
  background: var(--bg);
}

body {
  color: var(--text);
}

/* 2. Shared left edge: logo, nav and page content line up */
:root {
  --gutter: 24px;
}

@media (max-width: 575.98px) {
  :root {
    --gutter: 12px;
  }
}

#main-menu .main-header .logo {
  margin-left: var(--gutter);
  justify-content: flex-start;
}

/* 3. Primary navigation (horizontal, under the header) */
.primary-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 3;
}

.primary-nav__list {
  display: flex;
  gap: 8px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 8px var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav__list::-webkit-scrollbar {
  display: none;
}

.primary-nav__item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background-color .2s;
}

.primary-nav__item a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.primary-nav__item.active a,
.primary-nav__item.active a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.primary-nav__label--short {
  display: none;
}

@media (max-width: 575.98px) {
  .primary-nav__list {
    gap: 6px;
  }

  .primary-nav__item a {
    padding: 0 11px;
    font-size: 13px;
  }

  .primary-nav__item a i,
  .primary-nav__label--long {
    display: none;
  }

  .primary-nav__label--short {
    display: inline;
  }
}

@media (min-width: 1200px) {
  .primary-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 4;
  }

  #wajax {
    padding-top: 53px;
  }

  #Coming-Out.frontend-auth-coming-out {
    padding-top: 100px;
  }
}

/* 4. Header and search */
#main-menu .main-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 5;
}

#main-menu .main-header .inner-container {
  background: transparent;
}

.menu-search form .form-control {
  background-color: var(--raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 999px 0 0 999px;
}

.menu-search form .form-control::placeholder {
  color: var(--muted);
}

.menu-search form button {
  background: var(--raised);
  color: var(--muted);
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.menu-search form button:hover {
  background: var(--raised);
  color: var(--accent);
}

.frontend-user-toggle.btn-secondary,
.frontend-user-toggle.btn-secondary:hover,
.frontend-user-toggle.btn-secondary:focus {
  background: var(--raised);
  border: 1px solid var(--border);
}

.breakpoint-on .classy-navbar .classy-menu {
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.classycloseIcon button {
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--text);
}

/* 5. Section headings and "View all" */
.heading-section h4 {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.heading-section ::after {
  display: none;
}

.heading-section h4::after,
.content-right .heading-section h4::after {
  content: '';
  display: inline-block;
  position: static;
  flex: 0 0 auto;
  width: 40px;
  height: 4px;
  margin: 0;
  border-radius: 2px;
  background: var(--accent);
  z-index: auto;
}

.content-right .view-all {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--text);
}

.content-right .view-all a {
  color: inherit;
}

.content-right .view-all:hover,
.content-right .view-all a:hover {
  color: var(--accent);
}

.nav-top-anime.nav-pills {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.nav-top-anime.nav-pills .nav-link {
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
}

.nav-top-anime.nav-pills .nav-link.active {
  background: var(--accent);
  color: var(--on-accent);
}

/* 6. Content cards */
.item-container .item .item-inner,
.item .item-inner {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.item-inner img,
.item-inner::after {
  border-radius: 14px;
}

.item-inner::after {
  background-color: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--accent);
}

/* 8. Footer */
.pg-footer,
footer.footer {
  background: var(--surface);
}

footer.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-menu-name {
  color: var(--accent);
  border-left: 0;
  padding-left: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-menu-list li a,
.footer .footer-menu-list a {
  color: var(--text);
}

.footer-menu-list li a:hover,
.footer .footer-menu-list a:hover {
  color: var(--accent);
}

.footer-call-to-action-description {
  color: var(--muted);
}

.footer-social-amoeba-svg {
  display: none;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
}

.footer-social-link,
.footer-social-link.icon1,
.footer-social-link.icon2,
.footer-social-link.icon3,
.footer-social-link.icon4 {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 16px;
  color: var(--muted);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color .2s, border-color .2s;
}

.footer-social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 9. Copyright bar */
.footer-copyright {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-copyright-text,
.footer-copyright-link,
.footer-copyright-link a {
  color: var(--muted);
}

/* Sign-in / register hero */
#Coming-Out,
#Coming-Out.frontend-auth-coming-out {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

#Coming-Out::before,
#Coming-Out.frontend-auth-coming-out::before {
  display: none;
}

.frontend-auth-coming-out .coming-out-img img {
  width: 280px;
  border: 0;
}

/* Flash notice (e.g. after sign-in or uploads) */
.frontend-flash {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1080;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  animation: wpx-flash-in .25s ease-out, wpx-flash-out .4s ease-in 6s forwards;
}

.frontend-flash--error {
  border-left-color: #e82146;
}

@media (min-width: 1200px) {
  .frontend-flash {
    top: 148px;
  }
}

@keyframes wpx-flash-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes wpx-flash-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Photo credit for wallpapers imported from image APIs */
.frontend-media-credit {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.frontend-media-credit a {
  color: var(--accent);
}

/* Links */
a:hover {
  color: var(--accent);
}
