/*!
Theme Name: BlueQube Circuit
Theme URI: https://www.blueqube.net/
Author: Christopher
Author URI: https://www.blueqube.net/
Description: BlueQube Circuit (child theme of Glowing Blog, based on Darkness Blog) is a dark, cyan-accented theme built to match the BlueQube circuit-cube logo. Tuned for electronics/computer content with a glowing cyan accent in place of the original amber, and responsive fixes for header overlap and logo sizing baked in.
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 8.0
Tested up to: 7.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Template: glowing-blog
Text Domain: blueqube-circuit
Tags: custom-background, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, left-sidebar, right-sidebar, blog, one-column, portfolio, photography, theme-options, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.

BlueQube Circuit is a child theme of Glowing Blog, derived from Darkness Blog
by Adore Themes (https://adorethemes.com/), based on Underscores
https://underscores.me/, (C) 2012-2020 Automattic, Inc., GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/

*/

/* Root - BlueQube Circuit palette
   Swapped the original amber (#fab800) accent for an electric cyan that
   matches the glowing circuit-trace cube logo, and shifted the near-black
   backgrounds toward a deep blue-black instead of neutral gray-black.
   ========================================================================== */
	:root {
		--post-item-background: #0d1117;
		--body-background: #0a0e16;
		--primary-color: #2fd0ff;
		/* Toned down from pure white - softer on the eyes against the
		   near-black background, with a faint cool tint to tie into the
		   cyan accent rather than clashing with it. */
		--header-text-color: #c9d2da;
		--color-text: #c9d2da;
		--color-background: #fff;

		--glow-box-shadow-color: #000000;
		--glow-border-color: rgba(47, 208, 255, 0.25);

		/* Flashier display font for the site name (parent default was
		   plain serif 'Copse'); loaded via Google Fonts in functions.php. */
		--font-site-title: 'Orbitron', sans-serif;
	}

	.main-navigation ul.nav-menu {
		background: var(--post-item-background);
	}


a {
	color: var(--color-text);
}

a:visited {
	color: var(--color-text);
}

a:hover,
a:focus,
a:active {
	color: var(--primary-color);
}

.widget ol li,
.widget ul:not(.entry-meta) li {
	border-bottom: 1px solid rgba(47, 208, 255, 0.12);
}

.entry-content .wp-block-image figcaption{
	color: #cfcfcf;
}

/* Start Banner Section
--------------------------------------------- */
.banner-section .banner-section-wrapper.style-3 .slick-slide {
	padding: 5px;
}
.banner-section .banner-section-wrapper.style-3 .post-item {
	text-align: center;
	aspect-ratio: unset;
	border-radius: 15px;
	min-height: 510px;
	justify-content: flex-end;
}
.banner-section .banner-section-wrapper.style-3 .post-item .post-item-content{
	padding: 25px;
	max-width: 900px;
	margin-inline: auto;
}
.banner-section .banner-section-wrapper.style-3 .post-item .post-item-content .entry-meta,
.banner-section .banner-section-wrapper.style-3 .post-item .entry-cat .post-categories{
	justify-content: center;
}
.banner-section .banner-section-wrapper.style-3 .post-item .post-item-content .entry-title {
	font-size: var(--font-size-xl);
}
@media (max-width: 768px) {
	.banner-section .banner-section-wrapper.style-3 .post-item {
		min-height: 410px;
	}
	.banner-section .banner-section-wrapper.style-3 .post-item .post-item-content .entry-title {
		font-size: var(--font-size-lg);
	}
}
@media (max-width: 600px) {
	.banner-section .banner-section-wrapper.style-3 .post-item {
		min-height: 380px;
	}
	.banner-section .banner-section-wrapper.style-3 .post-item .post-item-content .entry-title {
		font-size: var(--font-size-md);
	}
}
/* End Banner Section
--------------------------------------------- */

/* Popular Section
--------------------------------------------- */
div#glowing_blog_popular_posts_section {
	display: none;
}

/* Override pagination CSS
--------------------------------------------- */
nav.navigation.pagination {
	display: block !important;
}

/* Preloader
--------------------------------------------- */
#loader {
	background-color: var(--body-background);
}

#preloader .pre-loader-7 {
	--c: no-repeat linear-gradient(#fff 0 0);
}

.comment div#respond,
.comment-content {
	margin-left: 70px;
	color: var(--color-text);
}

/* Post navigations
--------------------------------------------- */
.site-main .post-navigation, .site-main .posts-navigation {
	border-block: 1px solid var( --glow-border-color );
}

/* Pagination CSS
--------------------------------------------- */
nav.navigation.pagination .nav-links span, nav.navigation.pagination .nav-links a {
	border-color: var( --glow-border-color );
}

