/*
Theme Name: WHYATT PrattGamez
Theme URI: https://prattgamez.com/
Author: WHYATT Media
Author URI: https://media.whyatt.fr/
Description: Comic-focused child theme for PrattGamez.
Version: 0.1.1
Template: whyatt-framework
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whyatt-prattgamez
*/

@font-face {
    font-family: 'Bangers';
    src: url('assets/fonts/Bangers-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* ==================================================
   PRATTGAMEZ DESIGN SYSTEM
   ================================================== */

:root {
    --pg-purple: #7514bd;
    --pg-dark-purple: #292137;
    --pg-light-purple: #bf65ff;
    --pg-lavender: #d8b5f1;
    --pg-yellow: #ffdb28;
    --pg-black: #000000;
    --pg-library-background: #f5fafd;

    --wf-background: #ffffff;
    --wf-surface: #f8f5fa;
    --wf-text: var(--pg-dark-purple);
    --wf-heading: var(--pg-dark-purple);
    --wf-primary: var(--pg-purple);
    --wf-border: #ddd2e8;
    --wf-focus: var(--pg-purple);
    --wf-width: 1250px;
    --wf-width-narrow: 850px;
    --wf-header-background: var(--pg-black);
    --wf-header-height: 80px;
    --wf-logo-width: 175px;
    --wf-footer-background: var(--pg-black);
    --wf-footer-color: #ffffff;
}

/* Header and navigation */

.pg-site .wf-header {
    border-bottom: 4px solid var(--pg-purple);
    color: #fff;
}

.pg-site .wf-brand .custom-logo {
    display: block;
    max-height: 65px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
}

.pg-site .wf-header .wf-menu a,
.pg-site .wf-header .wf-brand a {
    color: #ffffff;
}

.pg-site .wf-header .wf-menu a:hover,
.pg-site .wf-header .current-menu-item > a {
    color: var(--pg-light-purple);
}

.pg-site .wf-header .sub-menu {
    background: var(--pg-black);
    border-color: var(--pg-purple);
}

.pg-site .wf-header .wf-menu-toggle {
    background: var(--pg-purple);
    border: 1px solid var(--pg-light-purple);
    color: #ffffff;
}

.pg-site .wf-header :focus-visible {
    outline-color: var(--pg-light-purple);
}

.pg-site .wf-navigation a[href*="random-comic=1"] {
    display: inline-block;
    padding: 10px 18px;
    background: var(--pg-purple);
    color: #ffffff;
    border: 2px solid var(--pg-light-purple);
    border-radius: 4px;
    font-family: Bangers, Impact, sans-serif;
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 1px;
    text-decoration: none;
}

.pg-site .wf-navigation a[href*="random-comic=1"]:hover {
    background: var(--pg-light-purple);
    color: var(--pg-black);
}

/* Full-width homepage */

.pg-site.home #main-content {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Comic reading layout */

.pg-comic-main {
    width: min(100%, 1250px);
    margin-inline: auto;
    padding: 30px 18px 50px;
    box-sizing: border-box;
    min-width: 0;
}

.pg-comic-main img {
    max-width: 100%;
    height: auto;
}

.pg-not-found {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Responsive adjustments */

@media (max-width: 767px) {
    .pg-site .wf-brand .custom-logo {
        max-width: 140px;
        max-height: 55px;
    }

    .pg-site .wf-navigation a[href*="random-comic=1"] {
        text-align: center;
    }

    .pg-comic-main {
        padding: 20px 12px 35px;
    }
}


/* PrattGamez custom footer */


    /* HIDE ORIGINAL MESMERIZE FOOTER */

    

    /* PRATTGAMEZ FOOTER */

    #pg-site-footer {
        --purple: #7514bd;
        --light-purple: #bf65ff;

        width: 100%;
        background: #000000;
        color: #ffffff;
        border-top: 5px solid var(--purple);
        padding: 40px 20px 20px;
        margin: 0;
        box-sizing: border-box;
    }

    #pg-site-footer * {
        box-sizing: border-box;
    }

    .pg-footer-inner {
        width: min(1250px, 94%);
        margin: 0 auto;
    }

    /* THREE COLUMN LAYOUT */

    .pg-footer-grid {
        display: grid !important;
        grid-template-columns: 1.4fr 1fr 1.2fr;
        gap: 45px;
        align-items: start;
        padding-bottom: 30px;
    }

    .pg-footer-grid::before,
    .pg-footer-grid::after {
        display: none !important;
        content: none !important;
    }

    /* BRANDING */

    .pg-footer-logo {
        display: block;
        width: 175px;
        max-width: 100%;
        height: auto;
        margin: 0 0 20px !important;
    }

    .pg-footer-brand p {
        font-size: 17px;
        line-height: 1.6;
        color: #c9c5cf !important;
        margin: 0 0 10px;
    }

    .pg-footer-slogan {
        font: normal 22px/1.3
            'Bangers', Impact, sans-serif;
        letter-spacing: .5px;
        color: #bf65ff !important;
    }

    /* SECTION HEADINGS */

    #pg-site-footer h3 {
        font: normal 28px/1.1
            'Bangers', Impact, sans-serif !important;
        letter-spacing: 1px;
        color: var(--light-purple) !important;
        margin: 0 0 18px !important;
    }

    /* NAVIGATION LINKS */

    .pg-footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .pg-footer-links a {
        display: inline-block;
        font-size: 17px;
        line-height: 1.4;
        color: #ffffff !important;
        text-decoration: none !important;
        transition: color .2s, transform .2s;
    }

    .pg-footer-links a:hover {
        color: var(--light-purple) !important;
        transform: translateX(4px);
    }

    #pg-site-footer a:focus-visible {
        outline: 2px solid var(--light-purple);
        outline-offset: 5px;
    }

    /* COPYRIGHT AND DISCLAIMER */

    .pg-footer-bottom {
        border-top: 1px solid #39303f;
        padding-top: 20px;
        text-align: center;
    }

    .pg-footer-bottom p {
        font-size: 14px;
        line-height: 1.6;
        color: #aaa5b0 !important;
        margin: 5px 0 !important;
    }

    /* TABLET */

    @media (max-width: 1024px) {

        .pg-footer-grid {
            gap: 25px;
        }

        #pg-site-footer {
            padding-top: 30px;
        }

    }

    /* MOBILE */

    @media (max-width: 767px) {

        #pg-site-footer {
            padding: 30px 20px 20px;
        }

        .pg-footer-grid {
            grid-template-columns: 1fr;
            gap: 30px;
            text-align: center;
        }

        .pg-footer-logo {
            margin: 0 auto 20px !important;
            width: 150px;
        }

        .pg-footer-links {
            align-items: center;
        }

        .pg-footer-links a:hover {
            transform: none;
        }

        .pg-footer-bottom p {
            font-size: 13px;
        }

    }

    @media (prefers-reduced-motion: reduce) {
        #pg-site-footer a {
            transition: none !important;
        }
    }
