/*
Theme Name:   GeneratePress Child
Theme URI:    https://generatepress.com/
Description:  Custom child theme for GeneratePress. All modifications should be done here, not in the parent theme.
Author:       Jeet
Author URI:
Template:     generatepress
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         responsive-layout, accessibility-ready, custom
Text Domain:  generatepress-child
*/

/* =========================================
   Custom CSS yahan likhein
   Parent theme ki CSS automatically load hogi.
   ========================================= */


/* =========================================
   APP-STYLE BOTTOM NAVIGATION
   iOS / Material inspired — frosted glass,
   system font, active pill indicator.
   ========================================= */

.gpc-bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: none; /* default hidden — mobile media query me show */
	align-items: stretch;
	justify-content: space-around;

	/* Frosted glass background (iOS-style) */
	background: var(--gpc-bn-bg-blur, rgba(255, 255, 255, 0.82));
	-webkit-backdrop-filter: saturate(180%) blur(22px);
	backdrop-filter: saturate(180%) blur(22px);

	/* Subtle hairline border + soft shadow */
	border-top: 0.5px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);

	z-index: 9999;
	padding: 8px 4px calc(8px + env(safe-area-inset-bottom));

	/* App-style system font stack */
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
		Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Browser jisme backdrop-filter support nahi hai — solid bg fallback */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.gpc-bottom-nav {
		background: var(--gpc-bn-bg, #ffffff);
	}
}

/* Mobile par by default dikhega */
@media (max-width: 768px) {
	.gpc-bottom-nav {
		display: flex;
	}
	body.has-gpc-bottom-nav {
		padding-bottom: 76px;
	}
}

/* Agar customizer me desktop bhi enable hai */
.gpc-bottom-nav.gpc-bn-show-desktop {
	display: flex;
}
body.has-gpc-bottom-nav-desktop {
	padding-bottom: 76px;
}

.gpc-bn-item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 4px 2px;

	color: var(--gpc-bn-color, #8a8a8e); /* neutral gray, app-like */
	text-decoration: none;
	font-size: 10.5px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.15px;

	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease;
	position: relative;
}

.gpc-bn-item:hover,
.gpc-bn-item:focus,
.gpc-bn-item.is-active {
	color: var(--gpc-bn-active, #007aff);
	text-decoration: none;
	outline: none;
}

/* Tap feel — subtle press */
.gpc-bn-item:active .gpc-bn-icon {
	transform: scale(0.9);
}

/* Active pill indicator — Material 3 style background behind icon */
.gpc-bn-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 30px;
	border-radius: 16px;
	transition: background-color 0.25s ease,
		transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gpc-bn-item.is-active .gpc-bn-icon {
	background: var(--gpc-bn-active-soft, rgba(0, 122, 255, 0.13));
}

.gpc-bn-item.is-active .gpc-bn-icon svg {
	transform: scale(1.06);
}

.gpc-bn-icon svg {
	width: 24px;
	height: 24px;
	display: block;
	stroke-width: 1.9;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gpc-bn-label {
	font-weight: 600;
	text-align: center;
	letter-spacing: 0.1px;
	font-size: 10.5px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Active label slightly bolder */
.gpc-bn-item.is-active .gpc-bn-label {
	font-weight: 700;
}

/* Dark mode support — agar user system par dark mode use karta hai */
@media (prefers-color-scheme: dark) {
	.gpc-bottom-nav {
		background: var(--gpc-bn-bg-blur, rgba(28, 28, 30, 0.78));
		border-top-color: rgba(255, 255, 255, 0.08);
		box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
	}
	@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
		.gpc-bottom-nav {
			background: var(--gpc-bn-bg, #1c1c1e);
		}
	}
}

