/*
Theme Name: Via Mia Blog
Theme URI: https://viamiacamden.com/blog/
Author: Via Mia Pizza Camden
Description: Blog theme for Via Mia Pizza Camden. Automatically reuses the main site's header, footer and styles so the blog looks like viamiacamden.com.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: viamia
*/

/* Font ve temel tipografi ana siteden miras alınır; burada sadece blog bileşenleri var. */
.vm-blog, .vm-blog * { box-sizing: border-box; }

:root {
	--vm-red: #C62828;
	--vm-red-dark: #8E1B1B;
	--vm-red-soft: #FDECEC;
	--vm-cream: #FFF8F1;
	--vm-ink: #1E1B18;
	--vm-muted: #6B6560;
	--vm-line: #EDE6DF;
	--vm-card: #FFFFFF;
	--vm-radius: 16px;
	--vm-shadow: 0 1px 2px rgba(30, 20, 10, .06), 0 8px 24px rgba(30, 20, 10, .07);
	--vm-shadow-hover: 0 2px 4px rgba(30, 20, 10, .08), 0 16px 40px rgba(30, 20, 10, .12);
}

body.vm-blog-body { background: var(--vm-cream); color: var(--vm-ink); margin: 0; }
.vm-blog { display: block; min-height: 50vh; }
.vm-blog img { max-width: 100%; height: auto; }
.vm-blog a { color: inherit; }

.vm-skip { position: absolute; left: -9999px; top: 8px; z-index: 10000; background: #fff; color: var(--vm-red); padding: 8px 14px; border-radius: 8px; }
.vm-skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.vm-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.vm-wrap--narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.vm-blog .vm-btn,
.vm-blog input[type="submit"].vm-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--vm-red); color: #fff; border: 2px solid var(--vm-red);
	padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.1;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
	font-family: inherit;
}
.vm-blog .vm-btn:hover { background: var(--vm-red-dark); border-color: var(--vm-red-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(198, 40, 40, .3); color: #fff; }
.vm-blog .vm-btn--sm { padding: 9px 18px; font-size: .92rem; }
.vm-blog .vm-btn--light { background: #fff; color: var(--vm-red); border-color: #fff; }
.vm-blog .vm-btn--light:hover { background: var(--vm-cream); color: var(--vm-red-dark); border-color: var(--vm-cream); }
.vm-blog .vm-btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.vm-blog .vm-btn--outline:hover { background: #fff; color: var(--vm-red); border-color: #fff; }

/* ---------- Hero ---------- */
.vm-hero {
	position: relative; overflow: hidden; color: #fff; text-align: center;
	background:
		radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .10) 0 90px, transparent 91px),
		radial-gradient(circle at 88% 75%, rgba(255, 255, 255, .08) 0 140px, transparent 141px),
		linear-gradient(135deg, var(--vm-red) 0%, var(--vm-red-dark) 100%);
	padding: 72px 0 80px;
}
.vm-hero::after { /* hafif pizza-kutusu dokusu */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
	background-image: radial-gradient(#fff 1.2px, transparent 1.3px); background-size: 22px 22px;
}
.vm-hero__inner { position: relative; z-index: 1; }
.vm-eyebrow {
	display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); padding: 6px 14px; border-radius: 999px;
}
.vm-blog .vm-hero__title { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 18px auto 12px; max-width: 18ch; font-weight: 800; }
.vm-hero__sub { font-size: clamp(1rem, 2vw, 1.2rem); opacity: .92; max-width: 60ch; margin: 0 auto; line-height: 1.6; }
.vm-hero__actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Toolbar: kategoriler + arama ---------- */
.vm-toolbar { background: #fff; border-bottom: 1px solid var(--vm-line); position: relative; z-index: 2; }
.vm-toolbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.vm-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vm-cats::-webkit-scrollbar { display: none; }
.vm-blog .vm-cats a {
	white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--vm-ink);
	padding: 8px 16px; border-radius: 999px; background: var(--vm-cream); border: 1px solid var(--vm-line); transition: all .2s;
}
.vm-blog .vm-cats a:hover { border-color: var(--vm-red); color: var(--vm-red); }
.vm-blog .vm-cats a.is-active { background: var(--vm-red); color: #fff; border-color: var(--vm-red); }

.vm-search { display: flex; align-items: center; background: var(--vm-cream); border: 1px solid var(--vm-line); border-radius: 999px; padding: 4px 4px 4px 16px; min-width: 240px; }
.vm-search:focus-within { border-color: var(--vm-red); box-shadow: 0 0 0 3px var(--vm-red-soft); }
.vm-search input { border: 0; background: transparent; outline: 0; font: inherit; font-size: .95rem; flex: 1; min-width: 0; padding: 6px 0; color: var(--vm-ink); }
.vm-search button { border: 0; background: var(--vm-red); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.vm-search button:hover { background: var(--vm-red-dark); }

/* ---------- Grid & cards ---------- */
.vm-section { padding: 56px 0; }
.vm-blog .vm-section__title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 24px; font-weight: 800; color: var(--vm-ink); }
.vm-blog .vm-section__title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--vm-red); border-radius: 4px; margin-top: 10px; }

.vm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.vm-card {
	background: var(--vm-card); border-radius: var(--vm-radius); overflow: hidden; box-shadow: var(--vm-shadow);
	display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--vm-shadow-hover); }
