/* GS Main */

html { scroll-behavior: smooth; }
body .grecaptcha-badge{ display: none; visibility: hidden; opacity: 0; }
body .wp-block-latest-posts__featured-image img { border-radius: 8px; }
body .gs-default-featured-image { border-radius: 10px; }

/* Global embedded content radius */
.wp-block-embed .wp-block-embed__wrapper {
	border-radius: 20px;
	overflow: hidden;
}

.wp-block-embed iframe,
.wp-block-embed embed,
.wp-block-embed object {
	display: block;
	width: 100%;
	border-radius: 20px;
	box-shadow: 0 6px 20px rgba(6, 23, 45, 0.04);
	box-sizing: border-box;
}

/* Hero BG */
.gs-hero {
	position: relative;
	overflow: hidden;
	background-image:
		radial-gradient(
			ellipse 65% 75% at 50% 44%,
			rgba(116, 79, 168, 0.24) 0%,
			rgba(116, 79, 168, 0.13) 35%,
			transparent 72%
		);
	border: 1px solid rgba(255, 255, 255, 0.05);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 12px 32px rgba(0, 0, 0, 0.10);
}

/* Icon Groups */
[class^="gs-icons-"],
[class*=" gs-icons-"] {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

[class^="gs-icons-"]::before,
[class*=" gs-icons-"]::before {
	font-family: "Font Awesome 7 Free";
	font-weight: 900;
	flex: 0 0 auto;
}

/* Icon Types */
.gs-icons-check::before { content: "\f00c"; }
.gs-icons-clock-rotate-left::before { content: "\f1da"; }
.gs-icons-bullet::before { content: "\f111"; font-size: 0.45em; }
.gs-icons-circle-dot::before { content: "\f192"; }
.gs-icons-angle-right::before { content: "\f105"; }
.gs-icons-arrow-right::before { content: "\f061"; }
.gs-icons-circle-arrow-right::before { content: "\f0a9"; }
.gs-icons-circle-right::before { content: "\f35a"; }
.gs-icons-star::before { content: "\f005"; }
.gs-circle-dot::before { content: "\f192"; }

/* Icon Position */
.gs-icons-left { flex-direction: row; }
.gs-icons-right { flex-direction: row-reverse; justify-content: flex-end;}

/* Single post block card */
.gs-block-card {
	background: var(--wp--preset--color--accent-7);
	border: 1px solid var(--wp--preset--color--accent-5);
	border-radius: 10px;
	padding: var(--wp--preset--spacing--40);
}

.gs-block-card > :first-child {
	margin-top: 0;
}

.gs-block-card > :last-child {
	margin-bottom: 0;
}

.gs-block-card + .gs-block-card {
	margin-top: var(--wp--preset--spacing--40);
}

/* Single post images */
.single-post .wp-block-image {
	margin-inline: auto;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
}

.single-post .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border: 0;
	border-radius: 10px 10px 0 0 !important;
}

.single-post .wp-block-image figcaption {
	margin: 0 !important;
	padding: 10px 15px;
	background: var(--wp--preset--color--accent-5);
	border-radius: 0 0 10px 10px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	text-align: center;
}


/* WooCommerce product title */
.single-product .wp-block-post-title {
	line-height: 1.4;
}

/* Navigation Submenu */
.wp-block-navigation .wp-block-navigation__submenu-container{
	min-width: 260px;
	padding: 10px;
	border-radius: 5px;
}

.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content{
	display: block;
	padding: 10px 14px;
	font-size: 16px;
	line-height: 1.25;
	white-space: nowrap;
}

.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content:hover{
	border-radius: 5px;
}

/* Useful Links Select */
.useful-links {
	box-sizing: border-box;
	width: 100%;
	max-width: 200px;
	margin: 0;
	padding: 10px 44px 10px 16px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 10px;
	background: #fff;
	background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 14px 8px;
	color: #212121;
	font: inherit;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.useful-links:focus {
	background-color: #fff;
	outline: none;
	box-shadow: 0 0 0 1.5px #111;
}

/* Special Underline Effect */
.wp-site-blocks h1 u,
.wp-site-blocks h2 u,
.wp-site-blocks h3 u,
.entry-content h1 u,
.entry-content h2 u,
.entry-content h3 u {
	position: relative;
	display: inline-block;
	text-decoration: none;
	white-space: nowrap;
	z-index: 0;
}

.wp-site-blocks h1 u::after,
.wp-site-blocks h2 u::after,
.wp-site-blocks h3 u::after,
.entry-content h1 u::after,
.entry-content h2 u::after,
.entry-content h3 u::after {
	content: "";
	position: absolute;
	left: 0.03em;
	right: -0.04em;
	bottom: -0.08em;
	height: 0.12em;
	background: #d79a22;
	border-radius: 999px;
	transform: rotate(-1deg);
	z-index: -1;
	opacity: 0.95;
}

/* WooCommerce Catalog Sorting Select */
.wc-block-catalog-sorting,
.woocommerce .woocommerce-ordering {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin: 0 0 24px;
}

.wc-block-catalog-sorting .woocommerce-ordering {
	margin: 0;
}

.wc-block-catalog-sorting select.orderby,
.woocommerce .woocommerce-ordering select.orderby {
	min-width: 240px;
	height: 44px;
	padding: 0 42px 0 16px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 999px;
	background-color: #fff;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position:
		calc(100% - 21px) 50%,
		calc(100% - 15px) 50%;
	background-size:
		6px 6px,
		6px 6px;
	background-repeat: no-repeat;
}

.wc-block-catalog-sorting select.orderby:hover,
.woocommerce .woocommerce-ordering select.orderby:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--contrast) 28%, transparent);
}

