/*
Theme Name: 오토로그
Template: twentytwentyfive
Description: 사진과 글이 중심인 오토로그 블로그 테마 (Twenty Twenty-Five 자식 테마 - Modern Bento Design System)
Version: 1.1.0
Text Domain: otolog
*/

/* =========================================================
   1. FLOATING PILL HEADER
   ========================================================= */
.otolog-header {
	border-bottom: 0 !important;
	padding-top: 24px !important;
	padding-bottom: 8px !important;
}
.otolog-header > .wp-block-group.alignwide {
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 999px;
	padding: 10px 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}
.otolog-header .wp-block-site-title {
	margin: 0;
	letter-spacing: -0.02em;
}
.otolog-header .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.otolog-header .wp-block-site-title a::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
	flex-shrink: 0;
}
.otolog-header .wp-block-navigation .wp-block-navigation-item__content {
	min-width: 44px;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.otolog-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.otolog-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
.wp-block-site-tagline {
	padding-left: 8px;
	font-weight: 500;
}

/* =========================================================
   2. BENTO POST GRID & CHIPS (HOME / ARCHIVE / SEARCH)
   ========================================================= */
.otolog-chip,
.otolog-post-summary .taxonomy-category {
	margin: 0 0 12px;
}
.otolog-chip a,
.otolog-post-summary .taxonomy-category a,
.otolog-post-meta .taxonomy-category a {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}
.otolog-post-list .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.otolog-post-list .wp-block-post {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 24px;
	padding: 28px;
	margin: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
	box-sizing: border-box;
}
.otolog-post-list .wp-block-post:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px -6px rgba(17, 24, 39, 0.07), 0 4px 8px -4px rgba(17, 24, 39, 0.04);
}
.otolog-post-list .wp-block-post:first-child {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 36px;
	align-items: center;
	padding: 32px;
}
.otolog-post-list .wp-block-post-featured-image {
	margin: 0 !important;
	overflow: hidden;
	border-radius: 16px;
}
.otolog-post-list .wp-block-post-featured-image img {
	border-radius: 16px;
	transition: transform 0.3s ease;
}
.otolog-post-list .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.02);
}
.otolog-post-summary {
	min-width: 0;
}
.otolog-post-summary .wp-block-post-title {
	font-size: clamp(22px, 2.2vw, 32px);
	font-weight: 800;
	line-height: 1.32;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.otolog-post-summary .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-1);
}
.otolog-post-summary .wp-block-post-excerpt {
	margin-top: 14px;
	font-size: 17px;
	line-height: 1.65;
}
.otolog-post-summary .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.otolog-post-summary .wp-block-post-date {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--accent-6);
}

/* =========================================================
   3. SINGLE ARTICLE & PAGE BENTO CARD VIEW
   ========================================================= */
