/* Guardians of Eternity — NFT Gallery Embed Styles
   All selectors are namespaced with .goe-gallery to avoid clashes. */

.goe-gallery {
  --goe-bg: #000000;
  --goe-accent: #ffffff;
  --goe-accent-glow: #00c8ff;
  --goe-text: #ffffff;
  --goe-text-muted: #edefeb;
  --goe-card-bg: #232323;
  --goe-border: rgba(255, 255, 255, 0.18);
  --goe-radius: 2rem;
  --goe-radius-sm: 1rem;
  --goe-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --goe-font: "Jura", sans-serif;
  --goe-font-title: "Bungee", display;
  --goe-font-heading: "Concert One", display;

  font-family: var(--goe-font);
  color: var(--goe-text);
  background: var(--goe-bg);
  line-height: 1.5;
  box-sizing: border-box;
}

.goe-gallery *,
.goe-gallery *::before,
.goe-gallery *::after {
  box-sizing: border-box;
}

/* ── Hero / Header ─────────────────────────────────────────── */

.goe-gallery__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.goe-gallery__hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.goe-gallery__title {
  margin: 0 0 0.5rem;
  font-family: var(--goe-font-title);
  font-size: clamp(1.75rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--goe-text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.goe-gallery__subtitle {
  margin: 0 0 1.75rem;
  font-family: var(--goe-font);
  font-size: clamp(0.95rem, 2.5vw, 1.4rem);
  color: var(--goe-text-muted);
}

.goe-gallery__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.goe-gallery__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--goe-card-bg);
  border: 1px solid var(--goe-border);
  border-radius: var(--goe-radius-sm);
}

.goe-gallery__stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--goe-accent-glow);
}

.goe-gallery__stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--goe-text-muted);
  margin-top: 0.15rem;
}

.goe-gallery__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.goe-gallery__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.goe-gallery__btn:focus-visible {
  outline: 2px solid var(--goe-accent-glow);
  outline-offset: 3px;
}

.goe-gallery__btn--primary {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.3), inset 0 0 12px rgba(0, 200, 255, 0.05);
}

.goe-gallery__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.7), inset 0 0 15px rgba(0, 200, 255, 0.15);
  outline-color: cyan;
}

.goe-gallery__btn--secondary {
  background: transparent;
  color: var(--goe-text);
  border-color: rgba(255, 255, 255, 0.35);
}

.goe-gallery__btn--secondary:hover {
  background: rgba(0, 200, 255, 0.08);
  border-color: var(--goe-accent-glow);
  transform: translateY(-1px);
}

/* ── Filters ───────────────────────────────────────────────── */

.goe-gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.goe-gallery__filter {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--goe-text-muted);
  background: var(--goe-card-bg);
  border: 1px solid var(--goe-border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.goe-gallery__filter:hover {
  color: var(--goe-text);
  border-color: var(--goe-accent);
}

.goe-gallery__filter:focus-visible {
  outline: 2px solid var(--goe-accent-glow);
  outline-offset: 2px;
}

.goe-gallery__filter--active {
  color: #fff;
  background: rgba(0, 200, 255, 0.12);
  border-color: var(--goe-accent-glow);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
}

/* ── Grid ──────────────────────────────────────────────────── */

.goe-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .goe-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .goe-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .goe-gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Card ──────────────────────────────────────────────────── */

.goe-gallery__card {
  display: flex;
  flex-direction: column;
  background: var(--goe-card-bg);
  border: 1px solid var(--goe-border);
  border-radius: var(--goe-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.goe-gallery__card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 200, 255, 0.45);
  box-shadow: var(--goe-shadow), 0 0 20px rgba(0, 200, 255, 0.15);
}

.goe-gallery__card:focus-visible {
  outline: 2px solid var(--goe-accent-glow);
  outline-offset: 3px;
}

.goe-gallery__card--hidden {
  display: none;
}

.goe-gallery__card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #000000;
  overflow: hidden;
}

