/*
 Theme Name: PopularFX Child
 Theme URI: https://metazoonews.com/
 Description: Child theme for MetaZoo News deck templates
 Author: MetaZoo News
 Template: popularfx
 Version: 1.0.0
*/

/* ==== MetaZoo Deck Archive (/decks) ==== */

.mzn-deck-archive {
  background: #f7f5ee;
  padding: 40px 0 60px;
}

.mzn-deck-archive-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.mzn-deck-archive-header .page-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

/* Hero banner – image only */
.mzn-deck-archive-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);

  background-image: url('https://mznstorage.b-cdn.net/Public%20Decks%20Banner.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-color: #05080d;
  min-height: 140px;
}

.mzn-deck-archive-hero::before {
  content: none;
}

.mzn-deck-archive-hero-inner {
  display: none;
}

.mzn-deck-archive-hero .page-title,
.mzn-deck-archive-hero-subtitle {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .mzn-deck-archive-hero {
    margin-bottom: 22px;
    min-height: 110px;
    background-size: contain;
  }

  .mzn-deck-archive-wrapper {
    padding: 0 12px;
  }

  .mzn-deck-archive-grid {
    gap: 18px;
  }

  .mzn-deck-card-header {
    padding: 12px 14px 14px;
  }

  .mzn-deck-card-title {
    font-size: 0.98rem;
  }
}

/* Grid of deck cards */
.mzn-deck-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px 24px;
  align-items: stretch;
  justify-content: center;
  margin-top: 32px;
}

/* Individual deck card */
.mzn-deck-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at top, rgba(255,255,255,0.06), transparent 55%) #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mzn-deck-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
  border-color: rgba(255, 220, 120, 0.85);
}

/* Thumbnail area – keep cards a sane size */
.mzn-deck-card-thumb {
  display: block;
  position: relative;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  aspect-ratio: 4 / 3; /* slightly wider and shorter to reduce visual height */
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.16), transparent 55%),
    #111;
}

.mzn-deck-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

/* Placeholder if no caster image */
.mzn-deck-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7b42f6, #b01eff);
}

/* Text area */
.mzn-deck-card-header {
  padding: 14px 16px 16px;
}