.pg-footer-bottom p {
    max-width: 1000px;
    margin: 8px auto !important;
}

/* Accessible heading for existing artwork-led layouts. */
.pg-accessible-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}


/* PRATTGAMEZ - STICKY HEADER AND HERO SPACING */

body.pg-site .wf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* WordPress administration toolbar */
body.pg-site.admin-bar .wf-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.pg-site.admin-bar .wf-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    body.pg-site.admin-bar .wf-header {
        top: 0;
    }
}

/* Remove obsolete Mesmerize header compensation */
body.pg-site.home .pg-hero {
    margin-top: 0 !important;
}


/* PRATTGAMEZ - ORIGINAL HEADER PROPORTIONS */

@media (min-width: 1025px) {

    body.pg-site .wf-header .wf-container {
        width: 90%;
        max-width: 1720px;
        min-height: 106px;
        margin-inline: auto;
        box-sizing: border-box;
    }

    body.pg-site .wf-header img.custom-logo {
        display: block;
        width: 215px;
        max-width: 100%;
        height: auto;
        max-height: none;
    }

    body.pg-site .wf-header nav a:not([href*="random-comic="]) {
        font-family: 'Bangers', Impact, sans-serif;
        font-size: 24px;
        font-weight: 400;
        letter-spacing: .5px;
    }

    body.pg-site .wf-header nav > ul,
    body.pg-site .wf-header nav > div > ul {
        column-gap: clamp(20px, 3vw, 56px);
    }

}

/* Prevent full-width artwork creating horizontal scroll. */
@supports (overflow: clip) {
    body.pg-site {
        overflow-x: clip;
    }
}


/* PRATTGAMEZ - MOBILE NAVIGATION AND READER */

