/*
Theme Name: FindMyPetCare
Theme URI: https://findmypetcare.com
Author: FindMyPetCare
Author URI: https://findmypetcare.com
Description: Warm, editorial block theme for FindMyPetCare — vet-informed pet care guides. Cream + coral + teal, Fraunces + Plus Jakarta Sans. Full Site Editing.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: findmypetcare
Tags: blog, one-column, two-columns, full-site-editing, block-patterns, block-styles, editor-style, featured-images, template-editing, wide-blocks, custom-colors, custom-logo, custom-menu
*/

/* Small polish that theme.json can't express. */

.fmpc-eyebrow {
  font-family: var(--wp--preset--font-family--plus-jakarta-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
}

.fmpc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--wp--preset--color--background), transparent 5%);
  border: 1px solid var(--wp--preset--color--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wp--preset--color--secondary);
}

.fmpc-card {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 1rem;
  background: var(--wp--preset--color--card);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.fmpc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.25);
}

.fmpc-pill-button a,
a.fmpc-pill-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground) !important;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms ease;
}
.fmpc-pill-button a:hover,
a.fmpc-pill-button:hover { transform: scale(1.02); }

.fmpc-tldr {
  background: color-mix(in oklab, var(--wp--preset--color--secondary), transparent 92%);
  border: 1px solid color-mix(in oklab, var(--wp--preset--color--secondary), transparent 75%);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.fmpc-toc {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 1rem;
  padding: 1.25rem;
  background: var(--wp--preset--color--card);
}
.fmpc-toc ol { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.fmpc-toc li { padding: 0.25rem 0; font-size: 0.9rem; }
.fmpc-toc a { color: inherit; text-decoration: none; }
.fmpc-toc a:hover { color: var(--wp--preset--color--primary); }

.fmpc-author-avatar {
  width: 56px; height: 56px; border-radius: 999px;
  background: color-mix(in oklab, var(--wp--preset--color--primary), transparent 82%);
  color: var(--wp--preset--color--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 600; font-size: 1.2rem;
}

.wp-block-post-featured-image img { border-radius: 1.25rem; }

@media (max-width: 782px) {
  .fmpc-toc { position: static; }
}

/* Hero image */
.fmpc-hero-img img { border-radius: 2rem; box-shadow: 0 20px 50px -30px rgb(0 0 0 / 0.35); }

/* Topic chips (uses core categories list) */
.fmpc-topic-chips { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fmpc-topic-chips li { margin: 0; }
.fmpc-topic-chips a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--background);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}
.fmpc-topic-chips a:hover {
  color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
}

/* Directory preview list */
.fmpc-directory-preview { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.fmpc-directory-preview li {
  background: rgb(255 255 255 / 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0 0 0.6rem;
}

/* Newsletter form */
.fmpc-newsletter { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
.fmpc-newsletter input[type=email] {
  flex: 1 1 260px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--card);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}
.fmpc-newsletter input[type=email]:focus { border-color: var(--wp--preset--color--primary); }
.fmpc-newsletter button {
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 0;
  background: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 150ms ease;
}
.fmpc-newsletter button:hover { transform: scale(1.02); }

/* Search block inside hero */
.wp-block-search .wp-block-search__inside-wrapper {
  border-radius: 999px !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  background: var(--wp--preset--color--card);
  padding: 0.3rem !important;
}
.wp-block-search .wp-block-search__input {
  border: 0 !important;
  background: transparent;
  padding: 0.5rem 0.9rem !important;
}
.wp-block-search .wp-block-search__button {
  border-radius: 999px !important;
  background: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--primary-foreground) !important;
  border: 0 !important;
  padding: 0.5rem 1.1rem !important;
  font-weight: 600;
}

/* Post terms as small chips */
.wp-block-post-terms a { text-decoration: none; }

/* Post title link color */
.wp-block-post-title a { color: var(--wp--preset--color--foreground); text-decoration: none; }
.wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
