/* ===================================================================
   PokéMonitor NO — Stylesheet
   Modern dark theme with neon accents (yellow / cyan / pink)
   =================================================================== */

:root {
  --bg: #1a2030;
  --bg-elev: #222a3d;
  --bg-card: #26304a;
  --bg-card-hover: #2e3a58;
  --border: #3a465f;
  --border-bright: #4c5a78;

  --text: #e7ecf3;
  --text-dim: #9aa6bd;
  --text-faint: #6b7894;

  --neon-yellow: #f2c94c;
  --neon-cyan: #6fb7d6;
  --neon-pink: #e0708f;
  --neon-green: #6cc99b;
  --neon-red: #e06c75;

  --discord: #5865f2;

  --grid-color: rgba(255, 255, 255, 0.02);

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-glow-cyan: 0 12px 40px rgba(111, 183, 214, 0.18);
  --shadow-glow-yellow: 0 12px 40px rgba(242, 201, 76, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ BACKGROUND ATMOSPHERE ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, transparent 85%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(111, 183, 214, 0.06), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(76, 90, 120, 0.10), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.scanline { display: none; }

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(26, 32, 48, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.site-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border-bright), 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.site-title:hover .site-logo {
  transform: scale(1.05);
  box-shadow: 0 0 0 1px var(--neon-yellow), 0 6px 22px rgba(242, 201, 76, 0.25);
}

.placeholder-icon {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  opacity: 0.35;
  filter: grayscale(0.3);
}

.title-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.title-main {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.title-sub {
  font-size: 0.78rem;
  color: var(--neon-cyan);
  margin-top: 4px;
  letter-spacing: 0;
  font-weight: 500;
}

.social-section {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.social-btn .social-icon {
  width: 16px;
  height: 16px;
}

.discord-btn {
  background: var(--discord);
  border-color: var(--discord);
  color: #fff;
}
.discord-btn:hover {
  transform: translateY(-1px);
  background: #4752c4;
  border-color: #4752c4;
  box-shadow: 0 0 0 1px var(--discord), 0 8px 24px rgba(88, 101, 242, 0.4);
}

.coffee-btn {
  background: var(--neon-yellow);
  color: #1a1500;
  border-color: var(--neon-yellow);
}
.coffee-btn:hover {
  transform: translateY(-1px);
  background: #f7d56a;
  box-shadow: 0 0 0 1px var(--neon-yellow), 0 8px 24px rgba(242, 201, 76, 0.35);
}

/* ============ MAIN ============ */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 28px 80px;
  position: relative;
  z-index: 2;
}

/* ============ TABS ============ */
.tabs {
  display: flex;
  gap: 8px;
  margin: 0 auto 32px;
  background: var(--bg-elev);
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-button {
  padding: 12px 22px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}
.tab-button:hover { color: var(--text); }
.tab-button.active {
  background: linear-gradient(135deg, var(--neon-yellow), #d9a82a);
  color: #2a2200;
  box-shadow: 0 4px 16px rgba(242, 201, 76, 0.2);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ STATS BAR ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.stat-item:hover { border-color: var(--border-bright); }

.stat-number {
  display: block;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.bot-status .stat-number {
  font-size: 1.3rem;
  color: var(--neon-green);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 12px var(--neon-green);
  animation: pulse 2s infinite;
  display: inline-block;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.stat-label {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-dim);
}

/* ============ PRODUCT GRID & CARDS ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.month-section {
  margin-bottom: 44px;
}
.month-header {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: capitalize;
  color: var(--neon-cyan);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(111, 183, 214, 0.22);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.month-header .count {
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
  display: flex;
  flex-direction: column;
}

/* Card thumbnail */
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}
.product-card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb.no-image {
  background:
    radial-gradient(circle at 50% 40%, rgba(111, 183, 214, 0.07), transparent 60%),
    var(--bg-elev);
}
.card-thumb.no-image::after {
  content: '📦';
  font-size: 2.4rem;
  opacity: 0.35;
}
.card-thumb.no-image img { display: none; }

.card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow-cyan);
}
.product-card::after {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 60px; height: 60px;
  background: linear-gradient(225deg, var(--neon-yellow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s;
}
.product-card:hover::after { opacity: 0.15; }

.product-card.past { opacity: 0.55; }
.product-card.past:hover { opacity: 0.9; }

.card-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neon-cyan);
  margin-bottom: 18px;
}
.card-date-icon { font-size: 1rem; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1f8a55;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.price-pill-label { font-size: 0.8rem; font-weight: 600; opacity: 0.85; letter-spacing: 0.5px; }

.countdown-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: #4c6080;
  padding: 7px 13px;
  border-radius: 8px;
  border: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.countdown-pill.past {
  background: #5a6478;
  color: #d4dae6;
}
.countdown-pill.soon {
  background: #d8554a;
  color: #ffffff;
  animation: glow 2s infinite;
}
@keyframes glow {
  0%, 100% { box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), 0 0 16px rgba(216, 85, 74, 0.55); }
}

.product-name {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.product-code {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.product-code:empty { display: none; }

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-tag {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.type-badge,
.type-badge.special,
.type-badge.accessory,
.modal-type-badge,
.modal-type-badge.special,
.modal-type-badge.accessory {
  display: none;
}

/* ============ PAST RELEASES CONTROLS ============ */
.past-releases-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.past-releases-controls label {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-dim);
}

/* Custom dropdown */
.custom-dropdown {
  position: relative;
  min-width: 180px;
  user-select: none;
}

.dropdown-selected {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: border-color 0.2s;
}
.dropdown-selected:hover { border-color: var(--neon-cyan); }

.dropdown-arrow {
  width: 16px; height: 16px;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.custom-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.custom-dropdown.open .dropdown-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-option {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s;
}
.dropdown-option:hover { background: var(--bg-elev); color: var(--neon-cyan); }
.dropdown-option.active { background: rgba(111, 183, 214, 0.10); color: var(--neon-cyan); }
.option-icon { font-size: 1rem; }

/* ============ NOTIFICATION BAR ============ */
.notification-bar {
  margin-top: 56px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255, 222, 43, 0.06), rgba(0, 229, 255, 0.06));
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  text-align: center;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.notification-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 222, 43, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.08), transparent 40%);
  pointer-events: none;
}

/* ============ MODAL ============ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: modalBg 0.2s ease;
}
.modal.open { display: flex; }
@keyframes modalBg { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlide 0.3s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 255, 0.1);
}
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
}
.modal-close:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.modal-image-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
}
#modal-image.loaded { display: block; }
.modal-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}
#modal-image.loaded ~ .modal-image-placeholder { display: none; }

.modal-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.modal-meta {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 22px;
}
.modal-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.modal-meta-row:last-child { border-bottom: none; }
.meta-label {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.meta-value {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--neon-cyan);
}

.modal-section-title {
  font-size: 0.78rem;
  font-family: 'Manrope', system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-yellow);
  margin-bottom: 12px;
}

#modal-contents {
  list-style: none;
  margin-bottom: 20px;
}
#modal-contents li {
  padding: 8px 0 8px 22px;
  color: var(--text);
  position: relative;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--border);
}
#modal-contents li:last-child { border-bottom: none; }
#modal-contents li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
  font-weight: 700;
}

.modal-notes {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--bg-elev);
  border-left: 3px solid var(--neon-cyan);
  border-radius: 4px;
  margin-bottom: 22px;
}

.market-button {
  display: block;
  width: 100%;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--neon-yellow), #d9a82a);
  color: #2a2200;
  border: none;
  border-radius: 6px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}
.market-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 201, 76, 0.35);
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 28px;
  text-align: center;
  color: var(--text-faint);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0;
  position: relative;
  z-index: 2;
}

/* ============ LOADING / EMPTY STATES ============ */
.loading, .empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .header-content { padding: 14px 18px; gap: 14px; }
  .title-main { font-size: 0.92rem; }
  .title-sub { font-size: 0.55rem; }
  .social-btn { padding: 8px 12px; font-size: 0.7rem; }
  .social-btn .social-icon { width: 14px; height: 14px; }
  main { padding: 32px 18px 60px; }
  .tab-button { padding: 10px 16px; font-size: 0.75rem; }
  .products-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 28px 22px; }
  .modal-content h2 { font-size: 1.3rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.6rem; }
  .bot-status .stat-number { font-size: 1.05rem; }
}