:where(.single, .page) main > .wp-block-group {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 24px;
	padding: clamp(24px, 5vw, 56px);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
	box-sizing: border-box;
}
.otolog-article-title {
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.otolog-post-meta {
	margin-top: 16px;
	margin-bottom: 28px;
	align-items: center;
}
.single main .wp-block-post-featured-image,
.page main .wp-block-post-featured-image {
	margin-bottom: 32px;
	border-radius: 16px;
	overflow: hidden;
}
.single main .wp-block-post-featured-image img,
.page main .wp-block-post-featured-image img,
.entry-content .wp-block-image img {
	border-radius: 16px;
}
.entry-content .wp-element-caption {
	font-size: 0.85rem;
	color: var(--wp--preset--color--accent-4);
	text-align: center;
	margin-top: 10px;
}
.entry-content h2.wp-block-heading {
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	margin-top: 2em;
	margin-bottom: 0.75em;
	display: flex;
	align-items: center;
	gap: 10px;
}
.entry-content h2.wp-block-heading::before {
	content: "";
	width: 6px;
	height: 22px;
	border-radius: 4px;
	background: var(--wp--preset--color--accent-1);
	flex-shrink: 0;
}
.otolog-summary-box,
.entry-content .wp-block-quote {
	background: #F0FDFA;
	border: 1px solid #99F6E4;
	border-radius: 16px;
	padding: 20px 24px;
	margin: 24px 0 32px;
	color: #134E4A;
}
.otolog-related .wp-block-post {
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 16px;
	padding: 18px;
	box-sizing: border-box;
}
.otolog-related .wp-block-post-featured-image img {
	border-radius: 12px;
}

/* =========================================================
   4. COMMENTS, FORMS & BUTTONS
   ========================================================= */
.wp-block-comments {
	padding-top: 32px;
	border-top: 1px solid var(--wp--preset--color--accent-6);
}
.wp-block-comments .comment-form input:not([type="checkbox"]):not([type="hidden"]),
.wp-block-comments .comment-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid #D1D5DB;
	border-radius: 10px;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.wp-block-comments .comment-form input:not([type="checkbox"]):not([type="hidden"]):focus,
.wp-block-comments .comment-form textarea:focus {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--accent-1);
}
.wp-block-comments .comment-form textarea {
	min-height: 140px;
	resize: vertical;
}
.wp-block-comments .comment-reply-title {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.35;
}
.wp-block-comments .comment-form p {
	margin: 20px 0 0;
}
.wp-block-comments .comment-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.9375rem;
}
.wp-block-comments .comment-notes,
.wp-block-comments .otolog-comment-policy,
.wp-block-comments .comment-form-cookies-consent {
	color: var(--wp--preset--color--accent-4);
	font-size: 0.9375rem;
}
.wp-block-comments .comment-form-cookies-consent {
	display: flex;
	gap: 12px;
	align-items: center;
	min-height: 44px;
}
.wp-block-comments .comment-form-cookies-consent label {
	margin: 0;
	padding: 8px 0;
	font-weight: 400;
}
.wp-block-comments .comment-form input[type="submit"],
.otolog-about .wp-block-button__link {
	width: auto;
	min-height: 48px;
	padding: 12px 24px;
	border: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color 0.15s ease;
}
.wp-block-comments .comment-form input[type="submit"]:hover,
.otolog-about .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--accent-1) 85%, black);
}

/* =========================================================
   5. ABOUT PAGE & ACCESSIBILITY
   ========================================================= */
.otolog-about .wp-block-post-title {
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 800;
}
.otolog-about-profile {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 28px;
	padding: 20px;
	background: var(--wp--preset--color--accent-5);
	border-radius: 16px;
}
.otolog-about-profile .wp-block-image {
	flex: 0 0 72px;
	margin: 0;
}
.otolog-about-profile img {
	width: 72px;
	height: 72px;
	border-radius: 18px;
}
.otolog-about-profile p {
	margin: 0;
	font-weight: 600;
}
:where(a, button, input, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 4px;
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close,
.wp-block-search__button {
	box-sizing: border-box;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}
.otolog-article-title,
.otolog-post-summary .wp-block-post-title {
	word-break: keep-all;
}
.wp-block-comment-reply-link a,
#cancel-comment-reply-link,
.wp-block-query-pagination a,
.wp-block-comments-pagination a {
	display: inline-flex;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
}

/* =========================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 767px) {
	.otolog-header > .wp-block-group.alignwide {
		padding: 8px 16px;
	}
	.otolog-post-list .wp-block-post-template,
	.otolog-post-list .wp-block-post:first-child {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.otolog-post-list .wp-block-post,
	.otolog-post-list .wp-block-post:first-child {
		padding: 20px;
		border-radius: 20px;
	}
	.otolog-post-summary .wp-block-post-title {
		font-size: 22px;
	}
	.otolog-post-summary .wp-block-post-excerpt {
		font-size: 16px;
	}
	.otolog-post-summary .wp-block-post-date {
		margin-top: 16px;
	}
	.wp-block-search__inside-wrapper {
		max-width: 100%;
	}
	.otolog-header .wp-block-search__inside-wrapper {
		position: relative;
	}
	.otolog-header .wp-block-search__input[aria-hidden="false"] {
		position: absolute;
		top: calc(100% + 10px);
		right: 0;
		box-sizing: border-box;
		width: min(340px, calc(100vw - 48px));
		min-height: 48px;
		padding: 10px 14px;
		background: var(--wp--preset--color--base);
		border: 1px solid #D1D5DB;
		border-radius: 12px;
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
		z-index: 10;
		transition: none;
	}
}
