/*
Theme Name: BlogHash Child
Theme URI: https://peregrine-themes.com/bloghash
Description: A child theme for BlogHash
Author: Your Name
Author URI: https://example.com
Template: bloghash
Version: 1.0.0
Text Domain: bloghash-child
Domain Path: /languages
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Ensure derived theme color variables exist and follow the Customizer primary color. */
@supports (color: color-mix(in srgb, #000 50%, #fff)) {
	:root {
		--bloghash-primary_15: color-mix(in srgb, var(--bloghash-primary) 15%, transparent);
		--bloghash-primary_80: color-mix(in srgb, var(--bloghash-primary) 80%, var(--bloghash-white));
	}
}

/* Improve Font Awesome loading (avoid FOIT). */
@font-face{
	font-family:"Font Awesome 5 Brands";
	font-style:normal;
	font-weight:400;
	font-display:swap;
	src:url("https://pro.fontawesome.com/releases/v5.15.4/webfonts/fa-brands-400.woff2") format("woff2");
}
@font-face{
	font-family:"Font Awesome 5 Free";
	font-style:normal;
	font-weight:400;
	font-display:swap;
	src:url("https://pro.fontawesome.com/releases/v5.15.4/webfonts/fa-regular-400.woff2") format("woff2");
}
@font-face{
	font-family:"Font Awesome 5 Free";
	font-style:normal;
	font-weight:900;
	font-display:swap;
	src:url("https://pro.fontawesome.com/releases/v5.15.4/webfonts/fa-solid-900.woff2") format("woff2");
}

/* Hide the BlogHash watermark */
a.imprint {
	display: none !important;
}

/* Hide author biography section on single posts */
.author-box {
	display: none !important;
}

/* Contact Buttons Styling */
.entry-meta-elements .post-contact-call,
.entry-meta-elements .post-contact-whatsapp {
	display: inline-block;
	margin-right: 15px;
	margin-bottom: 10px;
}

.contact-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	color: white !important;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	animation: float 3s ease-in-out infinite;
}

.call-button {
	background-color: #007bff;
	color: white !important;
	border: 1px solid #007bff;
	box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.call-button:hover {
	background-color: #0056b3;
	border-color: #0056b3;
	color: white !important;
	transform: scale(1.1) translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
	animation: glow-blue 0.6s ease;
}

.whatsapp-button {
	background-color: #25d366;
	color: white !important;
	border: 1px solid #25d366;
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover {
	background-color: #1fa855;
	border-color: #1fa855;
	color: white !important;
	transform: scale(1.1) translateY(-2px);
	box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
	animation: glow-green 0.6s ease;
}

/* Shine/Shimmer Effect */
.contact-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	animation: shine 3s infinite;
}

.contact-button:hover::before {
	animation: shine 0.6s infinite;
}

.contact-button .bloghash-icon {
	width: 18px;
	height: 18px;
	fill: white !important;
	color: white !important;
	animation: pulse 2s infinite, swing 3s ease-in-out infinite;
	position: relative;
	z-index: 1;
}

.contact-button:hover .bloghash-icon {
	animation: bounce 0.6s ease, swing 0.8s ease;
}

.contact-text {
	display: inline;
	color: white !important;
	position: relative;
	z-index: 1;
	font-weight: 600;
}

/* Animations */
@keyframes float {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-3px);
	}
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.8;
		transform: scale(1.1);
	}
}

@keyframes bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-5px);
	}
}

@keyframes swing {
	0%, 100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(3deg);
	}
	75% {
		transform: rotate(-3deg);
	}
}

