/* ============================================================
   CUSTOM HOMEPAGE STYLES — MU LIVE INSPIRED
   Complete, self-contained file
   ============================================================ */

.mph-home {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    color: #e0e0e0;
    font-family: 'Rajdhani', 'PT Sans', sans-serif;
    font-size: 17px;
    line-height: 1.5;
}

.mph-home * { box-sizing: border-box; }
.mph-home a { text-decoration: none !important; }

/* ============ HERO ============ */
.mph-hero {
    padding: 60px 0 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 40px;
}

.mph-hero-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.mph-eyebrow {
    color: #d4af37;
    font-size: 0.85rem;
    letter-spacing: 5px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.mph-hero-copy h1 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 4rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.05;
    margin: 0 0 25px 0;
    letter-spacing: -1px;
}

.mph-hero-copy h1 em {
    color: #d4af37;
    font-style: italic;
    font-family: Georgia, serif;
}

.mph-hero-lead {
    color: #aaaaaa;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 0 35px 0;
}

.mph-hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.mph-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    font-family: 'Rajdhani', 'PT Sans', sans-serif;
}

.mph-btn-primary {
    background: #d4af37;
    color: #000000 !important;
    border-color: #d4af37;
}

.mph-btn-primary:hover {
    background: #eac654;
    border-color: #eac654;
    color: #000 !important;
}

.mph-btn-outline {
    background: transparent;
    color: #d4af37 !important;
    border-color: #d4af37;
}

.mph-btn-outline:hover {
    background: #d4af37;
    color: #000 !important;
}

.mph-hero-facts {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
}

.mph-hero-facts span {
    color: #e0e0e0;
    font-size: 1rem;
    letter-spacing: 1px;
}

.mph-hero-facts b {
    color: #d4af37;
    font-size: 0.8rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 3px;
    font-weight: 700;
}

/* ============ LIVE CARD ============ */
.mph-live-card {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 32px;
    backdrop-filter: blur(10px);
}

.mph-live-top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaaaaa;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 22px;
    text-transform: uppercase;
    font-weight: 600;
}

.mph-live-top strong {
    color: #4caf50;
    margin-left: auto;
    font-weight: 700;
}

.mph-status-pulse {
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4caf50;
    animation: mph-pulse 1.5s infinite;
}

@keyframes mph-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.mph-live-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.6rem;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 500;
}

.mph-live-number {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 4rem;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 22px;
    font-weight: 600;
}

.mph-live-number small {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: #888888;
    letter-spacing: 4px;
    margin-top: 6px;
    font-weight: 500;
}

.mph-progress {
    height: 5px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    overflow: hidden;
}

.mph-progress span {
    display: block;
    height: 100%;
    background: #d4af37;
}

.mph-live-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 22px;
    font-weight: 600;
}

