/* Matrix landing (page-matrix.php) */
:root{
  --mx-bg:#05040a;
  --mx-bg2:#0a0614;
  --mx-text:rgba(255,255,255,.92);
  --mx-muted:rgba(255,255,255,.72);
  --mx-violet:#a456ff;
  --mx-green:#54ff8e;
  --mx-red:#ff3b6b;
  --mx-card:rgba(255,255,255,.06);
  --mx-border:rgba(255,255,255,.10);
}

body.page-matrix,
body.page-id-45470{
  background: var(--mx-bg);
}

/* Hide theme's page title spacing quirks */
body.page-id-45470 .content{
  padding-top: 0;
}

.mx-wrap{max-width:1100px;margin:0 auto;padding:0 16px}

.mx-hero{
  background:
    radial-gradient(1200px 520px at 50% 65%, rgba(164,86,255,.35), rgba(0,0,0,0) 60%),
    radial-gradient(900px 480px at 35% 70%, rgba(84,255,142,.22), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, var(--mx-bg) 0%, var(--mx-bg2) 45%, var(--mx-bg) 100%);
  border-bottom: 1px solid var(--mx-border);
  padding: 46px 0 30px;
}
.mx-hero__grid{display:grid;grid-template-columns: 1.2fr .8fr;gap:26px;align-items:center}
@media (max-width:900px){.mx-hero__grid{grid-template-columns:1fr; text-align:center}}

.mx-logo{
  width:min(360px, 90%);
  height:auto;
  filter: drop-shadow(0 0 18px rgba(164,86,255,.40)) drop-shadow(0 0 14px rgba(84,255,142,.28));
}

.mx-title{margin:10px 0 6px;font-size:44px;line-height:1.08;color:#fff;
  text-shadow: 0 0 18px rgba(164,86,255,.28), 0 0 10px rgba(84,255,142,.18);
}
@media (max-width:480px){.mx-title{font-size:34px}}

.mx-sub{margin:0;color:var(--mx-muted);font-size:16px}

.mx-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
@media (max-width:900px){.mx-cta{justify-content:center}}

.mx-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:10px 14px;border-radius:12px;
  border:1px solid var(--mx-border);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  color:#fff;text-decoration:none;font-weight:700
}
.mx-btn:hover{border-color:rgba(255,255,255,.18)}
.mx-btn--accent{border-color:rgba(164,86,255,.35); box-shadow:0 0 0 2px rgba(164,86,255,.15) inset}

.mx-card{background:var(--mx-card);border:1px solid var(--mx-border);border-radius:16px;padding:16px}

.mx-section{padding:26px 0}
.mx-h2{margin:0 0 12px;color:#fff;font-size:22px}
.mx-p{margin:0;color:var(--mx-muted)}

.mx-player{display:flex;gap:14px;align-items:center;justify-content:space-between}
@media (max-width:700px){.mx-player{flex-direction:column;align-items:stretch}}

.mx-audio{width:100%}

.mx-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap:14px;
}
@media (max-width:980px){.mx-grid{grid-template-columns: repeat(3, minmax(0,1fr));}}
@media (max-width:620px){.mx-grid{grid-template-columns: repeat(2, minmax(0,1fr));}}

.mx-album{margin:0}
.mx-album img{width:100%;height:auto;border-radius:12px;border:1px solid rgba(0,0,0,.25);box-shadow:0 12px 28px rgba(0,0,0,.25)}
.mx-cap{margin-top:8px;font-size:13px;line-height:1.3;color:rgba(255,255,255,.78);text-align:center}

.mx-posts{display:grid;grid-template-columns: repeat(3, minmax(0,1fr)); gap:14px}
@media (max-width:980px){.mx-posts{grid-template-columns: repeat(2, minmax(0,1fr));}}
@media (max-width:620px){.mx-posts{grid-template-columns: 1fr;}}

.mx-post{background:rgba(255,255,255,.04);border:1px solid var(--mx-border);border-radius:14px;overflow:hidden}
.mx-post a{color:#fff;text-decoration:none}
.mx-post__thumb{aspect-ratio:16/9;background:#111;display:block}
.mx-post__body{padding:12px}
.mx-post__title{margin:0 0 6px;font-size:15px;line-height:1.25}
.mx-post__meta{font-size:12px;color:rgba(255,255,255,.65)}

.mx-footer{
  padding:28px 0 46px;
  border-top:1px solid var(--mx-border);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.18));
}