@keyframes shine {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

@keyframes glow-blue {
	0%, 100% {
		box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
	}
	50% {
		box-shadow: 0 8px 40px rgba(0, 123, 255, 0.9);
	}
}

@keyframes glow-green {
	0%, 100% {
		box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
	}
	50% {
		box-shadow: 0 8px 40px rgba(37, 211, 102, 0.9);
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.contact-button {
		padding: 6px 12px;
		font-size: 13px;
	}
	
	.contact-button .bloghash-icon {
		width: 16px;
		height: 16px;
	}
}

/* Theme-colored pagination */
.bloghash-pagination {
	margin-top: 4rem;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.bloghash-pagination .navigation .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.bloghash-pagination > .page-numbers,
.bloghash-pagination .navigation .nav-links .page-numbers {
	min-width: 4.8rem;
	min-height: 4.8rem;
	padding: 0 1.6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border: 0.1rem solid var(--bloghash-primary_15);
	border-radius: 999px;
	background: var(--bloghash-primary_15);
	color: var(--bloghash-primary);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: none;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.bloghash-pagination > .page-numbers:not(.current):not(.dots):hover,
.bloghash-pagination > .page-numbers:not(.current):not(.dots):focus,
.bloghash-pagination .navigation .nav-links .page-numbers:not(.current):not(.dots):hover,
.bloghash-pagination .navigation .nav-links .page-numbers:not(.current):not(.dots):focus {
	background: var(--bloghash-primary);
	border-color: var(--bloghash-primary);
	color: var(--bloghash-white);
	text-decoration: none;
}

.bloghash-pagination > .page-numbers.current,
.bloghash-pagination .navigation .nav-links .page-numbers.current {
	background: var(--bloghash-primary);
	border-color: var(--bloghash-primary);
	color: var(--bloghash-white);
	box-shadow: none;
}

.bloghash-pagination > .page-numbers.dots,
.bloghash-pagination .navigation .nav-links .page-numbers.dots {
	min-width: auto;
	padding: 0 0.8rem;
	border-color: transparent;
	background: transparent;
	box-shadow: none;
	color: var(--bloghash-primary);
	opacity: 0.65;
}

.bloghash-pagination > .page-numbers.next,
.bloghash-pagination > .page-numbers.prev,
.bloghash-pagination .navigation .nav-links .page-numbers.next,
.bloghash-pagination .navigation .nav-links .page-numbers.prev {
	min-width: 5.4rem;
	padding: 0 1.4rem;
	background: linear-gradient(135deg, var(--bloghash-primary) 0%, #ff7aa6 100%);
	border-color: transparent;
	color: var(--bloghash-white);
	box-shadow: none;
}

.bloghash-pagination > .page-numbers.next:hover,
.bloghash-pagination > .page-numbers.prev:hover,
.bloghash-pagination > .page-numbers.next:focus,
.bloghash-pagination > .page-numbers.prev:focus,
.bloghash-pagination .navigation .nav-links .page-numbers.next:hover,
.bloghash-pagination .navigation .nav-links .page-numbers.prev:hover,
.bloghash-pagination .navigation .nav-links .page-numbers.next:focus,
.bloghash-pagination .navigation .nav-links .page-numbers.prev:focus {
	background: var(--bloghash-primary);
	border-color: var(--bloghash-primary);
	color: var(--bloghash-white);
	box-shadow: none;
}

.bloghash-pagination > .page-numbers svg,
.bloghash-pagination > .bloghash-animate-arrow svg,
.bloghash-pagination .navigation .nav-links .page-numbers svg,
.bloghash-pagination .navigation .nav-links .bloghash-animate-arrow svg {
	fill: currentColor;
}

.bloghash-pagination > .page-numbers .bloghash-animate-arrow,
.bloghash-pagination > .bloghash-animate-arrow,
.bloghash-pagination .navigation .nav-links .bloghash-animate-arrow {
	width: 2rem;
	height: 2rem;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	position: relative;
}

.bloghash-pagination > .page-numbers.next .bloghash-animate-arrow,
.bloghash-pagination > .page-numbers.prev .bloghash-animate-arrow,
.bloghash-pagination .navigation .nav-links .page-numbers.next .bloghash-animate-arrow,
.bloghash-pagination .navigation .nav-links .page-numbers.prev .bloghash-animate-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bloghash-pagination > .page-numbers.next .bloghash-animate-arrow::before,
.bloghash-pagination > .page-numbers.prev .bloghash-animate-arrow::before,
.bloghash-pagination .navigation .nav-links .page-numbers.next .bloghash-animate-arrow::before,
.bloghash-pagination .navigation .nav-links .page-numbers.prev .bloghash-animate-arrow::before {
	display: block;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1;
	color: currentColor;
}

.bloghash-pagination > .page-numbers.next .bloghash-animate-arrow::before,
.bloghash-pagination .navigation .nav-links .page-numbers.next .bloghash-animate-arrow::before {
	content: "\2192";
}

.bloghash-pagination > .page-numbers.prev .bloghash-animate-arrow::before,
.bloghash-pagination .navigation .nav-links .page-numbers.prev .bloghash-animate-arrow::before {
	content: "\2190";
}

.bloghash-pagination > .page-numbers.next .bloghash-animate-arrow svg,
.bloghash-pagination > .page-numbers.prev .bloghash-animate-arrow svg,
.bloghash-pagination .navigation .nav-links .page-numbers.next .bloghash-animate-arrow svg,
.bloghash-pagination .navigation .nav-links .page-numbers.prev .bloghash-animate-arrow svg {
	width: 2rem;
	height: 2rem;
}

@media (max-width: 767px) {
	.bloghash-pagination .navigation .nav-links {
		gap: 0.7rem;
	}

	.bloghash-pagination {
		gap: 0.7rem;
	}

	.bloghash-pagination > .page-numbers,
	.bloghash-pagination .navigation .nav-links .page-numbers {
		min-width: 4.2rem;
		min-height: 4.2rem;
		padding: 0 1.2rem;
		font-size: 1.4rem;
	}
}

/* Remove underline from pagination and related controls */
.content-area a.page-numbers,
.content-area a.page-numbers:hover,
.content-area a.page-numbers:focus,
.content-area .bloghash-entry a.page-numbers,
.content-area .bloghash-entry a.page-numbers:hover,
.content-area .bloghash-entry a.page-numbers:focus,
.bloghash-pagination a,
.bloghash-pagination a:hover,
.bloghash-pagination a:focus,
.using-keyboard .content-area a.page-numbers:focus,
.using-keyboard .content-area .bloghash-entry a.page-numbers:focus,
.using-keyboard .bloghash-pagination a:focus {
	text-decoration: none;
	text-underline-offset: 0;
}

/* Add your custom CSS here */
