/*
Theme Name: Mina Legacy
Theme URI: https://thediabetesvoice.com
Author: LAAK RICHARD BRANDS LTD
Author URI: https://laakrichardbrands.com
Description: The official theme for TheDiabetesVoice.com — honouring the legacy of Mina Gbemisola LAAK (MGL2390). A home for diabetes education, Mina AI app, Mina Angel Music, and The Diabetes Voice YouTube channel.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mina-legacy
Tags: diabetes, health, education, music, custom-header, custom-menu, featured-images, full-width-template
*/

/* ═══════════════════════════════════════════════
   MINA LEGACY THEME — BASE STYLES
   In memory of Mina Gbemisola LAAK
   MGL2390 · Born October 23, 1990
   Called home February 27, 2025
═══════════════════════════════════════════════ */

:root {
  --teal:       #00d4a0;
  --teal2:      #009e78;
  --teal-dark:  #006e54;
  --black:      #06090b;
  --dark:       #0c1419;
  --dark2:      #111d24;
  --dark3:      #192830;
  --white:      #ffffff;
  --text:       #deeee8;
  --text2:      #6e9e8c;
  --text3:      #2e4e44;
  --gold:       #ffab2e;
  --red:        #ff5252;
  --purple:     #b36bff;
  --border:     rgba(255,255,255,0.06);
  --border2:    rgba(0,212,160,0.25);
  --font:       'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.7;
}

/* WordPress admin bar offset */
body.admin-bar .mlg-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .mlg-nav { top: 46px; }
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal2); }
img { max-width: 100%; height: auto; }
p { color: var(--text2); line-height: 1.75; margin-bottom: 16px; }
h1,h2,h3,h4,h5,h6 { color: var(--text); font-weight: 800; letter-spacing: -0.3px; line-height: 1.15; }

.mlg-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media(max-width:768px){ .mlg-container { padding: 0 20px; } }

.mlg-section { padding: 100px 0; }
.mlg-section-eyebrow {
  font-size: 11px; font-weight: 700; color: var(--teal);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
  display: block;
}
.mlg-section-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 16px;
}
.mlg-section-sub {
  font-size: 16px; color: var(--text2); max-width: 560px; line-height: 1.75;
}

/* ── BUTTONS ── */
.mlg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 6px; font-size: 14px;
  font-weight: 700; text-decoration: none; transition: all 0.2s;
  letter-spacing: 0.3px; cursor: pointer; border: none;
}
.mlg-btn-teal { background: var(--teal); color: var(--black); }
.mlg-btn-teal:hover { background: var(--teal2); color: var(--black); transform: translateY(-2px); }
.mlg-btn-outline { background: transparent; color: var(--teal); border: 1.5px solid var(--border2); }
.mlg-btn-outline:hover { background: rgba(0,212,160,0.06); transform: translateY(-2px); color: var(--teal); }
.mlg-btn-gold { background: var(--gold); color: var(--black); }
.mlg-btn-gold:hover { background: #e09420; color: var(--black); transform: translateY(-2px); }
.mlg-btn-red { background: var(--red); color: var(--white); }
.mlg-btn-red:hover { background: #cc3333; color: var(--white); transform: translateY(-2px); }

/* ── CARDS ── */
.mlg-card {
  background: var(--dark); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; transition: all 0.3s;
}
.mlg-card:hover { border-color: var(--border2); transform: translateY(-4px); }

/* ── NAV ── */
.mlg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(6,9,11,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); height: 70px;
  display: flex; align-items: center;
}
.mlg-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; gap: 40px; width: 100%;
}
.mlg-nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mlg-nav-logo-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); }
.mlg-nav-logo-text { font-size: 16px; font-weight: 900; color: var(--text); letter-spacing: -0.3px; }
.mlg-nav-logo-text span { color: var(--teal); }
.mlg-nav-links { display: flex; gap: 28px; list-style: none; margin: 0 auto; }
.mlg-nav-links a { font-size: 14px; font-weight: 500; color: var(--text2); transition: color 0.2s; }
.mlg-nav-links a:hover { color: var(--teal); }
.mlg-nav-cta { background: var(--teal); color: var(--black) !important; padding: 10px 22px; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.mlg-nav-cta:hover { background: var(--teal2); color: var(--black) !important; }

/* ── FLOATING MEMORIAL BADGE ── */
.mlg-memorial-badge {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  background: var(--dark); border: 1px solid var(--border2);
  border-radius: 16px; padding: 14px 18px; width: 280px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,160,0.1);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.4s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}