.mph-live-meta b { color: #d4af37; font-weight: 700; }

.mph-live-card > a {
    display: inline-block;
    color: #d4af37 !important;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.mph-live-card > a:hover { color: #eac654 !important; }

/* ============ STATBAR ============ */
.mph-statbar {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 28px 0;
    margin-bottom: 40px;
}

.mph-statbar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.mph-statbar-inner > div {
    padding-left: 22px;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    text-align: left;
}

.mph-statbar-inner span {
    display: block;
    color: #d4af37;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

.mph-statbar-inner strong {
    display: block;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.mph-statbar-inner small {
    display: block;
    color: #888888;
    font-size: 0.85rem;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* ============ QUICK GRID ============ */
.mph-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 60px;
}

.mph-quick-grid a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 26px 22px;
    background: rgba(10, 10, 10, 0.9);
    text-decoration: none !important;
    color: #e0e0e0 !important;
    transition: all 0.3s;
}

.mph-quick-grid a:hover {
    background: rgba(212, 175, 55, 0.08);
}

.mph-quick-grid a b {
    color: #d4af37;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.mph-quick-grid a span { flex: 1; }

.mph-quick-grid a strong {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 3px;
    font-weight: 700;
}

.mph-quick-grid a small {
    display: block;
    font-size: 0.85rem;
    color: #888888;
    letter-spacing: 0.5px;
}

.mph-quick-grid a i {
    font-style: normal;
    color: #d4af37;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.mph-quick-grid a:hover i { transform: translateX(5px); }

/* ============ SECTION HEAD ============ */
.mph-section { margin-bottom: 60px; }

.mph-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mph-section-head span {
    display: block;
    color: #d4af37;
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.mph-section-head h2 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.5px;
}

.mph-section-head > a {
    color: #d4af37 !important;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

/* ============ FEATURE CARDS ============ */
.mph-feature-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
}

.mph-feature-card {
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 38px 32px;
    transition: all 0.3s;
}

.mph-feature-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(20, 20, 20, 0.85);
}

.mph-feature-card > span {
    display: block;
    color: #d4af37;
    font-size: 0.8rem;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.mph-feature-card h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 22px 0;
}

.mph-feature-card p {
    color: #999999;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 25px 0;
}

.mph-feature-card > a {
    color: #d4af37 !important;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.mph-feature-card-large {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

/* ============ NEWS + LOGIN GRID ============ */
.mph-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.mph-news-column { width: 100%; }

.mph-news-empty {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
}

.mph-news-empty-mark {
    color: #d4af37;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.mph-news-empty strong {
    display: block;
    color: #ffffff;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

.mph-news-empty p {
    margin: 0;
    color: #888888;
    font-size: 1rem;
    line-height: 1.6;
}

.mph-account-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 30px;
}

.mph-account-card > span {
    display: block;
    color: #d4af37;
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.mph-account-card h2 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2rem;
    color: #ffffff;
    font-weight: 500;
    margin: 0 0 15px 0;
    line-height: 1.15;
}

.mph-account-card > p {
    color: #999999;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.mph-login-form input {
    display: block;
    width: 100%;
    padding: 16px 14px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-size: 1.05rem;
    border-radius: 0 !important;
    font-family: 'Rajdhani', 'PT Sans', sans-serif;
    box-shadow: none !important;
}

.mph-login-form input:focus {
    border-color: #d4af37 !important;
    outline: none !important;
    box-shadow: none !important;
}

.mph-login-form input::placeholder {
    color: #666 !important;
}

.mph-login-form .mph-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.mph-account-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.mph-account-links a {
    color: #666666 !important;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.mph-account-links a:hover { color: #d4af37 !important; }

/* ============ FINAL CTA ============ */
.mph-final-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 60px 40px;
    margin-top: 60px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.25);
    flex-wrap: wrap;
}

.mph-final-cta > div:first-child {
    flex: 1;
    min-width: 280px;
}

.mph-final-cta > div:first-child span {
    display: block;
    color: #d4af37;
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.mph-final-cta h2 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.8rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
}

.mph-final-cta h2 em {
    color: #d4af37;
    font-style: italic;
    font-family: Georgia, serif;
}

.mph-final-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
    .mph-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .mph-hero-copy h1 { font-size: 3rem; }
    .mph-statbar-inner { grid-template-columns: 1fr 1fr; }
    .mph-quick-grid { grid-template-columns: 1fr 1fr; }
    .mph-feature-grid { grid-template-columns: 1fr; }
    .mph-content-grid { grid-template-columns: 1fr; }
    .mph-final-cta { flex-direction: column; align-items: flex-start; }
    .mph-section-head h2 { font-size: 2rem; }
    .mph-feature-card h3 { font-size: 1.8rem; }
    .mph-account-card h2 { font-size: 1.8rem; }
    .mph-final-cta h2 { font-size: 2rem; }
    .mph-live-number { font-size: 3.5rem; }
}

@media (max-width: 600px) {
    .mph-home { font-size: 15px; }
    .mph-hero-copy h1 { font-size: 2.4rem; }
    .mph-statbar-inner { grid-template-columns: 1fr; }
    .mph-quick-grid { grid-template-columns: 1fr; }
    .mph-section-head h2 { font-size: 1.6rem; }
}

/* ============================================
   NEW SECTIONS — INTRO, RANKINGS, ENHANCED HERO
   ============================================ */

/* --- Hero background layer --- */
.mph-hero {
    position: relative;
    overflow: hidden;
}

.mph-hero-bg {
    position: absolute;
    inset: 0;
    background: url('<?php echo ""; ?>../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.mph-hero-inner {
    position: relative;
    z-index: 1;
}

/* --- Intro section --- */
.mph-intro {
    padding: 60px 0 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mph-section-label {
    color: #d4af37;
    font-size: 0.8rem;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    display: block;
}

.mph-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.mph-intro h2 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.6rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.5px;
}

.mph-intro h2 em {
    color: #d4af37;
    font-style: italic;
    font-family: Georgia, serif;
}

.mph-intro p {
    color: #999;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 20px 0;
}

.mph-text-link {
    color: #d4af37 !important;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none !important;
}

.mph-text-link:hover { color: #eac654 !important; }

/* --- Rankings section --- */
.mph-rankings-section {
    margin-top: 30px;
}

.mph-ranking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mph-ranking-card {
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 26px;
    transition: border-color 0.3s;
}

.mph-ranking-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.mph-ranking-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mph-ranking-title span {
    color: #d4af37;
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.mph-ranking-title a {
    color: #666 !important;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none !important;
}

.mph-ranking-title a:hover { color: #d4af37 !important; }

.mph-empty {
    color: #555;
    font-size: 0.9rem;
    padding: 30px 0;
    text-align: center;
    letter-spacing: 1px;
}

/* --- Events section (existing JS area) --- */
.mph-live-note {
    color: #d4af37;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mph-live-note i {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 8px #4caf50;
    display: inline-block;
    animation: mph-pulse 1.5s infinite;
}

.mph-event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mph-event-loading {
    grid-column: 1 / -1;
    color: #666;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- Mobile --- */
@media (max-width: 1000px) {
    .mph-intro-grid { grid-template-columns: 1fr; gap: 30px; }
    .mph-ranking-grid { grid-template-columns: 1fr; }
    .mph-event-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .mph-intro h2 { font-size: 2rem; }
    .mph-event-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SITE HEADER (Logo + Action Buttons)
   For the new <header class="site-header"> in index.php
   ============================================ */

.site-header {
    width: 100%;
    padding: 20px 0;
    margin-bottom: 0;
    background: transparent;
}

.site-shell {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* --- Brand (Logo + name) --- */
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
}

.brand img,
.brand .webengine-mu-logo {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    transition: filter 0.3s;
}

.brand:hover img { filter: brightness(120%); }

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-family: 'Cinzel', Georgia, serif;
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.brand-copy small {
    color: #666;
    font-size: 0.62rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
}

/* --- Action buttons (RANKINGS / DOWNLOAD) --- */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.header-action {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ccc !important;
    text-decoration: none !important;
    transition: all 0.3s;
    line-height: 1.2;
    min-width: 140px;
    text-align: center;
    cursor: pointer;
}

.header-action span {
    font-family: 'Rajdhani', 'PT Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    display: block;
}

.header-action small {
    font-family: 'Rajdhani', 'PT Sans', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    color: #666;
    text-transform: uppercase;
    margin-top: 3px;
    display: block;
}

.header-action:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.header-action:hover span { color: #d4af37; }

/* Primary variant (gold) */
.header-action-primary {
    background: #d4af37;
    border-color: #d4af37;
}

.header-action-primary span { color: #000 !important; }
.header-action-primary small { color: #333 !important; }

.header-action-primary:hover {
    background: #eac654;
    border-color: #eac654;
}

.header-action-primary:hover span { color: #000 !important; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .header-action {
        flex: 1;
        min-width: 0;
    }
    .brand-copy strong { font-size: 1rem; }
}

/* ============================================
   CENTERED LOGO HEADER
   ============================================ */

.site-header {
    width: 100%;
    padding: 30px 0 20px 0;
    text-align: center;
    margin-bottom: 10px;
}

.header-inner-centered {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.header-inner-centered .brand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.header-inner-centered .brand img,
.header-inner-centered .webengine-mu-logo {
    max-height: 90px !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
    transition: filter 0.3s;
}

.header-inner-centered .brand:hover img {
    filter: brightness(120%) drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

/* Hide the RANKINGS / DOWNLOAD buttons (in case they're cached) */
.header-actions,
.header-action {
    display: none !important;
}

/* Hide the global top bar on homepage only */
body.is-homepage .global-top-bar {
    display: none !important;
}

/* Force-hide the top bar and header buttons on homepage */
body.is-homepage .global-top-bar,
body.is-homepage .header-actions,
body.is-homepage .header-action,
.is-homepage .global-top-bar,
.is-homepage .header-actions,
.is-homepage .header-action {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}