/* =========================================================
   Fansite info banner
   ========================================================= */
.gw-fansite-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a2330;
    border: 1px solid #2a3a4a;
    border-radius: 6px;
    padding: 9px 20px;
    font-size: 13px;
    color: #9aaabb;
    line-height: 1.5;
}
.gw-fansite-banner-icon {
    font-size: 16px;
    flex-shrink: 0;
    opacity: .7;
}
.gw-fansite-banner strong {
    color: #c8b87a;
    font-weight: 600;
}
@media (max-width: 767px) {
    .gw-fansite-banner {
        font-size: 12px;
        padding: 8px 14px;
        text-align: center;
        justify-content: center;
    }
}

/* =========================================================*/
.nk-image-slider .nk-image-slider-thumbs ul li {
    opacity: 0.7;
}
.nk-image-slider .nk-image-slider-thumbs ul li.nk-image-slider-thumbs-active {
    opacity: 1;
}

@media (max-width: 575px) {
  .nk-image-slider .nk-image-slider-thumbs {
    width: 100% !important;
  }
  .nk-image-slider .nk-image-slider-thumbs ul {
    width: 100%;
  }
  .nk-image-slider .nk-image-slider-thumbs ul li {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0 !important;
  }
}

/* Counter shown below the thumbnail strip */
.nk-image-slider-thumbs .nk-image-slider-thumbs-count {
    position: static;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: none;
    border-radius: 0;
    line-height: 1.4;
}

/* =========================================================
   Ticker bar
   ========================================================= */
body.has-ticker {
    padding-top: 36px;
}
body.admin-bar .gw-ticker-bar {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .gw-ticker-bar {
        top: 46px;
    }
}
.gw-ticker-bar {
    width: 100%;
    background: #1a1f24;
    border-bottom: 1px solid rgba(221, 22, 59, 0.35);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
}

.gw-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    min-width: max-content;
}

.gw-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 32px;
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

a.gw-ticker-item:hover {
    color: #dd163b;
}

.gw-ticker-dot {
    color: #dd163b;
    font-size: 8px;
    flex-shrink: 0;
}

/* =========================================================
   Channel cards (Twitch & YouTube)
   ========================================================= */
.gw-twitch-card,
.gw-youtube-card {
    display: block;
    text-decoration: none;
}
.gw-twitch-card-bg,
.gw-youtube-card-bg {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    display: flex;
    overflow: hidden;
    transition: filter 0.2s;
}
.gw-twitch-card-bg  { background: linear-gradient(135deg, #1f0e3c 0%, #6441a5 60%, #9146ff 100%); }
.gw-youtube-card-bg { background: linear-gradient(135deg, #1a0000 0%, #a00000 55%, #ff0000 100%); }

.gw-twitch-card:hover  .gw-twitch-card-bg,
.gw-youtube-card:hover .gw-youtube-card-bg {
    filter: brightness(1.15);
}
.gw-chan-card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 56px;
    color: rgba(255,255,255,0.25);
}
.gw-chan-card-watch {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* =========================================================
   GW2 Server Status widget
   ========================================================= */
.gw-server-status {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #1e2327;
    border: 1px solid #2d3740;
    border-radius: 8px;
    padding: 14px 20px;
}
.gw-server-status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gw-status-online {
    background: #46b450;
    box-shadow: 0 0 8px rgba(70,180,80,0.7);
    animation: gw-pulse 2s infinite;
}
.gw-status-offline {
    background: #dc3232;
    box-shadow: 0 0 8px rgba(220,50,50,0.7);
}
@keyframes gw-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(70,180,80,0.6); }
    50%       { box-shadow: 0 0 14px rgba(70,180,80,1); }
}
.gw-server-status-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.gw-status-label {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}
.gw-status-build {
    font-size: 12px;
    color: #aaa;
    background: #2d3740;
    padding: 2px 8px;
    border-radius: 4px;
}
.gw-server-status-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
    margin-left: auto;
}
.gw-status-refresh {
    background: none;
    border: 1px solid #3a4250;
    color: #aaa;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: border-color 0.2s, color 0.2s;
}
.gw-status-refresh:hover {
    border-color: #dd163b;
    color: #fff;
}
.fa-spin { animation: fa-spin 1s linear infinite; }
@keyframes fa-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 767px) {
    .gw-server-status {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .gw-server-status-indicator {
        margin-top: 0;
    }
    .gw-server-status-text {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        flex: none;
    }
    .gw-server-status-meta {
        flex-basis: auto;
        margin-left: 0;
        justify-content: center;
    }
}

/* =========================================================
   Equal-height cards in rows
   ========================================================= */
.row.vertical-gap > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
.row.vertical-gap > [class*="col-"] .nk-post.nk-post-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.row.vertical-gap > [class*="col-"] .nk-post.nk-post-grid .nk-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.row.vertical-gap > [class*="col-"] .nk-post.nk-post-grid .nk-post-image {
    flex-shrink: 0;
}
.nk-post-meta p,
.nk-post-date {
    color: #96a0a6;
}

/* =========================================================
   YouTube guide embeds
   ========================================================= */
.gw-yt-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.gw-yt-iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Thumbnail play button */
.gw-yt-thumb {
    display: block;
    position: relative;
    overflow: hidden;
}
.gw-yt-thumb img {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    transition: transform 0.3s;
    display: block;
}
.gw-yt-thumb:hover img {
    transform: scale(1.04);
}
.gw-yt-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    transition: background 0.2s;
}
.gw-yt-thumb:hover .gw-yt-play {
    background: rgba(0,0,0,0.55);
}
.gw-yt-play .fab {
    font-size: 80px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

/* =========================================================
   Channel badges
   ========================================================= */
.gw-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0 4px;
}
.gw-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}



