/* Inner pages: book (single), category/archive, plain pages. */

/* Dark title band (archive, page, 404) */
.evren-baslik .evren-ust-etiket { opacity: .7; margin-bottom: 0; }
.evren-baslik h1 { font-weight: 700; letter-spacing: -.01em; }
.evren-baslik .wp-block-term-description { max-width: 40em; opacity: .85; }

/* Category links: same row as the homepage, current one highlighted */
.evren-kategoriler { gap: 6px 22px; }
.evren-kategoriler p { margin: 0; }
.evren-kategoriler a { color: #1c1b1a; text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.evren-kategoriler a:hover { border-bottom-color: currentColor; }
.evren-kategoriler a[aria-current] { color: #7a1f2b; border-bottom-color: currentColor; font-weight: 600; }

/* Book page */
.evren-kapak-kolon .evren-kapak { position: sticky; top: 32px; margin: 0; }
.evren-kapak img { display: block; width: 100%; height: auto; box-shadow: 0 18px 40px -18px #1c1b1a66; }
.evren-etiket a { color: #7a1f2b; text-decoration: none; }
.evren-etiket a:hover { text-decoration: underline; }
.evren-etiket .wp-block-post-terms__separator { color: #1c1b1a66; }
.evren-kitap .wp-block-post-title { font-weight: 700; letter-spacing: -.01em; }
.evren-onceki-sonraki a { color: #1c1b1a; text-decoration: none; }
.evren-onceki-sonraki a:hover { text-decoration: underline; }
.evren-onceki-sonraki .post-navigation-link__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .6; }
.evren-onceki-sonraki .wp-block-post-navigation-link { max-width: 46%; }
.evren-onceki-sonraki .post-navigation-link-next { text-align: right; margin-left: auto; }

/* Long-form text */
.evren-metin { font-size: 17px; line-height: 1.7; color: #2b2926; }
.evren-kitap .evren-metin > * { max-width: 68ch; }
.evren-kitap .evren-metin > figure, .evren-kitap .evren-metin > .wp-block-image { max-width: 100%; }
.evren-metin a { color: #7a1f2b; }
.evren-metin iframe { max-width: 100%; border: 0; }
.evren-metin img { height: auto; }
.evren-metin figcaption { font-size: 15px; line-height: 1.6; text-align: left; color: #2b2926; }
.evren-metin > p:empty { display: none; }

.evren-tum .wp-block-button__link:hover { background: #2b2926 !important; }

@media (max-width: 781px) {
	.evren-baslik { padding-top: 36px !important; padding-bottom: 40px !important; }
	.evren-baslik h1 { font-size: clamp(2rem, 9vw, 2.6rem) !important; }

	.evren-kitap { padding-top: 32px !important; padding-bottom: 48px !important; }
	.evren-kitap .wp-block-columns { gap: 28px !important; }
	.evren-kapak-kolon .evren-kapak { position: static; max-width: 260px; margin: 0 auto; }
	.evren-kitap .wp-block-post-title { font-size: clamp(1.9rem, 8vw, 2.4rem) !important; margin-bottom: 20px !important; }
	.evren-metin { font-size: 16.5px; }
	.evren-onceki-sonraki { margin-top: 40px !important; gap: 20px !important; }
	.evren-onceki-sonraki .wp-block-post-navigation-link { max-width: 100%; flex-basis: 100%; }
	.evren-onceki-sonraki .post-navigation-link-next { text-align: left; margin-left: 0; }

	#books .evren-kategoriler a[aria-current] { border-color: #7a1f2b !important; background: #7a1f2b; color: #fff !important; }
}

/* Cover → Amazon "look inside" */
.evren-kapak-link { display: block; }
.evren-kapak-link img { transition: transform .2s ease, box-shadow .2s ease; }
.evren-kapak-link:hover img { transform: translateY(-2px); box-shadow: 0 24px 44px -18px #1c1b1a80; }
.evren-ornek { display: flex !important; justify-content: center; text-align: center; align-items: center; gap: 6px; margin-top: 16px; padding: 12px 16px; background: #151716; color: #fff !important; text-decoration: none; font-size: 15px; letter-spacing: .3px; }
.evren-ornek:hover { background: #2b2926; }
.evren-ornek:focus-visible, .evren-kapak-link:focus-visible { outline: 2px solid #7a1f2b; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .evren-kapak-link img { transition: none; } }

/* Homepage buttons: with four of them (About Me, Shop, Substack, AO3) use a 2×2 grid on phones */
@media (max-width: 781px) {
	.evren-cta:has(> .wp-block-button:nth-child(4)) { grid-template-columns: 1fr 1fr; }
}
/* …and keep them on one row on small laptops/tablets */
@media (min-width: 782px) and (max-width: 1199px) {
	.evren-cta:has(> .wp-block-button:nth-child(4)) { gap: 8px !important; }
	.evren-cta:has(> .wp-block-button:nth-child(4)) .wp-block-button__link { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Category chips scroll sideways on phones: fade the edges that hide more chips */
@media (max-width: 781px) {
	#books .wp-block-group.alignwide.evren-kaydir { --fade: 44px; }
	#books .wp-block-group.alignwide.evren-kaydir-sag { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent); }
	#books .wp-block-group.alignwide.evren-kaydir-sol { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade)); mask-image: linear-gradient(to right, transparent, #000 var(--fade)); }
	#books .wp-block-group.alignwide.evren-kaydir-sol.evren-kaydir-sag { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
}

/*
 * Book grids always fill their 2:3 box. A copy of the Front Page template saved
 * from the Site Editor can still carry the old "contain" setting as an inline
 * style, which would let covers of different shapes look different in size.
 */
#books .wp-block-post-featured-image img { object-fit: cover !important; }