@media (max-width: 767px) {

    body.pg-site {
        margin-inline: 0;
    }

    body.pg-site .wf-header {
        width: 100%;
        margin-inline: 0;
    }

    body.pg-site .wf-header-inner.wf-nav-mobile {
        min-height: 70px;
        padding-block: 8px;
    }

    /* Accessible hamburger control */

    body.pg-site .wf-header .wf-menu-toggle {
        position: relative;
        width: 46px;
        height: 46px;
        padding: 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #fff;
        font-size: 0;
        cursor: pointer;
    }

    body.pg-site .wf-menu-toggle::before {
        content: "";
        display: block;
        width: 26px;
        height: 20px;
        background: linear-gradient(
            to bottom,
            currentColor 0 3px,
            transparent 3px 8px,
            currentColor 8px 11px,
            transparent 11px 17px,
            currentColor 17px 20px
        );
    }

    body.pg-site .wf-menu-toggle[aria-expanded="true"]::before {
        background:
            linear-gradient(
                45deg,
                transparent 44%,
                currentColor 44% 56%,
                transparent 56%
            ),
            linear-gradient(
                -45deg,
                transparent 44%,
                currentColor 44% 56%,
                transparent 56%
            );
    }

    /* Mobile navigation panel */

    body.pg-site .wf-navigation.wf-nav-mobile {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        max-height: 70dvh;
        overflow-y: auto;
        background: #000;
        border-bottom: 4px solid var(--pg-purple);
        padding: 10px 18px 20px;
        box-sizing: border-box;
        box-shadow: 0 10px 20px rgba(0,0,0,.25);
    }

    body.pg-site .wf-navigation.wf-nav-mobile .wf-menu {
        width: 100%;
        gap: 0;
        align-items: stretch;
    }

    body.pg-site .wf-navigation.wf-nav-mobile .wf-menu > li {
        width: 100%;
    }

    body.pg-site .wf-navigation.wf-nav-mobile
    .wf-menu > li > a:not([href*="random-comic="]) {
        display: block;
        padding: 15px 12px;
        border-bottom: 1px solid #39303f;
        font: 24px/1.2 Bangers, Impact, sans-serif;
        letter-spacing: .7px;
    }

    body.pg-site .wf-navigation.wf-nav-mobile
    a[href*="random-comic=1"] {
        display: block;
        width: calc(100% - 30px);
        margin: 20px 15px 10px;
        padding: 15px 10px;
        background: #fff;
        color: #7514bd;
        font: 22px/1.2 Bangers, Impact, sans-serif;
        text-align: center;
        box-sizing: border-box;
    }

    /* Native full-width mobile hero */

    body.pg-site.home .pg-hero {
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100% !important;
        margin-inline: 0 !important;
    }

}

/* Restore the original phone landscape reading behaviour. */

@media (orientation: landscape)
    and (max-height: 500px)
    and (max-width: 1100px)
    and (pointer: coarse) {

    body.pg-site.single-post:has(.pg-reader) .wf-header {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
    }

}

/* PRATTGAMEZ - ORIGINAL LIBRARY BACKGROUND */

body.pg-site:is(
    .page-id-407,
    .page-id-419,
    .page-id-476,
    .page-id-487,
    .page-id-587
) {
    --wf-background: var(--pg-library-background);
    background-color: var(--pg-library-background);
}

body.pg-site:is(
    .page-id-407,
    .page-id-419,
    .page-id-476,
    .page-id-487,
    .page-id-587
) #main-content {
    background-color: var(--pg-library-background);
}


/* PRATTGAMEZ - MOBILE MENU ANIMATION */

@keyframes pg-menu-swipe-down {
    from {
        clip-path: inset(0 0 100% 0);
        opacity: 0.6;
    }

    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@media (max-width: 767px)
    and (prefers-reduced-motion: no-preference) {

    body.pg-site .wf-navigation.wf-nav-mobile:not([hidden]) {
        animation: pg-menu-swipe-down 280ms
            cubic-bezier(0.22, 1, 0.36, 1);
    }

}


/* PRATTGAMEZ - COMIC LISTING BACKGROUNDS */

body.pg-site.home #main-content,
body.pg-site.home .pg-home {
    background-color: var(--pg-library-background, #f5fafd);
}

body.pg-site.tag,
body.pg-site.tag #main-content,
body.pg-site.tag .pg-tag-library {
    background-color: var(--pg-library-background, #f5fafd) !important;
}


/* PRATTGAMEZ - HOMEPAGE BACKGROUND CONTINUITY */

body.pg-site.home {
    --wf-background: var(--pg-library-background, #f5fafd);
    background-color: var(--wf-background);
}

