/*
Theme Name: HS Theme
Theme URI: https://hswebajans.com
Author: HS Web Ajans
Author URI: https://hswebajans.com
Description: Kurumsal siteler için Astra benzeri layout, header/footer ve global stillere sahip ince block theme. Renk, tipografi ve spacing theme.json ile; içerik ve bloklar HS eklentilerinde.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hs-theme
Tags: full-site-editing, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, wide-blocks, translation-ready
*/

/* Link & focus — theme.json çoğu stili yönetir */
a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.12em;
}

:where(.wp-site-blocks *:focus) {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* ——— Header ——— */
.hs-theme-header {
	z-index: 100;
}

.hs-theme-header--sticky {
	position: sticky;
	top: 0;
}

.hs-theme-header-main {
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.hs-theme-header.is-scrolled .hs-theme-header-main {
	box-shadow: 0 4px 16px rgba(11, 18, 32, 0.08);
}

.hs-theme-topbar a {
	color: inherit;
	text-decoration: none;
}

.hs-theme-topbar a:hover {
	text-decoration: underline;
}

/* Transparent header — hero üstü */
.hs-theme-header--transparent {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
}

.hs-theme-header--transparent .hs-theme-topbar {
	background: rgba(11, 18, 32, 0.35);
	backdrop-filter: blur(6px);
}

.hs-theme-header--transparent .hs-theme-header-main {
	background: transparent;
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.hs-theme-header--transparent .wp-block-site-title a,
.hs-theme-header--transparent .wp-block-navigation a {
	color: var(--wp--preset--color--base);
}

.hs-theme-header--transparent.is-scrolled {
	position: sticky;
}

.hs-theme-header--transparent.is-scrolled .hs-theme-header-main {
	background: var(--wp--preset--color--base);
	border-bottom-color: var(--wp--preset--color--border);
}

.hs-theme-header--transparent.is-scrolled .wp-block-site-title a,
.hs-theme-header--transparent.is-scrolled .wp-block-navigation a {
	color: var(--wp--preset--color--contrast);
}

.hs-theme-header--transparent.is-scrolled .hs-theme-topbar {
	background: var(--wp--preset--color--header-bar);
}

/* ——— Footer ——— */
.hs-theme-footer {
	border-top: none;
}

.hs-theme-footer a {
	color: #94a3b8;
	text-decoration: none;
}

.hs-theme-footer a:hover {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}

.hs-theme-footer .wp-block-site-title a {
	color: var(--wp--preset--color--base);
}

.hs-theme-footer .wp-block-heading {
	color: var(--wp--preset--color--base);
}

/* ——— Sidebar ——— */
.hs-theme-sidebar .wp-block-latest-posts li,
.hs-theme-sidebar .wp-block-categories li {
	margin-bottom: 0.5rem;
}

/* ——— Full width ——— */
.hs-theme-full-width > .wp-block-post-content > * {
	max-width: none;
}

/* ——— Blog grid cards ——— */
.hs-theme-post-card {
	height: 100%;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--wp--preset--color--base);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hs-theme-post-card:hover {
	border-color: var(--wp--preset--color--primary-light);
	box-shadow: 0 8px 24px rgba(11, 18, 32, 0.08);
}

.hs-theme-post-card .wp-block-post-featured-image {
	margin: 0;
}

.hs-theme-post-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

.hs-theme-post-card__body {
	padding: var(--wp--preset--spacing--40);
}

/* Blog grid — tablet / mobil */
/* ——— Imported HTML sections ——— */
.hshtml-section {
	margin-block: var(--wp--preset--spacing--50, 2rem);
}

.hshtml-section .wp-block-html {
	max-width: 100%;
}

@media (max-width: 960px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 600px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

<!-- ——— Breadcrumb ——— */
.hs-theme-breadcrumb {
	font-size: var(--wp--preset--font-size--x-small, 0.75rem);
	color: var(--wp--preset--color--muted);
}

.hs-theme-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-theme-breadcrumb__item a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.hs-theme-breadcrumb__item a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

.hs-theme-breadcrumb__item [aria-current="page"] {
	color: var(--wp--preset--color--contrast);
}

.hs-theme-breadcrumb__separator {
	color: var(--wp--preset--color--border);
	user-select: none;
}

/* ——— Section surface block style ——— */
.wp-block-group.is-style-section-surface {
	background: var(--wp--preset--color--surface);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	border-radius: 8px;
}

/* ——— Buttons: outline style helper ——— */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.wp-block-button.is-style-fill-accent .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

.wp-block-button.is-style-fill-accent .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-dark);
}

/* ——— Content helpers ——— */
.wp-block-post-title a,
.wp-block-site-title a {
	text-decoration: none;
}

.wp-block-post-title a:hover,
.wp-block-site-title a:hover {
	text-decoration: underline;
}

.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
}

/* Admin bar offset for sticky header */
.admin-bar .hs-theme-header--sticky {
	top: 32px;
}

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