.post-item.overlay-post{
	border: none;
}

.newsletter-section .newsletter-section-wrapper .newsletter-form button[type="submit"],
.navigation-search .navigation-search-wrap .navigation-search-form .search-form input.search-submit,
.widget.widget_search .wp-block-search__inside-wrapper .wp-block-search__button{
	background-color: var(--primary-color);
}
.navigation-search .navigation-search-wrap .navigation-search-form .search-form label input:focus,
.widget.widget_search .wp-block-search__inside-wrapper .wp-block-search__input:focus,
.widget.widget_search .wp-block-search__inside-wrapper .wp-block-search__input::placeholder {
	color: #fff;
}

.grid-widget .post-item .post-item-image {
	background-color: #0a0e16;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="range"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="week"]:focus, input[type="time"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="color"]:focus, textarea:focus,
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea{
	color: #fff;
}

/* BlueQube Circuit additions
   --------------------------------------------- */

/* Fix: the floating/sticky header was fully transparent on the parent
   theme, letting scrolled content show through and overlap the logo/nav.
   Baked in here (rather than relying on per-theme Additional CSS) so it
   survives even if someone resets the Customizer's custom CSS field. */
.adore-header.fix-header {
	background-color: var(--post-item-background);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Keep the site logo at a sane header size regardless of the uploaded
   image file's native dimensions - the theme has no built-in constraint,
   it just inherits whatever width/height the attachment reports. */
.custom-logo-link .custom-logo {
	max-height: 90px;
	width: auto;
	height: auto;
}

/* Soft cyan ambient glow behind the logo, echoing the cube's own glow,
   so the mark feels lit from within rather than just sitting on the bar. */
.site-logo {
	position: relative;
}
.site-logo::before {
	content: "";
	position: absolute;
	inset: -14px;
	background: radial-gradient(circle, rgba(47, 208, 255, 0.35), transparent 70%);
	z-index: -1;
	pointer-events: none;
}

/* Tags/category pills and buttons get a subtle cyan glow instead of the
   flat amber fill, to tie them visually to the cube's neon trace lines. */
.post-categories a,
.entry-cat .post-categories a {
	box-shadow: 0 0 8px rgba(47, 208, 255, 0.35);
}

.newsletter-section .newsletter-section-wrapper .newsletter-form button[type="submit"]:hover,
.widget.widget_search .wp-block-search__inside-wrapper .wp-block-search__button:hover {
	box-shadow: 0 0 14px rgba(47, 208, 255, 0.6);
}

/* Site name + rotating tagline next to the logo
   --------------------------------------------- */
.site-branding {
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-branding .site-identity {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Site title: same cyan as the cube's glow, but translucent/glassy
   rather than solid, with a soft matching glow. Orbitron + uppercase +
   wide letter-spacing gives it some flare instead of reading as plain text. */
.site-branding .site-identity .site-title a {
	color: rgba(47, 208, 255, 0.72);
	text-shadow: 0 0 12px rgba(47, 208, 255, 0.45);
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: 900;
}

.site-branding .site-identity .site-title a:hover {
	color: rgba(47, 208, 255, 0.95);
}

/* Rotating tagline. Needs to actually be readable (previous version at
   0.5 opacity on a near-black background was too dim) - bright light
   cyan at high opacity, with a touch of glow rather than relying on
   transparency alone to feel "integrated." */
.site-tagline-rotator {
	margin: 4px 0 0 !important;
	font-size: 0.85rem;
	font-style: italic;
	color: #9fe8ff;
	text-shadow: 0 0 6px rgba(47, 208, 255, 0.5);
	opacity: 1;
	transition: opacity 0.4s ease;
	min-height: 1.1em;
}

.site-tagline-rotator.is-fading {
	opacity: 0;
}

@media (max-width: 600px) {
	.site-tagline-rotator {
		display: none;
	}

	/* The bold uppercase Orbitron treatment needs more room than the
	   parent's clamp() sizing gives it on narrow phones - it was
	   overflowing into the search icon area. Scale it down to fit. */
	.site-branding .site-identity .site-title {
		font-size: 1.05rem;
	}
	.site-branding .site-identity .site-title a {
		letter-spacing: 0.5px;
	}
}

/* Last.fm "Now Playing" / "Last Played" sidebar widget
   --------------------------------------------- */
.blueqube-lastfm-widget .widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.blueqube-lastfm-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--color-text);
	padding: 8px;
	border-radius: 8px;
	border: 1px solid var(--glow-border-color);
	background: var(--post-item-background);
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.blueqube-lastfm-link:hover {
	box-shadow: 0 0 12px rgba(47, 208, 255, 0.35);
	border-color: rgba(47, 208, 255, 0.5);
}

.blueqube-lastfm-art {
	width: 54px;
	height: 54px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.blueqube-lastfm-info {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-width: 0;
}

.blueqube-lastfm-track {
	font-weight: 700;
	font-size: 0.9rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--color-text);
}

.blueqube-lastfm-artist {
	font-size: 0.8rem;
	color: rgba(201, 210, 218, 0.7);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.blueqube-lastfm-widget.is-now-playing .blueqube-lastfm-link {
	border-color: rgba(47, 208, 255, 0.6);
	box-shadow: 0 0 10px rgba(47, 208, 255, 0.25);
}

/* Small animated equalizer bars shown only while something is actually
   playing right now, next to the "Now Playing" title. */
.blueqube-lastfm-eq {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 12px;
}

.blueqube-lastfm-eq span {
	width: 3px;
	background: var(--primary-color);
	border-radius: 1px;
	animation: blueqube-eq-bounce 0.9s ease-in-out infinite;
}

.blueqube-lastfm-eq span:nth-child(1) {
	animation-delay: 0s;
}
.blueqube-lastfm-eq span:nth-child(2) {
	animation-delay: 0.2s;
}
.blueqube-lastfm-eq span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes blueqube-eq-bounce {
	0%, 100% { height: 3px; }
	50% { height: 12px; }
}

/* About page
   --------------------------------------------- */
.about-intro p {
	font-size: 1.05rem;
	line-height: 1.7;
}

.about-section-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 2.2em;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--glow-border-color);
	color: var(--color-text);
}

.about-section-heading i {
	color: var(--primary-color);
	text-shadow: 0 0 10px rgba(47, 208, 255, 0.5);
}

.about-interests {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 1.2em 0 0;
	padding: 0;
}

.about-interests li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--glow-border-color);
	background: var(--post-item-background);
	font-size: 0.9rem;
	box-shadow: 0 0 8px rgba(47, 208, 255, 0.2);
}

