/*
Theme Name: GamerCubic Premium Child
Theme URI: https://gamercubic.com/
Description: Child theme for GamerCubic Premium. Use this theme for custom CSS, layout tweaks, snippets, and future edits without touching the parent theme.
Author: GamerCubic
Author URI: https://gamercubic.com/
Template: gamercubic
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamercubic-child
Tags: blog, news, entertainment, custom-logo, custom-menu, featured-images, wide-blocks
*/

/*
  Emergency fallback: this imports the parent CSS even if a cache/plugin loads
  the child stylesheet before the fixed enqueue code below runs.
*/
@import url('../gamercubic/style.css');

/*
  Add your custom CSS below this line.
  The parent GamerCubic Premium theme remains untouched.
*/


/*
  v1.2: Remove sidebar on WordPress Pages only.
  Posts, categories, archives, and search pages keep their sidebars.
*/
body.page .gc-page-fullwidth-layout,
body.page main.gc-page-no-sidebar .gc-content-layout {
  display: block;
  grid-template-columns: minmax(0, 1fr) !important;
}

body.page main.gc-page-no-sidebar .gc-page-fullwidth-panel {
  width: 100%;
  max-width: 100%;
}

body.page main.gc-page-no-sidebar .gc-sidebar-panel {
  display: none !important;
}


/*
  v1.3: Page-only readable full-width content.
  WordPress Pages use a centered max-width of 1280px while posts/archives keep the parent layout.
*/
body.page main.gc-page-no-sidebar .gc-container,
body.page main.gc-page-no-sidebar .gc-page-fullwidth-layout {
  width: min(100% - 40px, 1280px) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page main.gc-page-no-sidebar .gc-main-panel,
body.page main.gc-page-no-sidebar .gc-page-fullwidth-panel,
body.page main.gc-page-no-sidebar .gc-content {
  max-width: 1280px !important;
}

@media (max-width: 768px) {
  body.page main.gc-page-no-sidebar .gc-container,
  body.page main.gc-page-no-sidebar .gc-page-fullwidth-layout {
    width: min(100% - 28px, 1280px) !important;
  }
}

@media (max-width: 480px) {
  body.page main.gc-page-no-sidebar .gc-container,
  body.page main.gc-page-no-sidebar .gc-page-fullwidth-layout {
    width: min(100% - 20px, 1280px) !important;
  }
}


/*
  v1.4: Make page/tool CTA button text clearly visible.
  Fixes "Open Tool" button text blending into cyan/green gradient buttons.
*/
body.page .gc-content .gc-btn,
body.page .gc-content a.gc-btn,
body.page .gc-content button.gc-btn,
body.page .gc-content .wp-block-button__link,
body.page .gc-content .wp-element-button,
body.page .gc-main-panel .gc-btn,
body.page .gc-main-panel a.gc-btn,
body.page .gc-main-panel button.gc-btn,
body.page .gc-main-panel .wp-block-button__link,
body.page .gc-main-panel .wp-element-button,
body.page .gc-tool-card .gc-btn,
body.page .gc-tool-card a.gc-btn,
body.page .gc-tools-card .gc-btn,
body.page .gc-tools-card a.gc-btn,
body.page .tool-card .gc-btn,
body.page .tool-card a.gc-btn,
body.page a.open-tool,
body.page a.open-tool-button,
body.page .open-tool a,
body.page .open-tool-button a {
  color: #06101a !important;
  -webkit-text-fill-color: #06101a !important;
  text-shadow: none !important;
  opacity: 1 !important;
  font-weight: 900 !important;
}

body.page .gc-content .gc-btn:hover,
body.page .gc-content a.gc-btn:hover,
body.page .gc-content button.gc-btn:hover,
body.page .gc-content .wp-block-button__link:hover,
body.page .gc-content .wp-element-button:hover,
body.page .gc-main-panel .gc-btn:hover,
body.page .gc-main-panel a.gc-btn:hover,
body.page .gc-main-panel button.gc-btn:hover,
body.page .gc-main-panel .wp-block-button__link:hover,
body.page .gc-main-panel .wp-element-button:hover {
  color: #02070b !important;
  -webkit-text-fill-color: #02070b !important;
  filter: brightness(1.08);
}

body.page .gc-content .gc-btn svg,
body.page .gc-main-panel .gc-btn svg,
body.page .gc-content .wp-block-button__link svg,
body.page .gc-main-panel .wp-block-button__link svg {
  color: #06101a !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}


/*
  v1.5: Force dark readable CTA text on tool cards/buttons.
  Some card buttons were inheriting transparent/light text styles from parent components.
*/
body.page a[class*="btn"],
body.page a[class*="button"],
body.page a[class*="tool"],
body.page button[class*="btn"],
body.page button[class*="button"],
body.page .gc-card a,
body.page .gc-post-card a,
body.page .gc-tool-card a,
body.page .gc-tools-card a,
body.page .tool-card a,
body.page .wp-block-button__link,
body.page .wp-element-button {
  text-decoration: none;
}

body.page a[class*="btn"],
body.page a[class*="button"],
body.page a[class*="tool"],
body.page button[class*="btn"],
body.page button[class*="button"],
body.page .gc-content .gc-btn,
body.page .gc-main-panel .gc-btn,
body.page .gc-card .gc-btn,
body.page .gc-card a[class*="btn"],
body.page .gc-post-card a[class*="btn"],
body.page .gc-tool-card a[class*="btn"],
body.page .gc-tools-card a[class*="btn"],
body.page .tool-card a[class*="btn"],
body.page .gc-card a[class*="tool"],
body.page .gc-post-card a[class*="tool"],
body.page .gc-tool-card a[class*="tool"],
body.page .gc-tools-card a[class*="tool"],
body.page .tool-card a[class*="tool"],
body.page .open-tool,
body.page .open-tool-button,
body.page .open-tool a,
body.page .open-tool-button a,
body.page .wp-block-button__link,
body.page .wp-element-button {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  text-fill-color: #000000 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
}

body.page a[class*="btn"] *,
body.page a[class*="button"] *,
body.page a[class*="tool"] *,
body.page button[class*="btn"] *,
body.page button[class*="button"] *,
body.page .gc-content .gc-btn *,
body.page .gc-main-panel .gc-btn *,
body.page .gc-card .gc-btn *,
body.page .gc-card a[class*="btn"] *,
body.page .gc-post-card a[class*="btn"] *,
body.page .gc-tool-card a[class*="btn"] *,
body.page .gc-tools-card a[class*="btn"] *,
body.page .tool-card a[class*="btn"] *,
body.page .gc-card a[class*="tool"] *,
body.page .gc-post-card a[class*="tool"] *,
body.page .gc-tool-card a[class*="tool"] *,
body.page .gc-tools-card a[class*="tool"] *,
body.page .tool-card a[class*="tool"] *,
body.page .open-tool *,
body.page .open-tool-button *,
body.page .wp-block-button__link *,
body.page .wp-element-button * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  fill: #000000 !important;
  stroke: #000000 !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
