/* ==========================================================
   MYMENU — PUBLIC BASE
   Public-facing layout: header + footer
   ========================================================== */

.public-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #1f1f1f;
    font-family: "Poppins", sans-serif;
}

.public-body *,
.public-body *::before,
.public-body *::after {
    box-sizing: border-box;
}


/* ==========================================================
   HEADER
   ========================================================== */

.public-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #eeeeee;
    backdrop-filter: blur(12px);
}

.public-header__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.public-brand__logo {
    display: block;
    width: auto;
    height: 52px;
    object-fit: contain;
}


/* ==========================================================
   HEADER ACTIONS
   ========================================================== */

.public-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-header__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid #e31e24;
    border-radius: 10px;
    background: #ffffff;
    color: #e31e24;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.public-header__login:hover {
    background: #e31e24;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.16);
}


/* Optional additional header action */

.public-header__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: #e31e24;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.public-header__action:hover {
    background: #c9181d;
    transform: translateY(-1px);
}


/* ==========================================================
   MAIN
   ========================================================== */

.public-main {
    flex: 1;
    width: 100%;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.public-footer {
    width: 100%;
    margin-top: auto;
    background: #111111;
    color: #ffffff;
}

.public-footer__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 24px;
}

.public-footer__brand {
    text-align: center;
}

.public-footer__logo {
    display: block;
    width: auto;
    height: 52px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.public-footer__brand p {
    margin: 0;
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.6;
}

.public-footer__divider {
    width: 100%;
    height: 1px;
    margin: 30px 0 20px;
    background: #2d2d2d;
}

.public-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #999999;
    font-size: 12px;
}


/* ==========================================================
   LINKS
   ========================================================== */

.public-body a {
    -webkit-tap-highlight-color: transparent;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 640px) {

    .public-header__inner {
        width: min(100% - 24px, 1180px);
        min-height: 64px;
    }

    .public-brand__logo {
        height: 44px;
    }

    .public-header__login {
        min-height: 38px;
        padding: 0 15px;
        border-radius: 9px;
        font-size: 13px;
    }

    .public-footer__inner {
        width: min(100% - 24px, 1180px);
        padding: 34px 0 20px;
    }

    .public-footer__logo {
        height: 46px;
    }

    .public-footer__bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .public-header__login,
    .public-header__action {
        transition: none;
    }
}