.wc-block-catalog-sorting select.orderby:focus,
.woocommerce .woocommerce-ordering select.orderby:focus {
	outline: 2px solid color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--contrast);
}

/* GS Legacy Columns */
.gs-legacy-columns {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1.25rem;
}

.gs-legacy-column {
	min-width: 0;
}

.gs-column-1-1 {
	grid-column: span 12;
}

.gs-column-1-2 {
	grid-column: span 6;
}

.gs-column-1-3 {
	grid-column: span 4;
}

.gs-column-2-3 {
	grid-column: span 8;
}

.gs-column-1-4 {
	grid-column: span 3;
}

.gs-column-3-4 {
	grid-column: span 9;
}

.gs-legacy-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gs-legacy-list li {
	position: relative;
	margin: 0;
	padding: 0.5rem 0 0.5rem 1.4rem;
}

.gs-list-arrow-right li::before {
	content: "›";
	position: absolute;
	left: 0;
	top: 0.5rem;
	color: var(--wp--preset--color--accent-1);
	font-weight: 700;
}

.gs-legacy-list a {
	color: var(--wp--preset--color--accent-3);
	text-decoration: none;
}

.gs-legacy-list a:hover {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
}

/* Attachment pages */
.gs-attachment {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

.gs-attachment-parent {
	font-size: var(--wp--preset--font-size--small);
}

.gs-attachment-parent a {
	color: var(--wp--preset--color--accent-3);
	text-decoration: none;
}

.gs-attachment-parent a:hover {
	color: var(--wp--preset--color--accent-1);
}

.gs-attachment-media {
	margin: 0;
}

.gs-attachment-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.gs-attachment-media figcaption {
	margin-top: 10px;
	color: var(--wp--preset--color--accent-4);
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

.gs-attachment-navigation {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
}

.gs-attachment-navigation a {
	color: var(--wp--preset--color--accent-3);
	text-decoration: none;
	font-weight: 600;
}

.gs-attachment-navigation a:hover {
	color: var(--wp--preset--color--accent-1);
}

.gs-attachment-prev {
	justify-self: start;
}

.gs-attachment-parent-link {
	justify-self: center;
	text-align: center;
}

.gs-attachment-parent-link a {
	color: var(--wp--preset--color--entry);
	font-weight: 600;
}

.gs-attachment-next {
	justify-self: end;
	text-align: right;
}

/* List Group */
.gs-list-group {
	width: 100%;
}

.gs-list__items {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gs-list__items li {
	margin: 0;
	padding: 0;
}

.gs-list__items a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 12px 14px;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-5);
	border-radius: 10px;
	font-size: var(--wp--preset--font-size--medium);
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease;
}

.gs-list__items a:hover,
.gs-list__items a:focus-visible {
	border-color: currentColor;
}

.gs-list__items a::before {
	font-family: "Font Awesome 7 Free";
	content: "\f105";
	font-weight: 900;
	flex: 0 0 auto;
}

/* Responsive */
@media (max-width: 781px) {
	/* Mobile Swap */
	.wp-block-columns.mobile-swap > *:first-child { order: 2; }
	.wp-block-columns.mobile-swap > *:last-child  { order: 1; }
	
	/* Header Logo */
	header.wp-block-template-part .wp-block-site-logo {
		max-width: 200px;
		flex-shrink: 0;
	}

	header.wp-block-template-part .wp-block-site-logo img.custom-logo {
		width: 200px;
		height: auto;
		max-width: 100%;
	}
	
	.gs-legacy-column {
		grid-column: 1 / -1;
	}
	
	/* Useful Links Select */
	select.useful-links {
		max-width: 130px;
		padding-right: 42px;
		background-position: right 16px center;
		background-size: 13px 8px;
	}
	
	.gs-mobile-slider {
		position: relative;
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 16px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 26px;
		scrollbar-width: none;

		/* Gutenberg Grid ayarlarını etkisizleştir */
		grid-template-columns: none !important;
		grid-auto-columns: unset;
	}

	.gs-mobile-slider::-webkit-scrollbar {
		display: none;
	}

	.gs-mobile-slider > * {
		flex: 0 0 82% !important;
		width: 82%;
		min-width: 82%;
		max-width: none;
		scroll-snap-align: start;
	}

	.gs-mobile-slider::after {
		content: "←  Kaydır  →";
		position: sticky;
		right: 20px;
		bottom: -10px;
		align-self: flex-end;
		flex: 0 0 auto !important;
		width: auto;
		min-width: auto;
		margin-left: -120px;
		margin-bottom: -22px;
		padding: 4px 10px;
		background: var(--wp--preset--color--accent-5);
		border-radius: 999px;
		color: var(--wp--preset--color--accent-3);
		font-size: 12px;
		line-height: 1.2;
		white-space: nowrap;
		z-index: 2;
		pointer-events: none;
	}
	
	/* WooCommerce catalog sorting select */
	.wc-block-catalog-sorting,
	.woocommerce .woocommerce-ordering {
		justify-content: stretch;
		width: 100%;
		margin-top: 12px;
	}

	.wc-block-catalog-sorting .woocommerce-ordering,
	.woocommerce .woocommerce-ordering {
		width: 100%;
	}

	.wc-block-catalog-sorting select.orderby,
	.woocommerce .woocommerce-ordering select.orderby {
		width: 100%;
		min-width: 0;
		height: 42px;
		font-size: 13px;
	}
	
	.gs-attachment-navigation {
		gap: 10px;
		font-size: var(--wp--preset--font-size--small);
	}

	.gs-attachment-parent-link {
		min-width: 0;
	}
	
	.gs-list__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.gs-list__items a {
		padding: 10px 12px;
	}
}
