/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra child theme with a sticky header, last-updated post date, estimated reading time, a magazine-style split navigation (categories on the left, pages on the right), and a search bar above the header — inspired by Wired.com's layout.
Author: Your Name
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* ==========================================================================
   1. Sticky header
   Astra's own "Sticky Header" toggle (Customizer > Header Builder > Primary
   Header > Sticky Header) still needs to be switched on. This CSS backs it
   up and adds a shrink/shadow effect once the page has scrolled.
   ========================================================================== */
#masthead {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #fff;
	transition: box-shadow 0.25s ease;
}

#masthead.astra-child-scrolled {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#masthead.astra-child-scrolled .main-header-bar {
	min-height: 60px;
	transition: min-height 0.25s ease;
}

/* ==========================================================================
   2. Search bar above the header
   ========================================================================== */
.astra-child-top-search-bar {
	background: #f7f7f7;
	border-bottom: 1px solid #e5e5e5;
	padding: 6px 0;
}

.astra-child-top-search-inner {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.astra-child-top-search-inner .search-form {
	display: flex;
	align-items: center;
	max-width: 260px;
	width: 100%;
}

.astra-child-top-search-inner .search-field {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 3px 0 0 3px;
	padding: 6px 10px;
	font-size: 13px;
}

.astra-child-top-search-inner .search-submit {
	border-radius: 0 3px 3px 0;
	background: #111;
	color: #fff;
	border: none;
	padding: 6px 14px;
	cursor: pointer;
}

/* ==========================================================================
   3. Secondary nav row — categories (left) / pages (right), Wired-style
   ========================================================================== */
.astra-child-secondary-nav {
	background: #fff;
	border-top: 3px solid #000;
	border-bottom: 1px solid #e5e5e5;
}

.astra-child-secondary-nav-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.astra-child-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 22px;
}

.astra-child-menu li a {
	display: inline-block;
	padding: 12px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.astra-child-menu li a:hover,
.astra-child-menu li a:focus {
	border-bottom-color: #e2231a;
	color: #e2231a;
}

.astra-child-menu-right li a {
	font-weight: 500;
}

/* ==========================================================================
   4. Reading time / last-updated badges (single post meta)
   ========================================================================== */
.astra-child-meta-extras {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 6px;
	font-size: 13px;
	color: #666;
}

.astra-child-meta-extras .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
	vertical-align: text-bottom;
	margin-right: 3px;
}

.astra-child-reading-time-badge {
	display: inline-block;
	margin-left: 10px;
	font-size: 12px;
	color: #888;
}

/* ==========================================================================
   5. Responsive
   ========================================================================== */
@media (max-width: 768px) {
	.astra-child-secondary-nav-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.astra-child-menu {
		flex-wrap: wrap;
		gap: 14px;
	}

	.astra-child-top-search-inner {
		justify-content: center;
	}
}

/* ==========================================================================
   6. Logo / Site Title — Bold sans-serif (Option 5)
   ========================================================================== */

/* Hide the default Astra site title text so we can restyle it */
.site-title,
.ast-site-title {
	font-family: 'Arial Black', Arial, sans-serif !important;
	font-size: 28px !important;
	font-weight: 900 !important;
	letter-spacing: 1px !important;
	color: #111 !important;
	text-transform: none !important;
	line-height: 1.1 !important;
}

.site-title a,
.ast-site-title a {
	color: #111 !important;
	text-decoration: none !important;
}

.site-title a:hover,
.ast-site-title a:hover {
	color: #e2231a !important;
	text-decoration: none !important;
}

/* Tagline under the logo */
.site-description,
.ast-site-description {
	font-family: Arial, sans-serif !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	letter-spacing: 5px !important;
	text-transform: uppercase !important;
	color: #888 !important;
	margin-top: 2px !important;
}

/* If using an image logo, constrain its height */
.ast-logo-img,
.custom-logo {
	max-height: 50px !important;
	width: auto !important;
}

/* Site branding wrapper vertical alignment */
.ast-site-identity {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
}
