/* GamerCubic Tools Grid + Header Fix v1.0.6 */

/* Keep the individual tool page featured image hidden, but allow featured images in the tools grid. */
body.gc-tool-single-page .post-thumbnail,
body.gc-tool-single-page .entry-post-thumbnail,
body.gc-tool-single-page .wp-post-image:not(.gc-tool-card .wp-post-image),
body.gc-tool-single-page .featured-image,
body.gc-tool-single-page .page-header-image,
body.gc-tool-single-page .kadence-thumbnail-position-above {
    display: none !important;
}

/* Extra safe desktop header defaults. Exact collision is handled by measured JS in the footer. */
@media (min-width: 1025px) {
    body header,
    body .site-header,
    body #masthead,
    body [class*="header" i] {
        overflow: visible !important;
    }

    body header nav a,
    body header .menu-item > a,
    body header .wp-block-navigation-item__content,
    body .site-header nav a,
    body .site-header .menu-item > a,
    body .site-header .wp-block-navigation-item__content,
    body #masthead nav a,
    body #masthead .menu-item > a,
    body #masthead .wp-block-navigation-item__content {
        white-space: nowrap !important;
    }
}

/* Minecraft Tools parent page grid */
.gc-tools-section {
    width: min(1180px, calc(100% - 32px));
    margin: clamp(28px, 5vw, 56px) auto;
}

.gc-tools-heading {
    margin: 0 0 22px;
    color: #f4f7fb;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.gc-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 26px);
}

.gc-tool-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(34, 38, 50, 0.96), rgba(15, 18, 28, 0.98));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gc-tool-card:hover,
.gc-tool-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.48);
    box-shadow: 0 22px 56px rgba(0, 229, 255, 0.10), 0 18px 44px rgba(0, 0, 0, 0.36);
}

.gc-tool-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%, rgba(0, 229, 255, 0.22), rgba(14, 18, 30, 0.94));
}

.gc-tool-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 220ms ease;
}

.gc-tool-card:hover .gc-tool-thumb img,
.gc-tool-card:focus-within .gc-tool-thumb img {
    transform: scale(1.05);
}

