/*
Theme Name: NubsLab
Template: twentytwentyfive
Description: NubsLab child theme - dark fox palette
Version: 1.0
Author: Nubs Vex
*/

/* Equal height cards */
.wp-block-columns {
  align-items: stretch !important;
}
.wp-block-column {
  display: flex;
  flex-direction: column;
}
.wp-block-column > .wp-block-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wp-block-column > .wp-block-group > p:last-child {
  margin-top: auto;
  padding-top: 16px;
}

/* Card content centering */
.wp-block-column > .wp-block-group {
  text-align: center;
  align-items: center;
}
.wp-block-column > .wp-block-group h3,
.wp-block-column > .wp-block-group p {
  text-align: center;
  width: 100%;
}

/* Widen content area */
.wp-block-group.alignfull,
.wp-site-blocks > * {
  max-width: 100% !important;
}
.wp-block-columns {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Force center icons specifically */
.wp-block-column > .wp-block-group > p,
.wp-block-column > .wp-block-group > h3,
.wp-block-column > .wp-block-group > .wp-block-heading {
  text-align: center !important;
  width: 100%;
}

/* Tighten the gap between hero and cards section */
.wp-block-separator.is-style-wide {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-color: #3a2f30 !important;
  opacity: 1 !important;
}

/* Nunito font */

body, p, li, td, input, textarea, select {
  font-family: "Nunito", sans-serif !important;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-site-title,
.wp-block-site-title {
  font-family: "Nunito", sans-serif !important;
  font-weight: 800 !important;
}

nav, .wp-block-navigation, .wp-block-navigation a,
.wp-block-navigation-item__content {
  font-family: "Nunito", sans-serif !important;
  font-weight: 600 !important;
}

/* Clickable cards */
.nubslab-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nubslab-card:hover {
  transform: translateY(-4px);
  border-color: #f472b6 !important;
  box-shadow: 0 8px 30px rgba(244,114,182,0.15);
}
.nubslab-card a.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
}
.nubslab-card .browse-link {
  position: relative;
  z-index: 2;
}

/* Clickable card fix */
.nubslab-card {
  position: relative !important;
}
.nubslab-card a.card-link {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  text-decoration: none !important;
}
.nubslab-card .browse-link,
.nubslab-card h3,
.nubslab-card p {
  position: relative !important;
  z-index: 2 !important;
}

/* Hero "Explore the Blog" button hover */
.wp-block-button__link.has-accent-1-background-color {
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}
.wp-block-button__link.has-accent-1-background-color:hover,
.wp-block-button__link.has-accent-1-background-color:focus {
  background-color: #ff9a2a !important;
  color: #1a1a1a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 154, 42, 0.4) !important;
}

/* ── About Section ─────────────────────────────────── */
.nubslab-about {
  max-width: 860px;
  margin: 0 auto;
}
.nubslab-about__inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  background: #231f20;
  border: 1px solid #3a2f30;
  border-radius: 12px;
  padding: 40px 44px;
}
.nubslab-about__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.nubslab-about__avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #f472b6;
  box-shadow: 0 0 24px rgba(244, 114, 182, 0.35);
  display: block;
}
.nubslab-about__bio {
  color: #ffe4cf;
  font-size: 0.975rem;
  line-height: 1.75;
}
.nubslab-about__bio p {
  margin-top: 0;
  margin-bottom: 0.9em;
}
.nubslab-about__bio p:last-child {
  margin-bottom: 0;
}
.nubslab-about__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f472b6;
  margin-bottom: 1em !important;
}
.nubslab-about__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffe4cf;
  opacity: 0.6;
  margin-left: 10px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.nubslab-about__location {
  font-size: 0.85rem;
  opacity: 0.55;
}

/* About — responsive stack on mobile */
@media (max-width: 640px) {
  .nubslab-about__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    gap: 28px;
  }
  .nubslab-about__tag {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* ==============================================
   Affiliate Product Cards — Finds posts
   ============================================== */

.nl-category-desc {
  background: #2a2426;
  border-left: 3px solid #ff9a2a;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: #ffe4cf;
  line-height: 1.6;
}
.nl-category-desc p {
  margin: 0;
}

.nl-disclosure {
  background: #2a2426;
  border-left: 3px solid #f472b6;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: #c9a898;
  line-height: 1.5;
}
.nl-disclosure a {
  color: #f472b6;
}

.nl-gear-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nl-card {
  display: flex;
  gap: 20px;
  background: #231f20;
  border-radius: 10px;
  border-left: 3px solid #f472b6;
  padding: 20px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.nl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(244, 114, 182, 0.18);
}

.nl-img-frame {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  background: #f5f0eb;
  border-radius: 8px;
  border: 1px solid #3a3336;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
}
.nl-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nl-card-body {
  flex: 1;
  min-width: 0;
}

.nl-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f472b6;
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.nl-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffe4cf;
  margin: 0 0 8px 0 !important;
  line-height: 1.3;
}

.nl-card-desc {
  font-size: 0.9rem;
  color: #c9a898;
  margin: 0 0 16px 0 !important;
  line-height: 1.6;
}

.nl-btn {
  display: inline-block;
  background: #f472b6;
  color: #1a1a1a !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.02em;
}
.nl-btn:hover {
  background: #ff9a2a !important;
  color: #1a1a1a !important;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .nl-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .nl-img-frame {
    width: 120px;
    height: 120px;
  }
}

/* =============================================
   NL LIGHTBOX — product image viewer
   ============================================= */
.nl-img-frame img.nl-zoomable {
  cursor: zoom-in;
}

.nl-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  z-index: 99999;
  flex-direction: column;
  gap: 16px;
}
.nl-lightbox.nl-lb-active {
  display: flex;
}
.nl-lightbox img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(244, 114, 182, 0.35);
  object-fit: contain;
}
.nl-lb-caption {
  color: #ffe4cf;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  text-align: center;
  max-width: 80vw;
  opacity: 0.85;
}
.nl-lb-close {
  position: absolute;
  top: 18px; right: 28px;
  font-size: 42px;
  color: #ffe4cf;
  cursor: pointer;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
  user-select: none;
}
.nl-lb-close:hover {
  opacity: 1;
  color: #f472b6;
}
.nl-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  color: #ffe4cf;
  cursor: pointer;
  padding: 16px 20px;
  user-select: none;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}
.nl-lb-nav:hover {
  opacity: 1;
  color: #ff9a2a;
}
.nl-lb-prev { left: 8px; }
.nl-lb-next { right: 8px; }

/* =============================================
   NL THUMBNAIL NAV — per-card image cycling
   ============================================= */
.nl-thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 26, 26, 0.65);
  color: #ffe4cf;
  font-size: 16px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s, background 0.2s;
  z-index: 2;
}
.nl-img-frame:hover .nl-thumb-nav {
  opacity: 1;
}
.nl-thumb-nav:hover {
  background: rgba(244, 114, 182, 0.85);
  color: #1a1a1a;
}
.nl-thumb-prev { left: 2px; }
.nl-thumb-next { right: 2px; }

/* Avatar secret link — 2px, positioned over the ! dot, no layout impact */
/* Avatar secret link — 2x2px, aligned to the dot of the ! on the hoodie */
.nubslab-about__avatar-link {
  position: absolute;
  top: calc(45% + 41px);
  left: calc(47% + 15px);
  width: 2px;
  height: 2px;
  overflow: hidden;
  display: block;
}

/* Mobile nav overlay — match site dark background instead of WP default white */
.wp-block-navigation__responsive-container.is-menu-open {
  background-color: #1a1a1a !important;
  color: #ffe4cf !important;
}