img {
  max-width: 100%;
  max-height: fit-content;
  justify-content: center;
  margin: 0 auto;
  display: block;
}

.nk-blog-post {
  padding: 20px;
}

.nk-post-list {
  padding: 20px;
}

.nk-post-content {
  padding: 10px;
}

.nk-post-title {
  font-size: 20px;
}

/* Homepage corner button — top-left, always visible */
.gw-homepage-corner {
  position: fixed;
  top: 70px;
  left: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  color: #fff;
  background-color: #293139;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.2s, opacity 0.2s;
  opacity: 0.75;
}
.gw-homepage-corner:hover {
  background-color: #303e47;
  opacity: 1;
  color: #fff;
  text-decoration: none;
}
.gw-homepage-corner .fa {
  font-size: 14px;
}

/* Back link at the top of single post */
.gw-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  opacity: 0.6;
  transition: opacity 0.2s;
  text-decoration: none;
}
.gw-back-link:hover {
  opacity: 1;
  color: #fff;
  text-decoration: none;
}

/* Shared FAB styles */
.gw-back-fab,
.gw-scroll-top-fab,
.gw-next-post-fab {
  position: fixed;
  z-index: 9999;
  width: 60px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  color: #fff;
  background-color: #293139;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
  pointer-events: none;
}
.gw-back-fab:hover,
.gw-scroll-top-fab:hover,
.gw-next-post-fab:not(.gw-next-post-fab--disabled):hover {
  background-color: #303e47;
}
.gw-fab-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}

/* Back button — left side, vertically centered */
.gw-back-fab {
  top: 50%;
  left: 30px;
  transform: translateY(-50%) translateX(-10px);
}
.gw-back-fab.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

