/*
Theme Name: TGGA Guide Magazine
Theme URI: https://gamingguidearchives.com
Template: tgga-theme
Author: The Gaming Guide Archives
Description: Child theme layer that keeps the TGGA structure but moves it toward an editorial gaming guide magazine style.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: tgga-guide-magazine
*/

:root {
    --tgga-ink: #171717;
    --tgga-muted: #5b616b;
    --tgga-paper: #fffdf8;
    --tgga-panel: #ffffff;
    --tgga-line: #ded8cf;
    --tgga-accent: #e13b5b;
    --tgga-accent-dark: #b81f43;
    --tgga-cyan: #00a6d6;
    --tgga-gold: #f3bc42;
}

html.light {
    background: var(--tgga-paper);
}

body.wp-theme-tgga-theme {
    background:
        linear-gradient(180deg, rgba(225, 59, 91, 0.08), rgba(255, 253, 248, 0) 260px),
        var(--tgga-paper) !important;
    color: var(--tgga-ink) !important;
}

body.wp-theme-tgga-theme a {
    text-underline-offset: 3px;
}

body.wp-theme-tgga-theme header {
    background: rgba(255, 253, 248, 0.96) !important;
    border-bottom: 3px solid var(--tgga-ink) !important;
    box-shadow: 0 8px 0 rgba(23, 23, 23, 0.04);
}

