/* Magna Plugin Hub — Header & Footer Styles (Gold Series) */
/* 4 breakpoints: 1024px, 768px, 640px, 480px */

/* Base Reset */
.mph-plugin-page {
    background: #0f172a;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.mph-site-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mph-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
}

.mph-header-left {
    display: flex;
    align-items: center;
}

.mph-header-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.mph-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mph-header-logo img,
.mph-header-logo .logo-placeholder {
    width: 35px;
    height: 40px;
    border-radius: 8px;
}

.mph-header-brand {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Hamburger */
.mph-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mph-hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s;
}

.mph-hamburger-active .mph-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mph-hamburger-active .mph-hamburger-line:nth-child(2) {
    opacity: 0;
}

.mph-hamburger-active .mph-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Navigation */
.mph-header-nav {
    display: flex;
    align-items: center;
}

.mph-header-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.mph-header-menu-item {
    margin: 0;
}

.mph-header-menu-link {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.mph-header-menu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mph-header-menu-item-active .mph-header-menu-link {
    color: #CD853F;
    background: rgba(205, 133, 63, 0.1);
}

.mph-header-menu-dashboard {
    background: linear-gradient(135deg, #8B4513, #A0522D, #CD853F) !important;
    color: #fff !important;
    padding: 8px 16px !important;
}

.mph-header-menu-dashboard:hover {
    opacity: 0.9;
}

/* ===== CONTENT ===== */
.mph-site-content {
    min-height: calc(100vh - 60px - 200px);
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.mph-site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 0;
    margin-top: 40px;
}

.mph-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.mph-footer-row-1 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.mph-footer-row-1 img,
.mph-footer-row-1 .logo-placeholder {
    width: 24px;
    height: 28px;
    border-radius: 6px;
}

.mph-footer-brand-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.mph-footer-sep {
    color: rgba(255, 255, 255, 0.3);
}

.mph-footer-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.mph-footer-dots {
    color: rgba(255, 255, 255, 0.3);
}

.mph-footer-row-1 a {
    color: #CD853F;
    text-decoration: none;
}

.mph-footer-row-1 a:hover {
    text-decoration: underline;
}

.mph-footer-row-2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.mph-footer-row-2 a {
    color: #CD853F;
    text-decoration: none;
}

.mph-footer-row-2 a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE: Tablet (≤1024px) ===== */
@media (max-width: 1024px) {
    .mph-hamburger {
        display: flex;
    }

    .mph-header-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 1000;
    }

    .mph-header-menu {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .mph-header-menu-link {
        font-size: 18px;
        padding: 12px 24px;
    }

    .mph-nav-open {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ===== RESPONSIVE: Mobile Footer Stack (≤768px) ===== */
@media (max-width: 768px) {
    .mph-footer-row-1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .mph-footer-dots {
        display: none;
    }

    .mph-footer-row-2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .mph-header-inner {
        padding: 0 16px;
    }

    .mph-footer-inner {
        padding: 0 16px;
    }

    .mph-site-content {
        padding: 0 16px;
    }
}

/* ===== RESPONSIVE: Medium Phone (≤640px) ===== */
@media (max-width: 640px) {
    .mph-header-brand {
        font-size: 12px;
    }

    .mph-header-inner {
        height: 52px;
    }
}

/* ===== RESPONSIVE: Small Phone (≤480px) ===== */
@media (max-width: 480px) {
    .mph-header-brand {
        font-size: 11px;
    }

    .mph-header-inner {
        padding: 0 12px;
    }

    .mph-site-content {
        min-height: calc(100vh - 52px - 180px);
        padding: 0 12px;
    }

    .mph-footer-row-1 {
        gap: 4px;
    }

    .mph-footer-row-1 img,
    .mph-footer-row-1 .logo-placeholder {
        width: 20px;
        height: 24px;
    }

    .mph-footer-brand-name {
        font-size: 11px;
    }

    .mph-footer-tagline {
        font-size: 10px;
    }

    .mph-footer-row-1 a {
        font-size: 11px;
    }
}
