/*
 Theme Name: CryptoMegaphone Child
 Theme URI: https://cryptomegaphone.com
 Description: Child theme for CryptoMegaphone based on GeneratePress
 Author: CryptoMegaphone
 Author URI: https://cryptomegaphone.com
 Template: generatepress
 Version: 1.0.0
*/

/* Load child theme custom CSS */
.inside-header {
    padding: 3px 40px;
}
/* Begin Dark Mode*/
/* Light mode uses dark SVG logo */
body.light-mode img.header-image.is-logo-image {
    content: url('https://cryptomegaphone.com/wp-content/uploads/2025/11/logo.svg')!important;
}

/* Dark mode uses white SVG logo */
body.dark-mode img.header-image.is-logo-image {
    content: url('https://cryptomegaphone.com/wp-content/uploads/2025/11/logo_l.svg')!important;
}
/* Light mode — icon is your logo color */
body.light-mode #mobile-menu-control-wrapper button {
    color: #1b1f1d;
}
body.dark-mode #mobile-menu-control-wrapper button {
    color: #ffffff;
}
.menu-bar-item .gp-icon {
	margin-right: -7px;
}

/* Toggle button layout */
#darkToggleMobile {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#darkToggleDesktop {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Dark Mode – Global background + text */
body.dark-mode,
body.dark-mode .site,
body.dark-mode .site-content {
    background-color: #1E2127 !important;
    color: #ffffff !important;
}

/* Header */
body.dark-mode .site-header,
body.dark-mode .main-navigation,
body.dark-mode .inside-header {
    background-color: #111317 !important;
}

/* Navigation links */
body.dark-mode .main-navigation a {
    color: #ffffff !important;
}

/* Navigation links hover */
body.dark-mode .main-navigation a:hover {
    color: #dcdcdc !important;
}

/* Article backgrounds */
body.dark-mode .inside-article,
body.dark-mode .entry-content {
    background-color: #0D0F12 !important;
    color: #ffffff !important;
}

/* Widgets / sidebar */
body.dark-mode .widget {
    background-color: #111317 !important;
    color: #ffffff !important;
}

/* Site footer */
body.dark-mode .site-footer {
    background-color: #111317 !important;
    color: #ffffff !important;
}
body.dark-mode .site-info {
    background-color: #111317;
}
body.dark-mode .main-navigation ul ul {
    background-color: #111317!important;
	box-shadow: none;
}
body.light-mode .main-navigation ul ul {
    background-color: #ffffff!important;
	box-shadow: none;
}
/* Remove unwanted bright borders */
body.dark-mode * {
    border-color: #1E2127 !important;
}
/* Style Footer Menu */
body.dark-mode .widget ul li a {
	font-size: .875rem;
	font-weight: 400;
    line-height: 1.25rem;
	--tw-text-opacity: 1;
    color: #e1e8ea;
	text-decoration: none;
}
body.light-mode .widget ul li a {
	font-size: .875rem;
	font-weight: 400;
    line-height: 1.25rem;
	--tw-text-opacity: 1;
    color: #111317;
	text-decoration: none;
}
body.dark-mode .footer-widgets {
    background-color: #111317!important;
}
.widget ul li {
	margin-bottom: .4em;
}
.footer-widgets .menu a:hover {
    color: #1760fa;
}
/* Icons default size */
body.light-mode .theme-icon {
    width: 24px;
    height: 24px;
    display: none; 
}
body.dark-mode .theme-icon {
    width: 21px;
    height: 21px;
    display: none; 
}
/* Light mode colors */
body.light-mode #icon-moon { 
    display: block;
    color: #1B1F1D;
	margin-right:-10px;
}
body.light-mode #icon-sun { 
    display: none;
}
/* Dark mode colors */
body.dark-mode #icon-moon { 
    display: none;
}

body.dark-mode #icon-sun { 
    display: block;
	margin-right:-10px;
    color: #FFFFFF;
}
/*End Dark Mode*/
#mobile-menu-control-wrapper button,
#mobile-menu-control-wrapper button:focus,
#mobile-menu-control-wrapper button:hover {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
.site-main .inside-article {
    border-radius: 10px;
    overflow: hidden;
}
/* Remove all blue shapes / highlights / outlines on Android buttons */
* {
  -webkit-tap-highlight-color: transparent !important;
}
.footer-widgets .sub-menu {
    margin-left: 0;
}

.footer-widgets .sub-menu li {
    padding-left: 0;
}
.footer-widgets .widget-title {
	font-size: .875rem;
    line-height: 1.25rem;
	margin-bottom: .7rem;
}
body.dark-mode .site-footer,
body.dark-mode .footer-widgets-container,
body.dark-mode .inside-footer-widgets,
body.dark-mode .footer-bar,
body.dark-mode .site-info {
    background-color: #111317 !important;
}
@media (max-width: 768px) {
.site-logo img {
        max-height: 36px !important;
}
.site-header.has-inline-mobile-toggle .inside-header {
        padding-top: 3px !important;
        padding-bottom: 3px !important;
}
.grid-container {
    padding-left: 10px;
    padding-right: 10px;
}
.footer-widgets-container {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}
body.dark-mode .widget ul li a {
	font-size: .85rem;
}
body.light-mode .widget ul li a {
	font-size: .85rem;
}   
}