/*
Theme Name: Popout Theme
Theme URI: https://example.com/popout-theme
Author: Your Name
Author URI: https://example.com
Description: A custom WordPress theme for Popout
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: popout-theme
Tags: custom, responsive, modern
*/

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	line-height: 1.6;
	color: var(--popout-text-color, #333);
	background-color: var(--popout-background-color, #fff);
	font-size: 16px;
	padding-top: 80px;
}

/* Adjust body padding when admin bar is present */
.admin-bar {
	padding-top: 112px;
}

@media screen and (max-width: 782px) {
	.admin-bar {
		padding-top: 126px;
	}
}

/* Typography */
p {
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	line-height: 1.2;
	color: var(--popout-text-color, #333);
	margin-bottom: 0.75rem;
	margin-top: 0;
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

h2 {
	font-size: 2rem;
	margin-bottom: 0.875rem;
}

h3 {
	font-size: 1.75rem;
	margin-bottom: 0.875rem;
}

h4 {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

h5 {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
	font-weight: 600;
}

h6 {
	font-size: 1rem;
	margin-bottom: 0.75rem;
	font-weight: 600;
}

@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.75rem;
	}

	h3 {
		font-size: 1.5rem;
	}

	h4 {
		font-size: 1.25rem;
	}

	h5 {
		font-size: 1.125rem;
	}
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	background-color: #fff;
	border-bottom: 2px solid
		color-mix(in srgb, var(--popout-primary-color, #e0e0e0), transparent 50%);
	padding: 0.5rem 0;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Adjust header position when admin bar is present */
.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-title {
	font-size: 1.5rem;
	font-weight: bold;
	margin: 0;
}

.site-title a {
	text-decoration: none;
	color: var(--popout-text-color, #333);
}

.site-title-logo {
	line-height: 0;
}

.site-title-logo a {
	display: inline-block;
	line-height: 0;
}

.site-logo {
	max-height: 50px;
	width: auto;
	height: auto;
	display: block;
}

/* Navigation */
.main-navigation {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	align-items: center;
}

.main-navigation li {
	margin: 0;
}

.main-navigation a {
	text-decoration: none;
	color: var(--popout-text-color, #333);
	font-weight: 500;
	transition: color 0.3s ease;
}

.main-navigation a:hover {
	color: var(--popout-primary-color, #0073aa);
}

.header-cart-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem;
	background-color: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	color: var(--popout-text-color, #333);
	text-decoration: none;
}

.header-cart-button:hover {
	color: var(--popout-primary-color, #0073aa);
	transform: scale(1.05);
}

.header-cart-button svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.header-cart-count {
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
}

/* Main Content */
.site-main {
	padding: 2rem 4rem;
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Posts */
.post {
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e0e0e0;
}

.post:last-child {
	border-bottom: none;
}

.post-title {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.post-title a {
	text-decoration: none;
	color: var(--popout-text-color, #333);
}

.post-title a:hover {
	color: var(--popout-primary-color, #0073aa);
}

.post-meta {
	color: var(--popout-footer-text-color, #666);
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.post-content {
	margin-top: 1rem;
}

.post-content p {
	margin-bottom: 1rem;
}

/* Footer */
.site-footer {
	background-color: var(--popout-footer-bg-color, #f5f5f5);
	padding: 2rem 0;
	margin-top: 3rem;
	text-align: center;
	color: var(--popout-footer-text-color, #666);
}

.footer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.social-media {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: center;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #333;
	color: #fff;
	text-decoration: none;
	transition: all 0.3s ease;
}

.social-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link svg {
	width: 20px;
	height: 20px;
}

.social-link.facebook:hover {
	background-color: #1877f2;
}

.social-link.instagram:hover {
	background: linear-gradient(
		45deg,
		#f09433 0%,
		#e6683c 25%,
		#dc2743 50%,
		#cc2366 75%,
		#bc1888 100%
	);
}

.social-link.linkedin:hover {
	background-color: #0077b5;
}

.social-link.linktree:hover {
	background-color: #43e55e;
}

@media (max-width: 768px) {
	.social-media {
		gap: 0.75rem;
	}

	.social-link {
		width: 36px;
		height: 36px;
	}

	.social-link svg {
		width: 18px;
		height: 18px;
	}
}

/* Buttons */
.read-more {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.5rem 1.5rem;
	background-color: var(--popout-primary-color, #0073aa);
	color: #fff;
	text-decoration: none;
	border-radius: 3px;
}

.read-more:hover {
	background-color: var(--popout-secondary-color, #005a87);
}

/* Mobile Header Controls */
.mobile-header-controls {
	display: none;
	align-items: center;
	gap: 1rem;
}

.mobile-cart-button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	background-color: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	color: var(--popout-text-color, #333);
	text-decoration: none;
}

.mobile-cart-button:hover {
	color: var(--popout-primary-color, #0073aa);
	transform: scale(1.05);
}

.mobile-cart-button svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.mobile-menu-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background-color: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.burger-icon {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
}

.burger-icon span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: var(--popout-text-color, #333);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .burger-icon span {
	background-color: var(--popout-primary-color, #0073aa);
}

/* Mobile Full-Screen Overlay Menu */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100vh;
	background-color: #fff;
	z-index: 9999;
	transform: translateX(100%);
	transition: transform 0.3s ease-out;
	overflow-y: auto;
}

/* Adjust mobile menu position when admin bar is present */
.admin-bar .mobile-menu-overlay {
	top: 32px;
	height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .mobile-menu-overlay {
		top: 46px;
		height: calc(100vh - 46px);
	}
}

.mobile-menu-overlay[aria-hidden="false"] {
	transform: translateX(0);
}

.mobile-menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 20px;
	border-bottom: 2px solid
		color-mix(in srgb, var(--popout-primary-color, #e0e0e0), transparent 50%);
}

.mobile-menu-logo {
	line-height: 1;
}

.mobile-menu-logo .site-logo {
	max-height: 50px;
	width: auto;
	height: auto;
	display: block;
}

.mobile-menu-logo .site-title {
	font-size: 1.5rem;
	font-weight: bold;
	margin: 0;
	text-decoration: none;
	color: var(--popout-text-color, #333);
}

.mobile-menu-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background-color: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	color: var(--popout-text-color, #333);
}

.mobile-menu-close:hover {
	color: var(--popout-primary-color, #0073aa);
	transform: scale(1.1);
}

.mobile-menu-close svg {
	width: 24px;
	height: 24px;
}

.mobile-menu-content {
	padding: 2rem 20px;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.mobile-menu-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.mobile-menu-navigation li {
	margin: 0;
}

.mobile-menu-navigation a {
	text-decoration: none;
	color: var(--popout-text-color, #333);
	font-weight: 500;
	font-size: 1.125rem;
	transition: color 0.3s ease;
	display: block;
}

.mobile-menu-navigation a:hover {
	color: var(--popout-primary-color, #0073aa);
}

.mobile-menu-cart-button {
	display: inline-block;
	background-color: transparent;
	border: none;
	color: var(--popout-text-color, #333);
	text-decoration: none;
	font-weight: 500;
	font-size: 1.125rem;
	text-align: left;
	transition: color 0.3s ease;
	align-self: flex-start;
}

.mobile-menu-cart-button:hover {
	color: var(--popout-primary-color, #0073aa);
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
	overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
	body {
		padding-top: 80px;
	}

	.admin-bar {
		padding-top: 126px;
	}

	.site-header .container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 0;
	}

	/* Hide desktop navigation on mobile */
	.main-navigation {
		display: none;
	}

	/* Show mobile header controls */
	.mobile-header-controls {
		display: flex;
	}

	.post-title {
		font-size: 1.5rem;
	}
}
