/* Shared base of blog.css: the rules every theme has in common. ThemeAssetTagHelper links this file right before the
   theme's own blog.css, so a theme rule wins on equal specificity. A fix for all themes goes here; a theme-only change
   goes into the theme's file (Themes/README.md, "Ortak CSS tabanı"). */

/* Blog (list + post). Extends site.css / browse.css; tokens from :root. */
.blog { padding-bottom: 48px; }
.blog-head { margin-bottom: 20px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.blog-tags .chip.active { background: var(--ink); color: #fff; }
.blog-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 0; }

/* list */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.blog-card-link { display: flex; flex-direction: column; gap: 8px; color: inherit; }
.blog-card-link:hover .blog-card-title { color: var(--action, var(--brand)); }
.blog-card-link:focus-visible { outline: var(--focus-ring, 2px solid var(--action, var(--brand))); outline-offset: 4px; border-radius: var(--radius-sm); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-card-link:hover .blog-card-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .blog-card-media img { transition: none; } .blog-card-link:hover .blog-card-media img { transform: none; } }
.blog-meta { color: var(--muted); font-size: 14px; }
.blog-card-title { font-family: var(--font-display); font-size: 20px; font-weight: var(--fw-semibold, 600); line-height: 1.2; }
.blog-card-excerpt { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* post */
.blog-post { max-width: 760px; margin: 0 auto; }
.blog-post-head { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 24px; }
.blog-post-head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; overflow-wrap: anywhere; }
.blog-cover { margin: 0 0 32px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { font-size: 18px; color: var(--ink); overflow-wrap: break-word; }
.blog-body > :first-child { margin-top: 0; }
.blog-body p { margin: 0 0 16px; }
.blog-body p + p { margin-top: 0; }
.blog-body h2 { font-size: 26px; margin: 36px 0 12px; }
.blog-body h3 { font-size: 21px; margin: 28px 0 10px; }
.blog-body ul, .blog-body ol { padding-left: 24px; margin: 0 0 16px; }
.blog-body li + li { margin-top: 6px; }
.blog-body a { color: var(--action, var(--brand)); text-decoration: underline; }
.blog-body img { height: auto; border-radius: var(--radius-sm); margin: 24px 0; }
.blog-body figure { margin: 24px 0; }
.blog-body figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.blog-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--action, var(--brand)); color: var(--ink-2); font-style: italic; }
.blog-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); margin: 24px 0; }
.blog-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; display: block; overflow-x: auto; }
.blog-body th, .blog-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.blog-post .blog-tags { margin: 32px 0 0; }

.blog-products { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.blog-cap { font-family: var(--font-body); font-size: 13px; font-weight: var(--fw-bold, 700); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.blog-back { margin-top: 40px; text-align: center; }
@media (max-width: 720px) {
  .blog-body { font-size: 17px; }
  .blog-products { margin-top: 40px; }
}
