@import url('animation.css');

/* ---------- Reset & Base ---------- */
html, body {
    margin: 0;
    padding: 0;
}

.page-template:not(#wpadminbar) {
    min-height: 100vh; 
    display: flex; 
}

.page-template:has(#wpadminbar) {
    min-height: 96.4vh; 
    display: flex; 
}


/* ---------- Post Container ---------- */
.wp-site-blocks {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-width: 0;
    flex: 1;
}

.wp-site-blocks > main {
    flex: 1;
}

.wp-site-blocks > footer {
    margin-top: auto;
}

.shaad-post-container {
    display: flex; 
    flex-direction: column;
    padding: 0;
    margin: 0;    
    flex: 1;
}

/* ---------- Buttons ---------- */
.wp-element-button,
.wp-block-button__link,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
}

.wp-block-button__link:not(.has-background):hover {
    background-color: color-mix(in srgb, black 5%, transparent);
}

/* ---------- Site Title with Stroke & Shadow ---------- */
.wp-block-site-title,
.wp-block-site-title a {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: var(--wp--preset--color--logo-base);
    text-decoration: none !important;

    /* Precision Stroke */
    -webkit-text-stroke: 1.2px black;
    paint-order: stroke fill;

    /* Ambient Occlusion Shadow */
    text-shadow:
        2px 2px 0px black,
        0px 4px 10px rgba(0, 0, 0, 0.2),
        0px 12px 25px rgba(0, 0, 0, 0.1);

    display: inline-block;
}

.site-title-cover {
    display: inline-block;
    transition: all 1.0s ease;
}

.site-title-cover:hover {
    animation: bounceBallSoft 1.0s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* ---------- Post Content ---------- */
.shaad-post-content {
    background: var(--wp--preset--color--surface-light, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    flex: 1;
}

.shaad-post-content .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.wp-block-post-title { 
    display: none;
}

.shaad-post-content .wp-block-post-title a {
    text-decoration: none;
}

.shaad-post-content .wp-block-post-title a:hover {
    opacity: 0.85;
}

/* ---------- Pagination ---------- */
.wp-block-query-pagination {
    margin-top: 32px;
    gap: 10px;
}

/* ---------- Header ---------- */
.shaad-site-header {
    background: linear-gradient(135deg,
        var(--wp--preset--color--logo-tetra-1-light) 0%,
        var(--wp--preset--color--logo-tetra-2-light) 100%);
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
    color: whitesmoke;
}

.shaad-site-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.shaad-site-header .header-left {
    flex: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.shaad-site-header .site-title {
    flex-shrink: 0;
    font-size: 2.5rem;
    line-height: 1;
}

.shaad-site-header .header-nav {
    flex: auto;
    flex-wrap: wrap;
    padding-left: 1rem;
}

.shaad-site-header .header-center,
.shaad-site-header .header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.shaad-site-header .header-right img {
    display: inline-block;
    transition: all 0.3s ease;
    width: 100px;
    height: auto;
    border-radius: 8px;
}

.shaad-site-header .header-right img:hover {
    /* animation: shake 0.7s ease-out; */
    animation: shake 1.6s linear infinite;
}

.shaad-site-header .header-center .shaad-login-box-wrap--compact {
    max-width: 100%;
}

.shaad-site-header .header-center .shaad-login-box__compact-user {
    white-space: nowrap;
}

.shaad-site-header .header-center .shaad-login-box--compact .shaad-login-box__display-name,
.shaad-site-header .header-center .shaad-login-box--compact .shaad-login-box__email {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shaad-site-header .header-nav a,
.shaad-site-footer .footer-nav a {
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    padding: 6px 6px 3px;
    border: 1px solid transparent;
}

.shaad-site-header .header-nav a:hover,
.shaad-site-footer .footer-nav a:hover {
    background-color: var(--wp--preset--color--logo-base);
    border: 1px solid black;
    border-radius: 30px;
    color: black;
}

/* ---------- Footer ---------- */
.shaad-site-footer {
    background: radial-gradient(
        var(--wp--preset--color--logo-tetra-1) 0%,
        var(--wp--preset--color--logo-tetra-2-light) 150%
    );
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
}

.shaad-site-footer .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px;
}

.shaad-site-footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

.shaad-site-footer .footer-branding {
    line-height: 0.5;
}

.shaad-site-footer .site-title {
    font-size: 1.5rem;
}

.shaad-site-footer .footer-tagline {
    color: var(--wp--preset--color--logo-tetra-3);
    opacity: 0.8;
    font-size: 0.9rem;
    text-align: center;
}

.shaad-site-footer .footer-nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: whitesmoke;
}

.shaad-site-footer .footer-bottom {
    padding-top: 0.75rem;
    text-align: center;
}

.shaad-site-footer .copyright {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ---------- Responsive: Tablet (max-width: 768px) ---------- */
@media (max-width: 768px) {
    .shaad-site-header .header-content {
        flex-wrap: wrap;
    }

    .shaad-site-header .header-left {
        flex-basis: 100%;
        justify-content: flex-start;
        flex-direction: column;
    }

    .shaad-site-header .header-nav {
        width: 100%;
    }

    .wp-block-navigation__container {
        justify-content: space-between;
    }

    .shaad-site-header .header-center,
    .shaad-site-header .header-right {
        margin-left: auto;
    }

    .shaad-site-header .header-center .shaad-login-box--compact .shaad-login-box__display-name,
    .shaad-site-header .header-center .shaad-login-box--compact .shaad-login-box__email {
        max-width: 110px;
    }

    .shaad-site-footer .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .shaad-site-footer .footer-branding {
        text-align: center;
    }

    .shaad-site-footer .footer-menu {
        justify-content: center;
    }

    .shaad-site-footer .footer-site-title {
        font-size: 1.5rem;
    }
}

/* ---------- Responsive: Mobile (max-width: 598px) ---------- */
@media (max-width: 598px) {
    .shaad-site-header .header-content {
        padding: 0.5rem 0;
    }

    .shaad-site-header .header-right {
        display: none;
    }

    .shaad-site-header .header-left {
        display: flex;
        flex-direction: row;
        align-items: left;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .shaad-site-header .header-nav,
    .shaad-site-footer .footer-menu {
        order: -1;
        flex: none;
        width: auto;
        padding-left: 0;
    }

    .shaad-site-header .wp-block-navigation__responsive-container-open {
        padding: 0.3rem;
        background-color: var(--wp--preset--color--logo-tetra-1);
        color: white;
        position: relative;
        top: -10px;
        border-radius: 30%;
    }

    .shaad-site-footer .wp-block-navigation__responsive-container-open {
        background-color: transparent;
        color: black;
    }

    .shaad-site-header .site-title {
        font-size: 9svw;
    }

    .wp-block-navigation__responsive-container.is-menu-open {
        background-color: var(--wp--preset--color--logo-tetra-1) !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        padding-top: 20px;
        padding-bottom: 40px;
        padding-left: 40px;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
        text-decoration: none;
        font-family: 'GosmickSans', system-ui, sans-serif;
        color: var(--wp--preset--color--logo-base);
        font-size: x-large !important;
        -webkit-text-stroke: 1.2px black;
        paint-order: stroke fill;
        text-shadow:
            2px 2px 0px black,
            0px 4px 10px rgba(0, 0, 0, 0.2),
            0px 12px 25px rgba(0, 0, 0, 0.1);
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
        color: var(--wp--preset--color--logo-tetra-2-light);
    }
}