/* Shared navigation styles.
 *
 * The injected nav (nav.html + nav-init.js) needs these. Card-list and hub
 * pages carry them inline already; deeper pages that used the stripped-down
 * two-link nav did not, so link this instead of duplicating the rules.
 *
 * Extracted from the card-list pages, which are the reference implementation.
 */
/* ===== JP PREVIEW BANNER ===== */
.jp-banner {
  background: linear-gradient(90deg, rgba(234,179,8,0.15), rgba(234,179,8,0.05));
  border: 1px solid rgba(234,179,8,0.4);
  border-radius: 10px;
  padding: 12px 18px;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #fde68a;
  position: relative;
  z-index: 1;
}
.jp-banner strong { color: #fbbf24; }
.jp-banner a { color: #fbbf24; text-decoration: underline; }
.jp-banner-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  color: #fbbf24;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
  padding: 0 4px;
}
.jp-banner-dismiss:hover { opacity: 1; }
nav.container {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}
.logo { 
  display:flex; 
  align-items:center; 
  gap:12px; 
  text-decoration:none; 
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168,85,247,0.5);
}
.logo-icon {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon img {
  height: 55px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
}
@media (max-width: 768px) {
  .logo {
    padding: 6px 10px;
  }
  .logo-icon img {
    height: 45px;
  }
}
.logo-text {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem; font-weight: bold;
  background: linear-gradient(90deg, #93c5fd, #c4b5fd, #fda4af);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.nav-logo img { width:32px; height:32px; border-radius:8px; object-fit:cover; }
.nav-logo span { font-family:'Saira Condensed',sans-serif;font-weight:700;text-transform:uppercase; font-size:1.2rem; color:#f1f5f9; letter-spacing:0.05em; }
.nav-links { display:flex; gap:32px; align-items:center; }
.nav-links a { color:var(--text-light); text-decoration:none; font-weight:500; transition:color 0.3s; }
.nav-links a:hover { color:white; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  color:white; padding:12px 24px; border-radius:8px; text-decoration:none;
  font-weight:bold; display:inline-flex; align-items:center; gap:8px;
  transition:transform 0.3s,box-shadow 0.3s; border:none; cursor:pointer;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(168,85,247,0.5); }
/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  transition: all 0.3s;
}
.hamburger:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.hamburger-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2147483646;
  animation: fadeIn 0.2s;
}
.hamburger-overlay.open { display: block; }
.hamburger-menu {
  display: none;
  flex-direction: column;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 8px;
  position: fixed;
  top: 80px;
  left: auto;
  right: 24px;
  width: 200px;
  max-width: 400px;
  z-index: 2147483647;
  box-shadow: 0 16px 48px rgba(0,0,0,0.9);
  animation: slideDown 0.3s ease-out;
}
.hamburger-menu.open { display: flex; }
.hamburger-menu-item {
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.15s;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hamburger-menu-item:hover { 
  background: rgba(59,130,246,0.15); 
  color: white;
}
.hamburger-menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 0;
}
/* Pokemon Sets Grid View */
.pokemon-sets-view {
  display: none;
  flex-direction: column;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 20px;
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  bottom: 80px;
  z-index: 2147483647;
  box-shadow: 0 16px 48px rgba(0,0,0,0.9);
  animation: slideDown 0.3s ease-out;
  overflow-y: auto;
}
.pokemon-sets-view.open { display: flex; }
.pokemon-sets-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.back-button {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
}
.back-button:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}
.filter-tab {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}
.filter-tab.active {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  border-color: transparent;
  color: white;
}
.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.set-card {
  background: linear-gradient(135deg, rgba(30,41,59,0.8), rgba(15,23,42,0.8));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.set-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}
.set-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.set-card.disabled:hover {
  transform: none;
  box-shadow: none;
}
.set-card-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.set-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}
.set-card-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.set-card-name {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
  line-height: 1.3;
}
.set-card-info {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-top: auto;
}
.set-card-soon {
  display: inline-block;
  font-size: 0.65rem;
  background: rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
@media (min-width: 769px) {
  .sets-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .pokemon-sets-view {
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px;
    right: auto;
  }
}
/* ===== SECTION NAV BAR ===== */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
}
.section-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .section-nav-inner { padding: 0 4px; gap: 0; flex-wrap: nowrap; justify-content: space-between; width: 100%; }
  .section-nav-btn { padding: 10px 4px; font-size: 0.65rem; letter-spacing: 0; flex: 1; text-align: center; white-space: nowrap; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .nav-home-btn { display: none; }
}
.section-nav-btn {
  flex-shrink: 0;
  padding: 14px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.section-nav-btn:hover { color: var(--text-primary); }
.section-nav-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}
/* ===== SETS DROPDOWN IN SECTION NAV ===== */
.section-nav-sets { position: relative; flex-shrink: 0; }
.section-nav-sets-btn {
  padding: 14px 20px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; transition: color 0.2s; white-space: nowrap; font-family: inherit;
  display: flex; align-items: center; gap: 6px;
}
.section-nav-sets-btn:hover { color: var(--text-primary); }
.section-nav-sets-btn.open { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }
.section-nav-dropdown {
  display: none; position: fixed; right: 0; top: 0;
  width: 260px; background: rgba(10,15,30,0.98); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 8px;
  z-index: 9999; max-height: 400px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  margin-top: 4px;
}
.section-nav-dropdown.open { display: block; }