/* Header logo swap for Matrix */
body.page-id-45470 .header-logo img{
  content: url("https://www.fmlaboca.ar/wp-content/uploads/2026/02/fmlaboca-matrix-logo.jpg") !important;
  max-height: 95px !important;
  width: auto !important;
}

/* Voting UI */
.mx-vote-row{display:flex;justify-content:center;gap:10px;align-items:center;margin-top:10px}
.mx-vote-count{font-size:12px;color:rgba(255,255,255,.75)}
.mx-vote-btn{cursor:pointer}
.mx-vote-btn.is-loading{opacity:.7}

/* ===== Matrix readability + neon typography overrides ===== */
/* Make the whole content area dark so text never sits on the theme's light grid */
body.page-id-45470,
body.page-id-45470 .content,
body.page-id-45470 .content .wrapper,
body.page-id-45470 .content-inner,
body.page-id-45470 .container {
  background: transparent !important;
}

body.page-id-45470 .content {
  background: radial-gradient(1200px 700px at 50% 10%, rgba(164,86,255,.22), rgba(0,0,0,0) 55%),
              radial-gradient(900px 600px at 20% 30%, rgba(84,255,142,.10), rgba(0,0,0,0) 60%),
              linear-gradient(180deg, #05040a 0%, #080512 50%, #05040a 100%) !important;
  color: rgba(255,255,255,.92) !important;
}

/* Ensure headings are readable and feel neon */
body.page-id-45470 .mx-h2,
body.page-id-45470 .mx-title {
  color: #ffffff !important;
}

body.page-id-45470 .mx-h2 {
  text-shadow:
    0 0 18px rgba(164,86,255,.28),
    0 0 10px rgba(84,255,142,.18);
}

body.page-id-45470 .mx-sub,
body.page-id-45470 .mx-p,
body.page-id-45470 .mx-post__meta,
body.page-id-45470 .mx-cap,
body.page-id-45470 .mx-vote-count {
  color: rgba(255,255,255,.78) !important;
}

/* Cards darker + crisper border */
body.page-id-45470 .mx-card,
body.page-id-45470 .mx-post {
  background: rgba(8, 6, 18, .72) !important;
  border-color: rgba(255,255,255,.14) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.30);
  backdrop-filter: blur(6px);
}

/* Buttons: neon edge */
body.page-id-45470 .mx-btn {
  border-color: rgba(255,255,255,.16) !important;
}
body.page-id-45470 .mx-btn--accent {
  border-color: rgba(164,86,255,.45) !important;
  box-shadow:
    0 0 0 2px rgba(164,86,255,.16) inset,
    0 0 24px rgba(164,86,255,.18);
}

/* Voting area readability */
body.page-id-45470 .mx-vote-row {
  margin-top: 12px;
}

/* Album captions: add subtle dark pill so white text pops over any cover */
body.page-id-45470 .mx-cap {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
}

/* Keep sections spaced and readable */
body.page-id-45470 .mx-section { padding: 30px 0; }


/* ===== Fix: force Matrix main area to be dark on all themes ===== */
body.page-id-45470 .mx-main{
  background:
    radial-gradient(1200px 700px at 50% 10%, rgba(164,86,255,.22), rgba(0,0,0,0) 55%),
    radial-gradient(900px 600px at 20% 30%, rgba(84,255,142,.10), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #05040a 0%, #080512 50%, #05040a 100%) !important;
  color: rgba(255,255,255,.92) !important;
}

body.page-id-45470 .mx-main *{
  color: inherit;
}

body.page-id-45470 .mx-main a{ color: #fff !important; }
body.page-id-45470 .mx-main .mx-sub,
body.page-id-45470 .mx-main .mx-p,
body.page-id-45470 .mx-main .mx-post__meta,
body.page-id-45470 .mx-main .mx-cap,
body.page-id-45470 .mx-main .mx-vote-count{ color: rgba(255,255,255,.80) !important; }

/* Ensure sections don't sit on light background */
body.page-id-45470 .mx-section,
body.page-id-45470 .mx-footer{
  background: transparent !important;
}

/* Make the container full width and remove theme paddings that show the light grid */
body.page-id-45470 .mx-main{
  margin: 0 !important;
}