.goe-gallery__card-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    #1a1a1a 8%,
    #2a2a2a 18%,
    #1a1a1a 33%
  );
  background-size: 200% 100%;
  animation: goe-shimmer 1.4s ease-in-out infinite;
}

@keyframes goe-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.goe-gallery__card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.goe-gallery__card-image--loaded {
  opacity: 1;
}

.goe-gallery__card-body {
  padding: 0.85rem 1rem 1rem;
}

.goe-gallery__card-id {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--goe-accent-glow);
  margin: 0 0 0.2rem;
}

.goe-gallery__card-name {
  margin: 0 0 0.5rem;
  font-family: var(--goe-font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--goe-text);
}

.goe-gallery__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.goe-gallery__trait {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid var(--goe-border);
  border-radius: 4px;
  color: var(--goe-text-muted);
}

.goe-gallery__trait strong {
  color: var(--goe-text);
  font-weight: 500;
}

/* ── States ────────────────────────────────────────────────── */

.goe-gallery__loading,
.goe-gallery__error,
.goe-gallery__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--goe-text-muted);
  grid-column: 1 / -1;
}

.goe-gallery__error {
  color: #ff6b8a;
}

.goe-gallery__footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--goe-border);
  font-size: 0.8rem;
  color: var(--goe-text-muted);
}

.goe-gallery__footer a {
  color: var(--goe-accent);
  text-decoration: none;
}

.goe-gallery__footer a:hover {
  text-decoration: underline;
}

.goe-gallery__footer a:focus-visible {
  outline: 2px solid var(--goe-accent-glow);
  outline-offset: 2px;
}

.goe-gallery__file-warning {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--goe-text-muted);
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.25);
  border-radius: var(--goe-radius-sm);
}

.goe-gallery__file-warning code {
  font-size: 0.8rem;
  color: var(--goe-accent-glow);
}


.goe-gallery__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--goe-card-bg);
  border: 1px solid var(--goe-border);
  border-radius: var(--goe-radius-sm);
}

.goe-gallery__range {
  margin: 0;
  font-size: 0.85rem;
  color: var(--goe-text-muted);
}

.goe-gallery__jump {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.goe-gallery__jump-label {
  font-size: 0.8rem;
  color: var(--goe-text-muted);
}

.goe-gallery__jump-input {
  width: 5.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  color: var(--goe-text);
  background: var(--goe-bg);
  border: 1px solid var(--goe-border);
  border-radius: 6px;
}

.goe-gallery__jump-input:focus-visible {
  outline: 2px solid var(--goe-accent-glow);
  outline-offset: 1px;
}

.goe-gallery__jump-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--goe-text);
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid var(--goe-border);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--goe-font);
}

.goe-gallery__jump-btn:hover {
  border-color: var(--goe-accent);
}

.goe-gallery__jump-btn:focus-visible {
  outline: 2px solid var(--goe-accent-glow);
  outline-offset: 2px;
}