body.wp-theme-tgga-theme header > div {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.custom-logo-link img {
    height: 42px !important;
    max-width: 230px !important;
}

body.wp-theme-tgga-theme header nav a {
    border: 0 !important;
    color: var(--tgga-ink) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    padding: 8px 0 !important;
    position: relative;
    text-transform: uppercase;
}

body.wp-theme-tgga-theme header nav a::after {
    background: var(--tgga-accent);
    bottom: 0;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
    width: 100%;
}

body.wp-theme-tgga-theme header nav a:hover::after,
body.wp-theme-tgga-theme header nav a.text-primary::after {
    transform: scaleX(1);
}

body.wp-theme-tgga-theme input[type="search"] {
    background: #ffffff !important;
    border: 2px solid var(--tgga-ink) !important;
    border-radius: 0 !important;
    box-shadow: 4px 4px 0 rgba(23, 23, 23, 0.12);
}

body.wp-theme-tgga-theme button.material-symbols-outlined,
body.wp-theme-tgga-theme a.material-symbols-outlined {
    color: var(--tgga-ink) !important;
}

body.wp-theme-tgga-theme aside {
    background: #fff7e8 !important;
    border-right: 2px solid var(--tgga-ink) !important;
}

body.wp-theme-tgga-theme aside nav a {
    border-left-width: 0 !important;
    color: var(--tgga-ink) !important;
    font-weight: 800 !important;
    margin: 0 12px;
    text-transform: uppercase;
}

body.wp-theme-tgga-theme aside nav a:hover,
body.wp-theme-tgga-theme aside nav a.bg-primary-container\/20 {
    background: var(--tgga-ink) !important;
    color: #ffffff !important;
}

body.wp-theme-tgga-theme aside nav a:hover .material-symbols-outlined,
body.wp-theme-tgga-theme aside nav a.bg-primary-container\/20 .material-symbols-outlined {
    color: #ffffff !important;
}

body.wp-theme-tgga-theme aside a[href*="submit-guide"] {
    background: var(--tgga-accent) !important;
    border: 2px solid var(--tgga-ink);
    border-radius: 0 !important;
    box-shadow: 5px 5px 0 var(--tgga-ink);
    color: #ffffff !important;
    text-transform: uppercase;
}

body.wp-theme-tgga-theme main {
    max-width: 1240px !important;
}

body.wp-theme-tgga-theme h2 {
    color: var(--tgga-ink) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

body.wp-theme-tgga-theme section:first-of-type h2::before {
    color: var(--tgga-accent);
    content: "Featured ";
}

body.wp-theme-tgga-theme section:first-of-type > div:first-child {
    align-items: center !important;
    border-bottom: 4px solid var(--tgga-ink);
    padding-bottom: 12px;
}

body.wp-theme-tgga-theme section:first-of-type > div:first-child a {
    color: var(--tgga-accent-dark) !important;
    font-weight: 900 !important;
    text-transform: uppercase;
}

.glass-panel {
    background: var(--tgga-panel) !important;
    border: 2px solid var(--tgga-ink) !important;
    border-radius: 0 !important;
    box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12) !important;
}

.accent-border-violet,
.accent-border-green,
.guide-card-accent {
    border-top: 0 !important;
}

body.wp-theme-tgga-theme section:first-of-type .grid {
    gap: 22px !important;
}

body.wp-theme-tgga-theme section:first-of-type .grid > .group:first-child {
    min-height: 330px;
}

@media (min-width: 1280px) {
    body.wp-theme-tgga-theme section:first-of-type .grid {
        grid-template-columns: 1.35fr 1fr 1fr !important;
    }
}

body.wp-theme-tgga-theme section:first-of-type .group {
    border-radius: 0 !important;
}

body.wp-theme-tgga-theme section:first-of-type .group::before {
    background: linear-gradient(135deg, rgba(225, 59, 91, 0.72), rgba(0, 166, 214, 0.35));
    content: "";
    inset: 0;
    opacity: 0.28;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

body.wp-theme-tgga-theme section:first-of-type .group a {
    z-index: 2;
}

body.wp-theme-tgga-theme section:first-of-type h3 {
    font-size: clamp(20px, 2vw, 31px) !important;
    font-weight: 900 !important;
    line-height: 1.02 !important;
    max-width: 92%;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

body.wp-theme-tgga-theme section:first-of-type span[class*="uppercase"] {
    background: var(--tgga-accent) !important;
    border: 2px solid #ffffff !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em;
}

body.wp-theme-tgga-theme .xl\:grid-cols-3 > .xl\:col-span-2 h2::before {
    color: var(--tgga-cyan);
    content: "Latest ";
}

body.wp-theme-tgga-theme .space-y-base {
    border: 2px solid var(--tgga-ink) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.zebra-row {
    background: #ffffff !important;
    border-bottom: 1px solid var(--tgga-line);
}

.zebra-row:last-child {
    border-bottom: 0;
}

.zebra-row:hover {
    background: #fff7e8 !important;
}

.zebra-row h4 {
    color: var(--tgga-ink) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}

.zebra-row p,
body.wp-theme-tgga-theme .text-on-surface-variant {
    color: var(--tgga-muted) !important;
}

.zebra-row .rounded-full,
body.wp-theme-tgga-theme span.rounded-full {
    background: #f1f4f7 !important;
    border: 1px solid var(--tgga-ink);
    border-radius: 999px !important;
    color: var(--tgga-ink) !important;
}

body.wp-theme-tgga-theme main > div.grid > div:last-child h2::before {
    color: var(--tgga-accent);
    content: "Hot ";
}

body.wp-theme-tgga-theme main > div.grid > div:last-child .glass-panel,
body.wp-theme-tgga-theme main > div.grid > div:last-child .bg-surface-container-high {
    background: #ffffff !important;
    border: 2px solid var(--tgga-ink) !important;
    border-left: 8px solid var(--tgga-accent) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.wp-theme-tgga-theme main > div.grid > div:last-child h5 {
    color: var(--tgga-ink) !important;
    font-weight: 900 !important;
}

body.wp-theme-tgga-theme a.block.w-full.mt-4 {
    background: var(--tgga-ink) !important;
    border: 2px solid var(--tgga-ink) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-transform: uppercase;
}

body.wp-theme-tgga-theme footer {
    background: var(--tgga-ink) !important;
    border-top: 0 !important;
    color: #ffffff !important;
}

body.wp-theme-tgga-theme footer a,
body.wp-theme-tgga-theme footer p,
body.wp-theme-tgga-theme footer button {
    color: #ffffff !important;
}

/* TGGA guide-first focus: remove community/account furniture and make labels clearer. */
body.wp-theme-tgga-theme header nav a[href="#"],
body.wp-theme-tgga-theme header button.material-symbols-outlined,
body.wp-theme-tgga-theme header .h-10.w-10,
body.wp-theme-tgga-theme aside > .px-6,
body.wp-theme-tgga-theme aside a[href*="my-library"],
body.wp-theme-tgga-theme aside a[href*="community"],
body.wp-theme-tgga-theme footer nav a[href="#"],
body.wp-theme-tgga-theme footer .flex.gap-4 button {
    display: none !important;
}

body.wp-theme-tgga-theme section:first-of-type h2::before,
body.wp-theme-tgga-theme .xl\:grid-cols-3 > .xl\:col-span-2 h2::before,
body.wp-theme-tgga-theme main > div.grid > div:last-child h2::before {
    content: "" !important;
}

body.wp-theme-tgga-theme section:first-of-type h2 {
    font-size: 0 !important;
}

body.wp-theme-tgga-theme section:first-of-type h2::after {
    content: "Featured Guides";
    font-size: 32px;
}

body.wp-theme-tgga-theme .xl\:grid-cols-3 > .xl\:col-span-2 h2 {
    font-size: 0 !important;
}

body.wp-theme-tgga-theme .xl\:grid-cols-3 > .xl\:col-span-2 h2::after {
    content: "Latest Guides";
    font-size: 32px;
}

body.wp-theme-tgga-theme main > div.grid > div:last-child h2 {
    font-size: 0 !important;
}

body.wp-theme-tgga-theme main > div.grid > div:last-child h2::after {
    content: "Guide Hub";
    font-size: 32px;
}

body.wp-theme-tgga-theme a[href*="game-hub"] {
    font-weight: 900 !important;
}

.tgga-guide-utility {
    background: #ffffff;
    border: 2px solid var(--tgga-ink);
    box-shadow: 7px 7px 0 rgba(23, 23, 23, 0.12);
    display: grid;
    gap: 18px;
    margin: 0 0 28px;
    padding: 18px;
}

.tgga-guide-utility__intro {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tgga-guide-utility__intro strong {
    color: var(--tgga-ink);
    font-size: 20px;
    font-weight: 900;
}

.tgga-guide-utility__badge {
    background: var(--tgga-accent);
    color: #ffffff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 6px 9px;
    text-transform: uppercase;
}

.tgga-guide-utility__times {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.tgga-guide-utility__times div {
    background: #fff7e8;
    border: 1px solid var(--tgga-line);
    padding: 12px;
}

.tgga-guide-utility__times dt {
    color: var(--tgga-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tgga-guide-utility__times dd {
    color: var(--tgga-ink);
    font-size: 22px;
    font-weight: 900;
    margin: 2px 0 0;
}

.tgga-guide-utility__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tgga-guide-utility__links a {
    background: var(--tgga-ink);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 900;
    padding: 10px 12px;
    text-decoration: none;
    text-transform: uppercase;
}

.tgga-guide-utility__links a:first-child {
    background: var(--tgga-accent);
}

@media (max-width: 767px) {
    body.wp-theme-tgga-theme header > div {
        gap: 12px;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.wp-theme-tgga-theme header .max-w-xl {
        display: none;
    }

    body.wp-theme-tgga-theme header .gap-4:last-child {
        gap: 6px !important;
    }

    body.wp-theme-tgga-theme main {
        padding: 20px 16px !important;
    }

    body.wp-theme-tgga-theme section:first-of-type .grid > .group:first-child {
        min-height: 260px;
    }

    .zebra-row {
        align-items: flex-start !important;
    }

    .zebra-row h4 {
        font-size: 16px !important;
    }

    body.wp-theme-tgga-theme footer nav {
        flex-wrap: wrap;
        gap: 14px !important;
        justify-content: center;
    }

    .tgga-guide-utility__times {
        grid-template-columns: 1fr;
    }
}