.mzn-deck-card-title {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.mzn-deck-card-title a {
  color: #111;
  text-decoration: none;
}

.mzn-deck-card-title a:hover {
  text-decoration: underline;
}

/* Meta (author + date) */
.mzn-deck-card-meta {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mzn-deck-card-author::after {
  content: "•";
  margin: 0 6px;
  color: #ccc;
}

/* Aura pills under meta */
.mzn-deck-card-auras {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.75rem;
}

.mzn-aura-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.03em;
  background: #eeeeee;
  color: #222222;
}

/* Aura color mappings for deck card chips */
.mzn-aura-air {
  background: #ffb05a;
  color: #3a2100;
}

.mzn-aura-water {
  background: #3a7bd5;
  color: #f5fbff;
}

.mzn-aura-fire {
  background: #e5453b;
  color: #fff8f6;
}

.mzn-aura-earth {
  background: #2f6b3c;
  color: #f4fff4;
}

.mzn-aura-lightning {
  background: #ffd94d;
  color: #3b2c00;
}

.mzn-aura-dark {
  background: #4b4f57;
  color: #f5f5f7;
}

/* Pagination */
.mzn-deck-archive-pagination {
  margin-top: 32px;
  text-align: center;
}
/* === Deck Library: compact meta + mini aura pills === */

.mzn-deck-card-header {
  padding: 10px 14px 12px;
}

.mzn-deck-card-title {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.mzn-deck-card-meta {
  font-size: 0.78rem;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.mzn-deck-card-meta-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mzn-deck-card-dot {
  opacity: 0.5;
}

/* Tiny aura pill row */
.mzn-mini-aura-row {
  margin-top: 0.25rem;
}

.mzn-mini-aura-chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mzn-mini-aura-chip + .mzn-mini-aura-chip {
  margin-left: 4px;
}

/* Aura color mappings */
.mzn-mini-aura-chip.aura-water {
  background: #2d89ff;
  color: #f5fbff;
}

.mzn-mini-aura-chip.aura-lightning {
  background: #ffea00;
  color: #222;
}

.mzn-mini-aura-chip.aura-fire {
  background: #e5453b;
  color: #fff8f6;
}

.mzn-mini-aura-chip.aura-earth {
  background: #3f7c3a;
  color: #f4fff4;
}

.mzn-mini-aura-chip.aura-air {
  background: #ffb05a;
  color: #3a2100;
}

.mzn-mini-aura-chip.aura-dark {
  background: #4b4f57;
  color: #f5f5f7;
}

/* Deck library filter bar */
.mzn-deck-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.5rem auto 2rem;
  padding: 0.75rem 1.25rem;
  max-width: 1040px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  align-items: flex-end;
}

.mzn-deck-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.mzn-deck-filter-group label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666666;
}

.mzn-deck-filter-group select,
.mzn-deck-filter-group input[type="text"] {
  min-width: 150px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #dddddd;
  background: #fafafa;
  font-size: 0.85rem;
}

.mzn-deck-filter-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mzn-deck-filter-actions button[type="submit"] {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: #111111;
  color: #ffeb3b;
  cursor: pointer;
}

.mzn-deck-filter-actions .mzn-deck-filter-reset {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Stack filters nicely on mobile */
@media (max-width: 768px) {
  .mzn-deck-filter-bar {
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .mzn-deck-filter-actions {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* ==============
   MetaZoo News – Auth Layout (Login / Register)
   ============== */

.mzn-auth-layout {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem 4rem;
  background: #f7f8fb;
}

.mzn-auth-card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 10px;
  border: 2px solid #f5c400; /* MZN yellow */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 2.4rem 2.2rem 2rem;
}

/* Header */

.mzn-auth-card__header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.mzn-auth-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.mzn-auth-logo__img {
  max-width: 230px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.mzn-auth-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.mzn-auth-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  color: #555;
}

/* Body */

.mzn-auth-card__body .um-form {
  margin-top: 0.5rem;
}

/* Make UM fields span full card width nicely */
.mzn-auth-card .um-form .um-field {
  max-width: 100%;
}

/* Footer / benefits */

.mzn-auth-card__footer {
  margin-top: 1.8rem;
  border-top: 1px solid #eee;
  padding-top: 1.3rem;
}

.mzn-auth-footline__title {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.mzn-auth-benefits {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.94rem;
  color: #444;
}

.mzn-auth-benefits li {
  margin-bottom: 0.2rem;
}

.mzn-auth-footline {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.mzn-auth-footline--alt {
  text-align: center;
  margin-top: 1.2rem;
  color: #666;
}

/* Links */

.mzn-auth-card a {
  color: #2f7ed8;
}

.mzn-auth-card a:hover,
.mzn-auth-card a:focus {
  text-decoration: underline;
}

/* Responsive tweaks */

@media (max-width: 600px) {
  .mzn-auth-card {
    padding: 1.7rem 1.4rem 1.6rem;
  }

  .mzn-auth-title {
    font-size: 1.4rem;
  }

  .mzn-auth-subtitle {
    font-size: 0.92rem;
  }
}

/* Registration / login minor spacing tweaks */
.mzn-auth-card__header {
  margin-top: -6px;
}

.mzn-auth-subtitle {
  margin-top: 0.55rem;
}

.mzn-auth-card .um-field-password_confirm {
  margin-bottom: 1.2rem;
}

.mzn-auth-card .um-button.um-button-primary {
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.mzn-auth-card .um-button.um-button-primary:hover {
  background-color: #2a6fbe;
  transform: translateY(-1px);
}

.mzn-auth-card {
  animation: mznFadeIn 0.45s ease-out;
}

@keyframes mznFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Layout wrapper for auth card + external benefits box */
.mzn-auth-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 980px;
  width: 100%;
}

.mzn-auth-wrapper .mzn-auth-card {
  width: auto;       /* allow flexbox to control width */
  max-width: none;   /* remove the 560px cap inside wrapper */
  flex: 2 1 0;       /* let the card take about 2/3 of the row */
}

/* Standalone benefits box outside the main auth card */
.mzn-auth-sidebox {
  background: #ffffff;
  border: 1px solid #f5c400; /* MZN yellow */
  border-radius: 10px;
  padding: 1.25rem 1.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-size: 0.94rem;
  color: #444;
  flex: 1 1 0;       /* let the sidebox take about 1/3 of the row */
  max-width: 340px;
}

/* Stack card and benefits box on smaller screens */
@media (max-width: 640px) {
  .mzn-auth-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .mzn-auth-sidebox {
    max-width: 100%;
  }
}
/* ==============
   MetaZoo News – Profile Layout (User Profiles)
   ============== */

/* Main profile wrapper – only affect UM profile forms, not login/register */
body .um.um-profile {
  max-width: 1120px;
  margin: 40px auto 80px;
  padding: 32px 40px 40px;
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid #f3cf45; /* MZN yellow */
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  body .um.um-profile {
    margin: 24px 16px 48px;
    padding: 24px 16px 28px;
  }
}

/* Profile header (avatar + name row) */
body .um.um-profile .um-profile-header {
  border-bottom: 1px solid #f4e7a5;
  padding: 16px 0 20px;
  margin-bottom: 24px;
}

/* Navigation tabs row */
body .um.um-profile .um-profile-nav {
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #333;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

body .um.um-profile .um-profile-nav-item {
  font-weight: 600;
  font-size: 0.9rem;
  padding-inline: 18px;
}

/* Active tab state */
body .um.um-profile .um-profile-nav-item.um-profile-nav-item-active a {
  background: #333;
  color: #ffeb3b;
}

/* Content area spacing */
body .um.um-profile .um-profile-body {
  padding-top: 4px;
}

/* Typography inside profile form */
body .um.um-profile .um {
  font-size: 14px;
}

body .um.um-profile .um-field-label {
  font-weight: 600;
  color: #333;
}

body .um.um-profile .um-field-area input[type="text"],
body .um.um-profile .um-field-area input[type="email"],
body .um.um-profile .um-field-area input[type="url"],
body .um.um-profile .um-field-area textarea,
body .um.um-profile .um-field-area select {
  border-radius: 10px;
  border-color: #ddd;
}

/* Primary buttons on profile only */
body .um.um-profile .um-button,
body .um.um-profile .um-form input[type="submit"] {
  border-radius: 999px;
  background-color: #0073ff;
  border: none;
  font-weight: 600;
  padding-inline: 26px;
}

body .um.um-profile .um-button:hover,
body .um.um-profile .um-form input[type="submit"]:hover {
  background-color: #005fd1;
}

/* ==============
   MetaZoo News – Deckbuilder Legality & Validate UI
   ============== */

/* Outer wrapper row that holds the Validate button + short summary */
.mzn-db-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

/* Short one‑line status summary next to the button */
.mzn-db-legal-summary {
  font-size: 0.9rem;
  color: #555555;
}

/* Primary "Validate Deck" button – pill style matching MZN buttons */
.mzn-db-validate-btn {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: #111111;
  color: #ffeb3b;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.mzn-db-validate-btn:hover,
.mzn-db-validate-btn:focus-visible {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.24);
}

/* Collapsible legality panel (full details) */
.mzn-db-legal-panel {
  margin-top: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: #fffef6;
  border: 1px solid #f5dc7a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
  color: #444444;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}

/* Open state – JS should toggle the .is-open class */
.mzn-db-legal-panel.is-open {
  max-height: 420px; /* enough room for several lines of warnings */
  opacity: 1;
  transform: translateY(0);
}

/* Individual warning / info lines inside the panel */
.mzn-db-legal-panel ul {
  margin: 0.15rem 0 0;
  padding-left: 1.1rem;
}

.mzn-db-legal-panel li {
  margin-bottom: 0.25rem;
}

/* Status tags for overall deck state */
.mzn-db-legal-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mzn-db-legal-tag--ok {
  background: #e3f7d7;
  color: #245c1d;
}

.mzn-db-legal-tag--error {
  background: #ffe1e1;
  color: #a52323;
}

.mzn-db-legal-tag--warning {
  background: #fff5d2;
  color: #795a05;
}

/* On small screens, stack the button + summary nicely */
@media (max-width: 640px) {
  .mzn-db-legal-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Global safeguard: always allow vertical scrolling */
html,
body {
  overflow-y: auto !important;
}