.gc-tool-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.gc-tool-placeholder-cube {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    background: linear-gradient(135deg, #18e3ff, #52ff8f 55%, #ffd447);
    box-shadow: 0 0 46px rgba(0, 229, 255, 0.35);
    transform: rotate(45deg);
}

.gc-tool-body {
    padding: clamp(18px, 2.2vw, 26px);
}

.gc-tool-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.gc-tool-title a {
    color: inherit;
    text-decoration: none;
}

.gc-tool-excerpt {
    margin: 0 0 18px;
    color: rgba(226, 232, 240, 0.82);
    font-size: 15px;
    line-height: 1.65;
}

.gc-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(0, 229, 255, 0.50);
    border-radius: 999px;
    color: #071118;
    background: linear-gradient(135deg, #19e6ff, #50ff90);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 229, 255, 0.18);
}

.gc-tools-empty {
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    color: rgba(226,232,240,0.86);
    background: rgba(16, 18, 28, 0.78);
}

@media (max-width: 900px) {
    .gc-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gc-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* GamerCubic Header Compact Fix v1.0.7
   The problem in the screenshots is wide menu spacing. This compresses desktop nav gaps. */
@media (min-width: 1025px) {
    html body header .wp-block-group:has(nav),
    html body header .wp-block-group:has(.wp-block-navigation),
    html body .site-header .wp-block-group:has(nav),
    html body .site-header .wp-block-group:has(.wp-block-navigation),
    html body #masthead .wp-block-group:has(nav),
    html body #masthead .wp-block-group:has(.wp-block-navigation) {
        justify-content: flex-start !important;
        column-gap: 18px !important;
        gap: 18px !important;
    }

    html body header nav,
    html body header .main-navigation,
    html body header .wp-block-navigation,
    html body .site-header nav,
    html body .site-header .main-navigation,
    html body .site-header .wp-block-navigation,
    html body #masthead nav,
    html body #masthead .main-navigation,
    html body #masthead .wp-block-navigation {
        flex: 0 1 auto !important;
        width: auto !important;
        margin-left: 18px !important;
        margin-right: 14px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }

    html body header nav ul,
    html body header nav .menu,
    html body header .main-navigation ul,
    html body header .wp-block-navigation__container,
    html body .site-header nav ul,
    html body .site-header nav .menu,
    html body .site-header .main-navigation ul,
    html body .site-header .wp-block-navigation__container,
    html body #masthead nav ul,
    html body #masthead nav .menu,
    html body #masthead .main-navigation ul,
    html body #masthead .wp-block-navigation__container {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        column-gap: 18px !important;
        gap: 18px !important;
        row-gap: 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    html body header .menu-item,
    html body header .wp-block-navigation-item,
    html body .site-header .menu-item,
    html body .site-header .wp-block-navigation-item,
    html body #masthead .menu-item,
    html body #masthead .wp-block-navigation-item {
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html body header nav a,
    html body header .menu-item > a,
    html body header .wp-block-navigation-item__content,
    html body .site-header nav a,
    html body .site-header .menu-item > a,
    html body .site-header .wp-block-navigation-item__content,
    html body #masthead nav a,
    html body #masthead .menu-item > a,
    html body #masthead .wp-block-navigation-item__content {
        white-space: nowrap !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
        font-size: 14px !important;
        letter-spacing: 0 !important;
    }

    html body header .wp-block-search,
    html body header .search-form,
    html body header .search-toggle,
    html body header .header-search,
    html body .site-header .wp-block-search,
    html body .site-header .search-form,
    html body .site-header .search-toggle,
    html body .site-header .header-search,
    html body #masthead .wp-block-search,
    html body #masthead .search-form,
    html body #masthead .search-toggle,
    html body #masthead .header-search {
        flex: 0 0 auto !important;
        margin-left: 8px !important;
        position: relative !important;
        z-index: 80 !important;
    }
}

@media (min-width: 1025px) and (max-width: 1350px) {
    html body header .wp-block-group:has(nav),
    html body header .wp-block-group:has(.wp-block-navigation),
    html body .site-header .wp-block-group:has(nav),
    html body .site-header .wp-block-group:has(.wp-block-navigation),
    html body #masthead .wp-block-group:has(nav),
    html body #masthead .wp-block-group:has(.wp-block-navigation) {
        column-gap: 14px !important;
        gap: 14px !important;
    }

    html body header nav ul,
    html body header nav .menu,
    html body header .main-navigation ul,
    html body header .wp-block-navigation__container,
    html body .site-header nav ul,
    html body .site-header nav .menu,
    html body .site-header .main-navigation ul,
    html body .site-header .wp-block-navigation__container,
    html body #masthead nav ul,
    html body #masthead nav .menu,
    html body #masthead .main-navigation ul,
    html body #masthead .wp-block-navigation__container {
        column-gap: 12px !important;
        gap: 12px !important;
    }

    html body header nav,
    html body header .main-navigation,
    html body header .wp-block-navigation,
    html body .site-header nav,
    html body .site-header .main-navigation,
    html body .site-header .wp-block-navigation,
    html body #masthead nav,
    html body #masthead .main-navigation,
    html body #masthead .wp-block-navigation {
        margin-left: 16px !important;
        margin-right: 10px !important;
    }

    html body header nav a,
    html body header .menu-item > a,
    html body header .wp-block-navigation-item__content,
    html body .site-header nav a,
    html body .site-header .menu-item > a,
    html body .site-header .wp-block-navigation-item__content,
    html body #masthead nav a,
    html body #masthead .menu-item > a,
    html body #masthead .wp-block-navigation-item__content {
        font-size: 13px !important;
        padding-left: 1px !important;
        padding-right: 1px !important;
    }
}