/* Scroll to top — bottom right */
.gw-scroll-top-fab {
  bottom: 30px;
  right: 30px;
  transform: translateY(10px);
}
.gw-scroll-top-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Next (older) post — right side, vertically centered */
.gw-next-post-fab {
  top: 50%;
  right: 30px;
  transform: translateY(-50%) translateX(10px);
  flex-direction: column-reverse;
}
.gw-next-post-fab.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}
.gw-next-post-fab--disabled.is-visible {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

/* =========================================================
   Corner menu — fixed top-right
   ========================================================= */
.gw-corner-menu {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

/* Toggle button — hidden on desktop */
.gw-corner-menu-toggle {
  display: none;
}

/* Items wrapper — always visible on desktop */
.gw-corner-menu-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.gw-corner-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 11px;
  border-radius: 10px;
  background: #293139;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  color: #ccc;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  opacity: 1;
  transition: background 0.2s, opacity 0.2s, color 0.2s;
  cursor: default;
  white-space: nowrap;
  top: 40px;
}
a.gw-corner-menu-item {
  cursor: pointer;
}
a.gw-corner-menu-item:hover {
  background: #303e47;
  opacity: 1;
  color: #fff;
  text-decoration: none;
}
.gw-corner-menu-item .fa {
  font-size: 13px;
  flex-shrink: 0;
}

/* Backdrop — mobile only */
.gw-corner-menu-backdrop {
  display: none;
}

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767px) {
  .gw-corner-menu {
    top: 10px;
    right: 12px;
    gap: 0;
    align-items: flex-end;
  }

  /* Toggle button */
  .gw-corner-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: #293139;
    box-shadow: 0 3px 10px rgba(0,0,0,0.45);
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    z-index: 10001;
    position: relative;
    transition: background 0.2s, color 0.2s;
    top: 40px;
  }
  .gw-corner-menu-toggle:hover {
    background: #303e47;
    color: #fff;
  }
  .gw-corner-toggle-close { display: none; }
  .gw-corner-menu.is-open .gw-corner-toggle-open  { display: none; }
  .gw-corner-menu.is-open .gw-corner-toggle-close { display: inline; }

  /* Items panel — hidden by default, slides in when open */
  .gw-corner-menu-items {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    align-items: flex-end;
    gap: 5px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
  }
  .gw-corner-menu.is-open .gw-corner-menu-items {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    top: 85px;
  }

  /* Backdrop */
  .gw-corner-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: transparent;
    pointer-events: none;
  }
  .gw-corner-menu-backdrop.is-visible {
    pointer-events: auto;
  }
}

/* Hide homepage/back buttons on the front page */
.home .gw-homepage-corner,
.home .gw-back-fab {
  display: none !important;
}

@media (max-width: 575px) {
  .nk-image-slider .nk-image-slider-content {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* ── Mobile (≤ 767px) ──────────────────────────────────────────────────── */
@media (max-width: 767px) {


  /* Homepage corner — tuck tighter under the navbar */
  .gw-homepage-corner {
    top: 50px;
    left: 12px;
    font-size: 11px;
    padding: 6px 10px 6px 8px;
  }

  /* Hide side FABs (back & next-post) — not enough horizontal room */
  .gw-back-fab,
  .gw-next-post-fab {
    display: none;
  }

  /* Scroll-to-top moves closer to the corner */
  .gw-scroll-top-fab {
    bottom: 16px;
    right: 16px;
    width: 50px;
    padding: 8px 4px;
  }

  /* Back link at top of post becomes the primary "back" affordance */
  .gw-back-link {
    opacity: 1;
  }
}

.gw-yt-play svg {
  height: 50px !important;
  width: 40px !important;
}

/* =========================================================
   Popup modal
   ========================================================= */
#gw-popup-backdrop {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 999999 !important;
  background: rgba(0, 0, 0, .8);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#gw-popup-backdrop.gw-popup-visible {
  display: flex !important;
}
#gw-popup-backdrop .gw-popup-modal {
  position: relative;
  background: #1e222a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,.8);
  box-sizing: border-box;
}
#gw-popup-backdrop .gw-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  transition: color .2s;
  z-index: 1;
}
#gw-popup-backdrop .gw-popup-close:hover {
  color: #fff;
}
#gw-popup-backdrop .gw-popup-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 14px;
  padding-right: 30px;
  line-height: 1.3;
}
#gw-popup-backdrop .gw-popup-img-wrap {
  display: block;
  line-height: 0;
}
#gw-popup-backdrop .gw-popup-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: none;
}
#gw-popup-backdrop .gw-popup-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
#gw-popup-backdrop .gw-popup-btn {
  flex: 1;
  min-width: 120px;
  display: inline-block;
  padding: 11px 20px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none !important;
  background: #b8972a;
  color: #fff !important;
  border: none;
  transition: opacity .2s;
  box-sizing: border-box;
  cursor: pointer;
}
#gw-popup-backdrop .gw-popup-btn:hover,
#gw-popup-backdrop .gw-popup-btn:focus {
  opacity: .82;
  color: #fff !important;
  text-decoration: none !important;
}
#gw-popup-backdrop .gw-popup-btn--secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: #ccc !important;
}
#gw-popup-backdrop .gw-popup-btn--secondary:hover,
#gw-popup-backdrop .gw-popup-btn--secondary:focus {
  color: #fff !important;
  border-color: rgba(255,255,255,.6);
  opacity: 1;
}