.goe-gallery__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.goe-gallery__page-btn {
  min-width: 2.5rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--goe-text-muted);
  background: var(--goe-card-bg);
  border: 1px solid var(--goe-border);
  border-radius: var(--goe-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.goe-gallery__page-btn:hover:not(:disabled) {
  color: var(--goe-text);
  border-color: var(--goe-accent);
}

.goe-gallery__page-btn:focus-visible {
  outline: 2px solid var(--goe-accent-glow);
  outline-offset: 2px;
}

.goe-gallery__page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.goe-gallery__page-btn--active {
  color: #fff;
  background: rgba(0, 200, 255, 0.15);
  border-color: var(--goe-accent-glow);
}

.goe-gallery__page-info {
  padding: 0 0.5rem;
  font-size: 0.85rem;
  color: var(--goe-text-muted);
}

.goe-gallery__traits--loading {
  font-size: 0.7rem;
  color: var(--goe-text-muted);
  font-style: italic;
}

/* ── Main site integration (nft-gallery.html) ───────────────── */

.goe-gallery--site {
  background: transparent;
  color: #ffffff;
}

.goe-gallery--site .goe-gallery__inner {
  max-width: 1400px;
  padding: 2rem 1rem 4rem;
}

.goe-gallery--site .goe-gallery__hero {
  margin-bottom: 2rem;
}

.goe-gallery--site .goe-gallery__title {
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
}

.goe-gallery--site .goe-gallery__subtitle {
  color: #edefeb;
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.goe-gallery--site .goe-gallery__stat {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  backdrop-filter: blur(4px);
}

.goe-gallery--site .goe-gallery__stat-value {
  font-family: "Concert One", display;
  font-weight: 400;
  color: #ffffff;
}

.goe-gallery--site .goe-gallery__stat-label {
  color: #edefeb;
  font-family: "Jura", sans-serif;
}

.goe-gallery--site .goe-gallery__actions {
  gap: 12px;
}

.goe-gallery--site .goe-gallery__btn {
  padding: 0.7rem 1.75rem;
  font-family: "Jura", sans-serif;
  font-weight: 400;
  border-radius: 50px;
  outline: 1px solid white;
  outline-offset: -4px;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.3), inset 0 0 12px rgba(0, 200, 255, 0.05);
  transition: all 0.3s ease;
}

.goe-gallery--site .goe-gallery__btn--primary,
.goe-gallery--site .goe-gallery__btn--secondary {
  background: #000000;
  color: #ffffff;
  border-color: transparent;
}

.goe-gallery--site .goe-gallery__btn:hover {
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.7), inset 0 0 15px rgba(0, 200, 255, 0.15);
  outline-color: cyan;
  transform: translateY(-2px);
}

.goe-gallery--site .goe-gallery__filter {
  font-family: "Jura", sans-serif;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #edefeb;
}

.goe-gallery--site .goe-gallery__filter:hover {
  color: #ffffff;
  border-color: rgba(0, 200, 255, 0.5);
}

.goe-gallery--site .goe-gallery__filter--active {
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  border-color: rgba(0, 200, 255, 0.7);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.25);
}

.goe-gallery--site .goe-gallery__toolbar,
.goe-gallery--site .goe-gallery__card {
  background: #232323;
  border-radius: 2rem;
  border: none;
}

.goe-gallery--site .goe-gallery__toolbar {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.goe-gallery--site .goe-gallery__card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 200, 255, 0.12);
  transform: translateY(-3px);
}

.goe-gallery--site .goe-gallery__card-id {
  font-family: "Jura", sans-serif;
  color: #00c8ff;
}

.goe-gallery--site .goe-gallery__card-name {
  font-family: "Concert One", display;
  color: #ffffff;
}

.goe-gallery--site .goe-gallery__trait {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  font-family: "Jura", sans-serif;
}

.goe-gallery--site .goe-gallery__page-btn {
  border-radius: 2rem;
  font-family: "Jura", sans-serif;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #edefeb;
}

.goe-gallery--site .goe-gallery__page-btn:hover:not(:disabled) {
  color: #ffffff;
  border-color: rgba(0, 200, 255, 0.5);
}

.goe-gallery--site .goe-gallery__page-info,
.goe-gallery--site .goe-gallery__range,
.goe-gallery--site .goe-gallery__jump-label {
  font-family: "Jura", sans-serif;
  color: #edefeb;
}

.goe-gallery--site .goe-gallery__jump-input {
  border-radius: 0.5rem;
  background: #000000;
  border-color: rgba(255, 255, 255, 0.2);
  font-family: "Jura", sans-serif;
}

.goe-gallery--site .goe-gallery__loading,
.goe-gallery--site .goe-gallery__empty {
  font-family: "Jura", sans-serif;
  color: #edefeb;
}

.goe-gallery--site .goe-gallery__file-warning {
  font-family: "Jura", sans-serif;
  border-radius: 2rem;
}