.mlg-memorial-badge:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,212,160,0.3), 0 0 40px rgba(0,212,160,0.08);
  border-color: rgba(0,212,160,0.5);
  background: #0c1e18;
}
.mlg-memorial-badge-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.mlg-memorial-candle {
  font-size: 20px;
  animation: mlg-flicker 3s ease-in-out infinite;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.mlg-memorial-badge:hover .mlg-memorial-candle {
  transform: scale(1.3);
  animation: mlg-flicker-fast 1s ease-in-out infinite;
}
@keyframes mlg-flicker { 0%,100%{opacity:1;} 50%{opacity:0.6;} 75%{opacity:0.85;} }
@keyframes mlg-flicker-fast { 0%,100%{opacity:1;} 33%{opacity:0.5;} 66%{opacity:0.9;} }
.mlg-memorial-name { font-size: 12px; font-weight: 800; color: var(--text); transition: color 0.3s; line-height: 1.2; }
.mlg-memorial-badge:hover .mlg-memorial-name { color: var(--teal); }
.mlg-memorial-code { font-size: 10px; color: var(--teal); letter-spacing: 1.5px; margin-top: 1px; }

/* Horizontal digital countdown */
.mlg-countdown-display {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-bottom: 10px;
  background: rgba(0,0,0,0.3); border-radius: 10px; padding: 10px 8px;
  border: 1px solid rgba(0,212,160,0.15);
}
.mlg-countdown-unit {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.mlg-countdown-num {
  font-size: 20px; font-weight: 900; color: var(--teal);
  line-height: 1; letter-spacing: -0.5px; font-family: 'Courier New', monospace;
  min-width: 28px; text-align: center;
  transition: transform 0.2s ease;
}
.mlg-countdown-label {
  font-size: 8px; color: var(--text3); letter-spacing: 1px;
  text-transform: uppercase; font-family: var(--font);
}
.mlg-countdown-sep {
  font-size: 18px; font-weight: 900; color: rgba(0,212,160,0.4);
  line-height: 1; margin-bottom: 14px;
  animation: mlg-sep-blink 2s ease-in-out infinite;
}
@keyframes mlg-sep-blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* Total days strip */
.mlg-memorial-days-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px;
  background: rgba(0,212,160,0.04); border: 1px solid rgba(0,212,160,0.08);
  border-radius: 8px; margin-bottom: 8px;
}
.mlg-memorial-days-total-num { font-size: 11px; font-weight: 700; color: var(--teal); }
.mlg-memorial-days-total-label { font-size: 9px; color: var(--text3); letter-spacing: 0.5px; text-transform: uppercase; }

.mlg-memorial-sub {
  font-size: 10px; color: var(--text3); text-align: center;
  line-height: 1.6; transition: color 0.3s;
}
.mlg-memorial-badge:hover .mlg-memorial-sub { color: var(--text2); }

/* ── FOOTER ── */
.mlg-footer { background: #030507; border-top: 1px solid var(--border); padding: 72px 0 32px; }
.mlg-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.mlg-footer-brand { font-size: 18px; font-weight: 900; color: var(--text); margin-bottom: 12px; }
.mlg-footer-brand span { color: var(--teal); }
.mlg-footer-desc { font-size: 13px; color: var(--text3); line-height: 1.7; max-width: 220px; }
.mlg-footer-col-title { font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.mlg-footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mlg-footer-links a { font-size: 13px; color: var(--text3); transition: color 0.2s; }
.mlg-footer-links a:hover { color: var(--text); }
.mlg-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.mlg-footer-copy { font-size: 11px; color: var(--text3); }
.mlg-footer-memorial { font-size: 11px; color: rgba(0,212,160,0.35); letter-spacing: 0.3px; }

/* ── BLOG ── */
.mlg-post-header { padding: 140px 0 60px; border-bottom: 1px solid var(--border); }
.mlg-post-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.mlg-post-cat { font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: 2px; text-transform: uppercase; }
.mlg-post-date { font-size: 12px; color: var(--text3); }
.mlg-post-title { font-size: clamp(28px, 5vw, 52px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.05; max-width: 800px; }
.mlg-post-content { max-width: 720px; margin: 60px auto; padding: 0 40px; }
.mlg-post-content h2 { font-size: 26px; margin: 40px 0 16px; }
.mlg-post-content h3 { font-size: 20px; margin: 32px 0 12px; color: var(--teal); }
.mlg-post-content p { font-size: 16px; color: var(--text2); line-height: 1.85; margin-bottom: 20px; }
.mlg-post-content ul,
.mlg-post-content ol { color: var(--text2); font-size: 16px; line-height: 1.85; margin: 0 0 20px 20px; }
.mlg-post-content li { margin-bottom: 8px; }
.mlg-post-content blockquote { border-left: 3px solid var(--teal); padding: 16px 24px; background: rgba(0,212,160,0.05); border-radius: 0 8px 8px 0; margin: 24px 0; }
.mlg-post-content blockquote p { color: var(--text); font-style: italic; margin: 0; }
.mlg-post-memorial { background: rgba(0,212,160,0.04); border: 1px solid var(--border2); border-radius: 12px; padding: 16px 20px; margin-top: 48px; text-align: center; }
.mlg-post-memorial p { font-size: 12px; color: var(--text3); margin: 0; }

/* ── RESPONSIVE ── */
@media(max-width: 900px) {
  .mlg-section { padding: 72px 0; }
  .mlg-nav-links { display: none; }
  .mlg-nav-cta { display: none; } /* Hide Download App button so logo fits on one line */
  .mlg-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mlg-memorial-badge { bottom: 16px; right: 16px; width: 240px; }
  .mlg-post-content { padding: 0 20px; }
}
@media(max-width: 600px) {
  .mlg-footer-grid { grid-template-columns: 1fr; }
  /* Keep badge visible on mobile — smaller and repositioned */
  .mlg-memorial-badge {
    bottom: 12px;
    right: 12px;
    width: 220px;
    padding: 12px 14px;
  }
  .mlg-countdown-num { font-size: 18px !important; }
  .mlg-countdown-sep { font-size: 16px !important; }
}