.about-interests li i {
	color: var(--primary-color);
}

.about-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 1.2em;
}

.about-gallery-item {
	margin: 0;
	flex: 1 1 260px;
	max-width: 320px;
	border: 1px solid var(--glow-border-color);
	border-radius: 10px;
	overflow: hidden;
	background: var(--post-item-background);
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-gallery-item:hover {
	box-shadow: 0 0 14px rgba(47, 208, 255, 0.3);
	border-color: rgba(47, 208, 255, 0.5);
}

.about-gallery-item img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
}

.about-gallery-item figcaption {
	padding: 10px 14px;
	font-size: 0.85rem;
	color: rgba(201, 210, 218, 0.8);
	font-style: italic;
	text-align: center;
}

/* Keep the header and sidebar fixed in place - don't move/slide
   --------------------------------------------- */

/* The parent theme hides the fixed header on scroll-down and brings it
   back on scroll-up (body.floating-header toggling). Cancel that so the
   header just stays put, always visible, never slides away. */
body.floating-header .adore-header.fix-header {
	transform: translateY(0) !important;
}

/* The sidebar already has position:sticky from the parent theme, but
   with enough widgets stacked in it, it became taller than the main
   content column - sticky has nowhere to "stick" when its own container
   is the tallest thing on the page, so it just scrolled normally. Cap
   its height to the viewport and let it scroll internally instead, so
   it stays visually anchored in place no matter how much is in it. */
@media (min-width: 992px) {
	.theme-wrap #secondary {
		top: 158px;
		max-height: calc(100vh - 178px);
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: rgba(47, 208, 255, 0.4) transparent;
	}

	.theme-wrap #secondary::-webkit-scrollbar {
		width: 6px;
	}

	.theme-wrap #secondary::-webkit-scrollbar-thumb {
		background-color: rgba(47, 208, 255, 0.4);
		border-radius: 3px;
	}
}

/* The fixed header sits with a 10px gap from the very top of the
   viewport (part of its "floating pill" look) and that gap itself has
   no background - so scrolled content was visibly bleeding through it
   at the very top edge as you scrolled, making the "fixed" bar look
   porous/broken. Seal that strip with a solid backdrop tied directly
   to the header's own fixed state (its ::before), rather than an
   unconditional fixed element - the header only carries the
   "fix-header" class while you're actually scrolled down; at the very
   top of the page it reverts to a normal in-flow element with no
   class, and an always-on fixed backdrop would paint over that
   non-fixed header and make it look like the whole bar vanished. */
.adore-header.fix-header {
	position: fixed;
}

.adore-header.fix-header::before {
	content: "";
	position: absolute;
	top: -10px;
	left: 0;
	width: 100%;
	height: calc(100% + 10px);
	background: var(--post-item-background);
	z-index: -1;
}

