/**
 * MyPublisher App Shell — Shared Styles
 * Global tokens, header, footer, and responsive rules shared
 * across all plugin-managed pages.
 */

/* =========================================================================
   GLOBAL TOKENS
   ========================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
input,
button,
a {
    font-family: 'Courier Prime', 'Courier New', Courier, monospace;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    background-color: #FEFBF9;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    background-color: #FEFBF9 !important;
    color: #000000;
    line-height: 1.5;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Ensure WordPress theme doesn't add any container margins */
body.page-template-default {
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================================
   HEADER (STICKY NAVIGATION BAR)
   ========================================================================= */

.mypub-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #FEFBF9;
    border-bottom: 1px solid #000000;
    max-width: 1620px;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 166px;
    display: grid;
    grid-template-columns: 45% 55%;
    column-gap: 60px;
    align-items: center;
    height: 66px;
    box-sizing: border-box;
}

/* Left Column - aligns with hero left column */
.mypub-header-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
    padding-right: 320px !important;
}

/* Right Column - aligns with hero right column */
.mypub-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* Logo */
.mypub-logo {
    margin: 0;
    padding: 0;
}

.mypub-logo a {
    font-size: 30px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    line-height: 1;
    margin: 0;
    padding: 0;
    display: block;
}

.mypub-logo a:hover {
    opacity: 0.8;
}

/* Hamburger Menu Button (Hidden on Desktop) */
.mypub-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mypub-hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #000000;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Active State (X) */
.mypub-hamburger.is-active .mypub-hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mypub-hamburger.is-active .mypub-hamburger-line:nth-child(2) {
    opacity: 0;
}

.mypub-hamburger.is-active .mypub-hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Navigation */
.mypub-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.mypub-nav-link {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mypub-nav-link:hover {
    opacity: 0.7;
}

/* CTA Button in Nav */
.mypub-nav-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #000000 !important;
    color: #FDFBFA !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0 32px !important;
    margin: 0 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer;
    min-width: 200px;
    height: 46px !important;
    line-height: normal !important;
    text-align: center;
    box-sizing: border-box !important;
}

.mypub-nav-cta:hover {
    background-color: #333333;
}

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

.mypub-content {
    background-color: #FEFBF9;
    max-width: 1620px;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 20px;
    box-sizing: border-box;
    display: block;
}

/* App page content container (signup, home, profile) */
.mypub-app-page .mypub-app-container {
    max-width: 1288px;
    margin: 0 auto;
    padding: 40px 60px 60px;
    box-sizing: border-box;
}

/* Generic page container (privacy-policy, terms, etc.) */
.mypub-page-container {
    max-width: 1408px;
    margin: 0 auto;
    padding: 40px 60px 60px;
    box-sizing: border-box;
}

.mypub-page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.mypub-page-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
}

.mypub-page-container h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 10px;
}

.mypub-page-container p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.mypub-page-container ul,
.mypub-page-container ol {
    margin: 16px 0;
    padding-left: 24px;
}

.mypub-page-container li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.mypub-page-container a {
    color: #000000;
    text-decoration: underline;
}

.mypub-page-container a:hover {
    color: #333333;
}

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

.mypub-footer {
    background-color: #FEFBF9;
    max-width: 1620px;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px 60px !important;
    border-top: 1px solid #000000;
    box-sizing: border-box;
}

.mypub-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.mypub-footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mypub-footer-copyright {
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
    margin: 0;
}

.mypub-footer-tagline {
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: #666666;
    margin: 0;
}

.mypub-footer-right {
    display: flex;
    justify-content: flex-end;
}

.mypub-footer-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.mypub-footer-link {
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
    text-decoration: none;
}

.mypub-footer-link:hover {
    opacity: 0.7;
}

/* =========================================================================
   RESPONSIVE — Header & Footer
   ========================================================================= */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
    .mypub-header {
        padding: 0 40px;
    }

    .mypub-nav {
        gap: 20px;
    }

    .mypub-app-page .mypub-app-container {
        padding: 32px 40px 40px;
    }

    .mypub-page-container {
        padding: 32px 40px 40px;
    }

    .mypub-footer {
        padding: 20px 40px !important;
    }

    .mypub-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mypub-footer-right {
        justify-content: flex-start;
    }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
    /* Header - stack navigation */
    .mypub-header {
        padding: 16px 20px;
        height: 66px;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .mypub-header-left {
        justify-content: flex-start;
        border: none;
        padding-right: 0 !important;
    }

    .mypub-header-right {
        justify-content: flex-end;
    }

    /* Show Hamburger Menu */
    .mypub-hamburger {
        display: flex;
    }

    /* Hide Navigation by Default on Mobile */
    .mypub-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: #FFFFFF;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        padding: 60px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        box-sizing: border-box;
    }

    /* Show Navigation When Open */
    .mypub-nav.is-open {
        transform: translateX(0);
    }

    .mypub-nav-link {
        width: 100%;
        max-width: 300px;
        text-align: center;
        font-size: 18px;
        padding: 12px;
    }

    .mypub-nav-cta {
        width: 100% !important;
        max-width: 300px;
        font-size: 16px !important;
    }

    .mypub-app-page .mypub-app-container {
        padding: 24px 20px 32px;
    }

    .mypub-page-container {
        padding: 24px 20px 32px;
    }

    .mypub-page-title {
        font-size: 32px;
    }

    /* Footer */
    .mypub-footer {
        padding: 24px 20px !important;
    }

    .mypub-footer-nav {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Small mobile: 480px and below */
@media (max-width: 480px) {
    .mypub-header {
        padding: 12px 16px;
    }

    .mypub-logo a {
        font-size: 24px;
    }

    .mypub-app-page .mypub-app-container {
        padding: 20px 16px 24px;
    }

    .mypub-page-container {
        padding: 20px 16px 24px;
    }
}

/* =========================================================================
   GRAVITY FORMS OVERRIDES
   ========================================================================= */

.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"] {
    font-family: 'Courier Prime', 'Courier New', Courier, monospace !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    padding: 18px 48px !important;
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: normal !important;
    text-transform: uppercase !important;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover {
    background: #222 !important;
}
