/*!
Theme Name: HomeArtGallery
Theme URI: https://homeartgallery.pl/
Author: HomeArtGallery
Author URI: https://homeartgallery.pl/
Description: A modern WordPress theme for home and garden inspiration blog
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: homeartgallery
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, two-columns, flexible-header

This theme, like WordPress, is licensed under the GPL.

homeartgallery is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

All main styles are loaded from assets/css/bundle.min.css
This file contains only theme header and minimal WordPress-specific adjustments.
*/

/*--------------------------------------------------------------
# WordPress-specific overrides
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/

/* Custom Logo Support */
.site-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
	max-height: 60px;
}

.site-header__logo a {
	display: flex;
	align-items: center;
	line-height: 0;
}

.site-header__logo-image {
	max-height: 50px;
	max-width: 200px;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

/* Ensure header content aligns properly */
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	min-height: 60px;
}

/* Prevent logo from pushing other elements */
.site-nav {
	flex: 1;
	min-width: 0;
}

/* Ensure logo doesn't break on mobile */
@media (max-width: 768px) {
	.site-header__logo {
		max-height: 50px;
	}
	
	.site-header__logo-image {
		max-height: 40px;
		max-width: 150px;
	}
	
	.site-header__inner {
		gap: 1rem;
		min-height: 50px;
	}
}

/* Navigation Active States */
.site-nav__link.is-active,
.mobile-nav__link.is-active {
	font-weight: 600;
}

/* Ensure WordPress menu classes don't conflict */
.site-nav__list .menu-item-has-children > a::after,
.mobile-nav__list .menu-item-has-children > a::after {
	content: '';
}

/* Remove default WordPress menu item margins */
.site-nav__list li,
.mobile-nav__list li {
	margin: 0;
	list-style: none;
}

/*--------------------------------------------------------------
# Archive & Pagination
--------------------------------------------------------------*/

/* Pagination links styling */
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0.5rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
	background-color: #f9fafb;
	border-color: #d1d5db;
}

.pagination .page-numbers.current {
	background-color: var(--color-primary, #2D5016);
	border-color: var(--color-primary, #2D5016);
	color: white;
}

.pagination .page-numbers.dots {
	border: none;
	cursor: default;
}

.pagination .page-numbers.dots:hover {
	background-color: transparent;
}

/* Remove default pagination list styles */
.pagination ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 0.5rem;
}

/*--------------------------------------------------------------
# Category Navigation Placeholders
--------------------------------------------------------------*/

/* Placeholder specific styles */
.category-nav__image--placeholder {
	object-fit: cover;
	transition: transform 0.3s ease;
}

.category-nav__item:hover .category-nav__image--placeholder {
	transform: scale(1.05);
}

/*--------------------------------------------------------------
# WordPress Core Alignment Classes
--------------------------------------------------------------*/
.alignnone {
	margin: 1.5em 1.5em 1.5em 0;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# WordPress Core Widget Classes  
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/*--------------------------------------------------------------
# Screen Reader Text
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}