.vm-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--vm-red-soft); }
.vm-card__media img.vm-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.vm-card:hover .vm-card__media img.vm-thumb-img { transform: scale(1.05); }
.vm-thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--vm-red-soft), #fff); }
.vm-thumb-ph img { width: 42%; max-width: 180px; opacity: .9; }
.vm-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vm-blog .vm-chip {
	align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	color: var(--vm-red); background: var(--vm-red-soft); padding: 5px 10px; border-radius: 6px; text-decoration: none;
}
.vm-blog .vm-card__title { font-size: 1.25rem; line-height: 1.3; margin: 0; font-weight: 800; }
.vm-blog .vm-card__title a { text-decoration: none; color: var(--vm-ink); }
.vm-blog .vm-card__title a:hover { color: var(--vm-red); }
.vm-card__excerpt { color: var(--vm-muted); margin: 0; line-height: 1.6; font-size: .97rem; }
.vm-card__meta { color: var(--vm-muted); font-size: .85rem; display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.vm-card .vm-btn { align-self: flex-start; margin-top: 6px; }

.vm-card--featured { grid-column: 1 / -1; flex-direction: row; }
.vm-card--featured .vm-card__media { flex: 1.3; aspect-ratio: auto; min-height: 380px; }
.vm-card--featured .vm-card__body { flex: 1; padding: 40px; justify-content: center; }
.vm-blog .vm-card--featured .vm-card__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.vm-card--featured .vm-card__excerpt { font-size: 1.05rem; }
.vm-card--featured .vm-card__meta { margin-top: 0; }

/* Pagination */
.vm-pagination { margin-top: 44px; }
.vm-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vm-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; background: #fff; border: 1px solid var(--vm-line); text-decoration: none; font-weight: 700; color: var(--vm-ink);
}
.vm-pagination .page-numbers.current, .vm-pagination a.page-numbers:hover { background: var(--vm-red); color: #fff; border-color: var(--vm-red); }

/* Empty */
.vm-empty { text-align: center; padding: 40px 20px; max-width: 560px; margin: 0 auto; }
.vm-blog .vm-empty h2 { font-size: 1.8rem; margin: 18px 0 8px; }
.vm-empty p { color: var(--vm-muted); margin: 0 0 22px; }
.vm-empty .vm-search { max-width: 420px; margin: 0 auto; }

/* ---------- CTA band ---------- */
.vm-cta { background: var(--vm-ink); color: #fff; padding: 48px 0; position: relative; overflow: hidden; }
.vm-cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--vm-red); opacity: .9; }
.vm-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.vm-blog .vm-cta h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.vm-cta p { margin: 0; opacity: .85; max-width: 52ch; }
.vm-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.vm-blog .vm-cta .vm-btn--light { background: var(--vm-red); color: #fff; border-color: var(--vm-red); }
.vm-blog .vm-cta .vm-btn--light:hover { background: #fff; color: var(--vm-red); border-color: #fff; }

/* ---------- Single post ---------- */
.vm-post__head { background: #fff; padding: 48px 0 36px; border-bottom: 1px solid var(--vm-line); }
.vm-crumbs { font-size: .88rem; color: var(--vm-muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.vm-blog .vm-crumbs a { text-decoration: none; color: var(--vm-red); font-weight: 600; }
.vm-blog .vm-post__title { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.12; margin: 0 0 18px; font-weight: 800; color: var(--vm-ink); }
.vm-post__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--vm-muted); font-size: .95rem; }
.vm-post__meta img { border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.vm-post__cover { margin: 32px auto 0; }
.vm-post__cover img { width: 100%; border-radius: var(--vm-radius); display: block; box-shadow: var(--vm-shadow); max-height: 560px; object-fit: cover; }

.vm-content { padding: 40px 0 16px; font-size: 1.1rem; line-height: 1.8; color: #2b2622; }
.vm-content > * { margin-top: 0; margin-bottom: 1.3em; }
.vm-blog .vm-content h2 { font-size: 1.75rem; line-height: 1.25; margin: 1.8em 0 .6em; font-weight: 800; color: var(--vm-ink); }
.vm-blog .vm-content h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; font-weight: 800; color: var(--vm-ink); }
.vm-blog .vm-content a { color: var(--vm-red); text-decoration: underline; text-underline-offset: 3px; }
.vm-content ul, .vm-content ol { padding-left: 1.3em; }
.vm-content li { margin-bottom: .4em; }
.vm-content li::marker { color: var(--vm-red); }
.vm-content blockquote { margin: 1.8em 0; padding: 18px 24px; border-left: 4px solid var(--vm-red); background: #fff; border-radius: 0 12px 12px 0; font-size: 1.2rem; font-style: italic; }
.vm-content img, .vm-content .wp-block-image img { border-radius: 12px; }
.vm-content figcaption { font-size: .88rem; color: var(--vm-muted); text-align: center; margin-top: 8px; }
.vm-content table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.vm-content th, .vm-content td { padding: 12px 14px; border-bottom: 1px solid var(--vm-line); text-align: left; }
.vm-content th { background: var(--vm-red); color: #fff; }
.vm-content .alignwide { margin-left: calc(-1 * min(12vw, 160px)); margin-right: calc(-1 * min(12vw, 160px)); max-width: none; }
.vm-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.vm-content .wp-block-button__link { background: var(--vm-red); color: #fff !important; border-radius: 999px; text-decoration: none !important; font-weight: 700; padding: 12px 26px; }

.vm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.vm-blog .vm-tags a { text-decoration: none; background: #fff; border: 1px solid var(--vm-line); padding: 6px 12px; border-radius: 999px; font-size: .88rem; color: var(--vm-muted); }
.vm-blog .vm-tags a:hover { color: var(--vm-red); border-color: var(--vm-red); }
.vm-share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 20px 0 48px; border-top: 1px solid var(--vm-line); font-weight: 700; }
.vm-blog .vm-share a { text-decoration: none; font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 999px; background: var(--vm-red-soft); color: var(--vm-red); }
.vm-blog .vm-share a:hover { background: var(--vm-red); color: #fff; }

.vm-related { background: #fff; }

/* Comments */
.vm-comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.vm-comment-list .comment-body { background: #fff; border: 1px solid var(--vm-line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.vm-comment-list .children { list-style: none; padding-left: 28px; }
.vm-comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.vm-comments .comment-form input[type="text"], .vm-comments .comment-form input[type="email"], .vm-comments .comment-form input[type="url"], .vm-comments .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--vm-line); border-radius: 10px; font: inherit; background: #fff;
}
.vm-comments .comment-form textarea:focus, .vm-comments .comment-form input:focus { outline: 0; border-color: var(--vm-red); box-shadow: 0 0 0 3px var(--vm-red-soft); }
.vm-comments .comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }

/* ---------- Ana site header'ı ile uyum ---------- */
.vm-shell-header, .vm-shell-footer { position: relative; }
.vm-shell-header { z-index: 1000; }
/* Ana sitenin <section> / <main> stilleri blog içeriğini bozmasın */
.vm-blog section { min-height: 0; }

/* ---------- Yedek header/footer (ana sayfa okunamazsa) ---------- */
.vm-fb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.vm-fb-header { background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); position: sticky; top: 0; z-index: 1000; }
.vm-fb-header .vm-fb-wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.vm-fb-logo img { height: 56px; width: auto; display: block; }
.vm-fb-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.vm-fb-nav a { text-decoration: none; color: var(--vm-ink); font-weight: 700; }
.vm-fb-nav a:hover { color: var(--vm-red); }
.vm-fb-btn { background: var(--vm-red); color: #fff !important; padding: 10px 20px; border-radius: 999px; }
.vm-fb-btn--ghost { background: transparent; color: var(--vm-red) !important; border: 2px solid var(--vm-red); padding: 8px 18px; }
.vm-fb-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.vm-fb-toggle span { width: 24px; height: 3px; background: var(--vm-ink); border-radius: 3px; }
.vm-fb-footer { background: #151311; color: #d8d2cc; padding: 56px 0 0; }
.vm-fb-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.vm-fb-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1.05rem; }
.vm-fb-footer a { color: #fff; text-decoration: none; }
.vm-fb-footer a:hover { color: #ff8a80; }
.vm-fb-footer p { line-height: 1.8; margin: 0 0 8px; }
.vm-fb-copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 18px 20px; text-align: center; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.vm-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
	.vm-card--featured .vm-card__body { padding: 28px; }
	.vm-content .alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 860px) {
	.vm-fb-toggle { display: flex; }
	.vm-fb-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; box-shadow: 0 12px 20px rgba(0, 0, 0, .08); }
	.vm-fb-nav.open { display: flex !important; }
	.vm-fb-nav a { padding: 12px 0; border-bottom: 1px solid var(--vm-line); }
	.vm-fb-nav .vm-fb-btn { margin-top: 10px; text-align: center; border-bottom: 0; }
	.vm-fb-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.vm-grid { grid-template-columns: 1fr; }
	.vm-card--featured { flex-direction: column; }
	.vm-card--featured .vm-card__media { min-height: 0; aspect-ratio: 3 / 2; flex: none; }
	.vm-card--featured .vm-card__body { padding: 22px; }
	.vm-hero { padding: 52px 0 56px; }
	.vm-section { padding: 40px 0; }
	.vm-toolbar__inner { flex-direction: column; align-items: stretch; }
	.vm-search { min-width: 0; }
	.vm-content { font-size: 1.04rem; }
	.vm-cta__inner { flex-direction: column; align-items: flex-start; }
	.vm-fb-cols { grid-template-columns: 1fr; }
}
.vm-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.vm-comments .comment-form-cookies-consent label { display: inline; font-weight: 400; }
