/*
Theme Name: Puppy Blog
Template: twentytwentyfive
Description: Sharp, modern child theme for Puppy.blog.
Version: 2.0.0
*/

/* ── Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset / Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--wp--preset--font-family--body);
  color: var(--wp--preset--color--contrast);
  background: var(--wp--preset--color--base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header ───────────────────────────────────────── */
.wp-block-site-title a {
  text-decoration: none;
  color: var(--wp--preset--color--contrast) !important;
  transition: color 0.15s ease;
}
.wp-block-site-title a:hover {
  color: var(--wp--preset--color--accent) !important;
}

.wp-block-navigation a {
  text-decoration: none;
  color: var(--wp--preset--color--contrast) !important;
  transition: color 0.15s ease;
}
.wp-block-navigation a:hover {
  color: var(--wp--preset--color--accent) !important;
}

/* ── Video Hero ───────────────────────────────────── */
.pb-video-hero {
  line-height: 0;
  position: relative;
  z-index: 20; /* sits above fixed decorations */
  background: #111;
}

.pb-video-hero .wp-block-embed {
  margin: 0 !important;
}

.pb-video-hero .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #111;
}

.pb-video-hero .wp-block-embed__wrapper iframe,
.pb-video-hero .wp-block-embed__wrapper object,
.pb-video-hero .wp-block-embed__wrapper embed {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── Post Grid ────────────────────────────────────── */
.pb-post-grid {
  gap: 1.5rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ── Cards ────────────────────────────────────────── */
.pb-card {
  display: flex;
  flex-direction: column;
}

.pb-card-image .wp-block-post-featured-image,
.pb-card .wp-block-post-featured-image {
  overflow: hidden;
  display: block;
}

.pb-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pb-card:hover .wp-block-post-featured-image img {
  transform: scale(1.05);
}

/* Card image — thin accent bar on hover */
.pb-card .wp-block-post-featured-image::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: var(--wp--preset--color--accent);
  transition: width 0.35s ease;
}
.pb-card:hover .wp-block-post-featured-image::after {
  width: 100%;
}

/* Card title */
.pb-card .wp-block-post-title {
  font-family: var(--wp--preset--font-family--heading) !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
  margin-top: 0.5rem !important;
}

.pb-card .wp-block-post-title a {
  text-decoration: none;
  color: var(--wp--preset--color--contrast) !important;
  transition: color 0.15s ease;
}
.pb-card .wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent) !important;
}

/* Card date */
.pb-card .wp-block-post-date {
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--wp--preset--color--contrast-2) !important;
}

/* Card excerpt */
.pb-card .wp-block-post-excerpt {
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: var(--wp--preset--color--contrast-2) !important;
  margin-top: 0.5rem;
}

.pb-card .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--contrast) !important;
  text-decoration: none;
  border-bottom: 2px solid var(--wp--preset--color--accent);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.pb-card .wp-block-post-excerpt__more-link:hover {
  color: var(--wp--preset--color--accent) !important;
}

/* ── Pagination ───────────────────────────────────── */
.pb-pagination {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.pb-pagination a,
.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span,
.wp-block-query-pagination-previous a,
.wp-block-query-pagination-next a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp--preset--color--contrast) !important;
  text-decoration: none;
  border: 1.5px solid #e0e0e0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pb-pagination a:hover,
.wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination-previous a:hover,
.wp-block-query-pagination-next a:hover {
  background: var(--wp--preset--color--contrast);
  border-color: var(--wp--preset--color--contrast);
  color: #fff !important;
}

.wp-block-query-pagination-numbers .current {
  background: var(--wp--preset--color--accent) !important;
  border-color: var(--wp--preset--color--accent) !important;
  color: #fff !important;
}

/* ── Single post ──────────────────────────────────── */
.wp-block-post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.wp-block-post-content img {
  max-width: 100%;
  height: auto;
}

.wp-block-gallery {
  gap: 0.5rem !important;
}

/* ── Margin Decorations ───────────────────────────── */

/* Fixed: stays in place while page scrolls */
.pb-decor {
  position: fixed !important;
  pointer-events: none;
  z-index: 5;
  margin: 0 !important;
}

.pb-decor img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tan puppies — fixed left, centered vertically */
.pb-decor-left {
  left: -280px;
  top: 50%;
  width: 1040px;
  transform: translateY(-50%) rotate(-5deg);
  opacity: 0.95;
}

/* Sleeping pile — fixed right, centered vertically */
.pb-decor-right {
  right: -250px;
  top: 50%;
  width: 920px;
  transform: translateY(-50%) rotate(4deg);
  opacity: 0.95;
}

/* Header above everything */
header.wp-block-template-part {
  position: relative;
  z-index: 100;
  background: #fff;
}

/* Footer above decorations */
footer.wp-block-template-part {
  position: relative;
  z-index: 100;
  background: #fff;
}

/*
 * Posts section: no background, just padding so the fixed
 * decorations show through the gaps between cards.
 */
.pb-posts-section {
  position: relative;
}

.pb-posts-section .wp-block-query.alignwide {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.78);
  padding: 1.5rem !important;
  border-radius: 4px;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Cards inherit the container transparency — no double layer */
.pb-card {
  background: transparent !important;
}

/* Hide on mobile */
@media (max-width: 767px) {
  .pb-decor { display: none !important; }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .pb-post-grid {
    gap: 2rem 1rem !important;
  }
}
