/*
Theme Name: Voilà Blog
Theme URI: https://blog.voila.fun
Description: Voilà branded child theme based on Twenty Twenty-Five. Matches the voila.fun website design system.
Author: Voilà
Author URI: https://voila.fun
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: voila-blog
*/

/* ========== Global ========== */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ========== Header / Navigation ========== */

.voila-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid #E2E8F0;
	transition: box-shadow 0.3s ease;
}

.voila-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 32px);
	height: 72px;
}

.voila-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.voila-logo-mark {
	width: 40px;
	height: 40px;
	background: #1E5DAC;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	transform: rotate(3deg);
	flex-shrink: 0;
}

.voila-logo-text {
	font-weight: 800;
	font-size: 24px;
	letter-spacing: -0.02em;
	color: #0F172A;
}

.voila-header-nav {
	display: flex;
	align-items: center;
	gap: 24px;
}

.voila-header-nav a {
	color: #475569;
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	transition: color 0.2s;
}

.voila-header-nav a:hover {
	color: #1E5DAC;
}

.voila-btn-outline {
	border: 2px solid #1E5DAC;
	color: #1E5DAC !important;
	padding: 8px 20px;
	border-radius: 9999px;
	font-weight: 600 !important;
	transition: background 0.2s, color 0.2s;
}

.voila-btn-outline:hover {
	background: rgba(30, 93, 172, 0.05);
}

.voila-btn-primary {
	background: #1E5DAC;
	color: #fff !important;
	padding: 8px 20px;
	border-radius: 9999px;
	font-weight: 600 !important;
	box-shadow: 0 4px 14px rgba(30, 93, 172, 0.25);
	transition: background 0.2s, box-shadow 0.2s;
}

.voila-btn-primary:hover {
	background: #4a8add;
	box-shadow: 0 6px 20px rgba(30, 93, 172, 0.35);
}

/* ========== Search bar in header ========== */

.voila-header-search {
	flex: 1;
	max-width: 420px;
	margin: 0 24px;
}

.voila-search-form {
	position: relative;
	display: flex;
	align-items: center;
}

.voila-search-icon {
	position: absolute;
	left: 14px;
	color: #94A3B8;
	pointer-events: none;
}

.voila-search-input {
	width: 100%;
	padding: 10px 16px 10px 42px;
	border: 1px solid #E2E8F0;
	border-radius: 9999px;
	font-size: 15px;
	background: #F8FAFC;
	color: #0F172A;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.voila-search-input:focus {
	border-color: #1E5DAC;
	box-shadow: 0 0 0 3px rgba(30, 93, 172, 0.12);
}

.voila-search-input::placeholder {
	color: #94A3B8;
}

/* Mobile nav toggle */
.voila-mobile-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #475569;
	padding: 8px;
}

.voila-header-mobile {
	display: none;
}

.voila-header-mobile.voila-mobile-open {
	display: block;
	padding: 12px clamp(16px, 4vw, 32px) 20px;
	border-top: 1px solid #E2E8F0;
}

@media (max-width: 768px) {
	.voila-header-nav,
	.voila-header-search {
		display: none;
	}
	.voila-mobile-toggle {
		display: block;
	}
}

/* ========== Footer ========== */

.voila-footer {
	background: #F8FAFC;
	border-top: 1px solid #E2E8F0;
	padding: 64px 0 32px;
}

.voila-footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 32px);
}

.voila-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 48px;
}

@media (max-width: 768px) {
	.voila-footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.voila-footer-about p {
	color: #475569;
	font-size: 14px;
	line-height: 1.6;
	margin-top: 12px;
}

.voila-footer-col h4 {
	font-weight: 700;
	color: #0F172A;
	margin-bottom: 16px;
	font-size: 15px;
}

.voila-footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.voila-footer-col li {
	margin-bottom: 8px;
}

.voila-footer-col a {
	color: #475569;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
}

.voila-footer-col a:hover {
	color: #1E5DAC;
}

.voila-footer-bottom {
	border-top: 1px solid #E2E8F0;
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.voila-footer-bottom-left {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #475569;
}

.voila-footer-bottom-left .voila-logo-mark {
	width: 24px;
	height: 24px;
	font-size: 12px;
	border-radius: 6px;
	transform: none;
}

.voila-footer-bottom-right {
	font-size: 14px;
	color: #475569;
}

/* ========== Blog-specific styles ========== */

/* Post cards on archive/home */
.wp-block-post {
	border-radius: 16px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.wp-block-post:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.wp-block-post-featured-image img {
	border-radius: 12px;
}

/* Tag/category pills */
.wp-block-post-terms a {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 13px;
	color: #1E5DAC;
	text-decoration: none;
	transition: background 0.2s;
}

.wp-block-post-terms a:hover {
	background: #1E5DAC;
	color: #fff;
	border-color: #1E5DAC;
}

/* Pagination */
.wp-block-query-pagination a {
	border-radius: 9999px;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
	background: #CBD5E1;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #94A3B8;
}
