/*
Theme Name: PetCare SEO Affiliate
Theme URI: https://reviewphukienchomeo.com/
Author: PetCare SEO Team
Description: Giao dien WordPress toi uu SEO, toc do cao va chuyen doi cho website chia se kien thuc thu cung ket hop Affiliate (Education-First Affiliate).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: petcare-seo
Tags: blog, e-commerce, seo, responsive, one-column, two-columns
*/

:root {
  --pc-primary: #0f766e;
  --pc-primary-dark: #115e59;
  --pc-primary-light: #ccfbf1;
  --pc-sage: #2e7d32;
  --pc-accent: #ea580c;
  --pc-accent-hover: #c2410c;
  --pc-bg: #fafafa;
  --pc-surface: #ffffff;
  --pc-text: #1f2937;
  --pc-muted: #4b5563;
  --pc-border: #e5e7eb;
  --pc-radius: 14px;
  --pc-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --pc-container: 1160px;
  --pc-reading: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--pc-text);
  background-color: var(--pc-bg);
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  line-height: 1.3;
  margin-top: 0;
}

a {
  color: var(--pc-primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

a:hover {
  color: var(--pc-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pc-container {
  width: 100%;
  max-width: var(--pc-container);
  margin: 0 auto;
  padding: 0 20px;
}

.pc-reading-width {
  max-width: var(--pc-reading);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pc-primary);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.pc-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pc-border);
}

.pc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}

.pc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  color: #111827;
  min-width: 0;
}

.pc-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pc-primary), var(--pc-sage));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.pc-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.pc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.pc-nav li {
  position: relative;
}

.pc-nav a {
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
  display: inline-block;
}

.pc-nav a:hover,
.pc-nav .current-menu-item > a {
  color: var(--pc-primary);
}

.pc-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  box-shadow: var(--pc-shadow);
  padding: 8px;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.pc-nav li:hover > .sub-menu {
  display: flex;
}

.pc-nav .sub-menu a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.pc-nav .sub-menu a:hover {
  background: #f3f4f6;
}

.pc-menu-toggle {
  display: none;
  background: #f3f4f6;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--pc-text);
  cursor: pointer;
}

/* Buttons */
.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-align: center;
}

.pc-btn-accent {
  background: var(--pc-accent);
  color: #fff;
}
.pc-btn-accent:hover {
  background: var(--pc-accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.pc-btn-outline {
  background: #fff;
  color: var(--pc-primary);
  border: 1.5px solid var(--pc-primary);
}
.pc-btn-outline:hover {
  background: var(--pc-primary);
  color: #fff;
}

/* Hero */
.pc-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 55%, #fff7ed 100%);
  border-bottom: 1px solid var(--pc-border);
  padding: 56px 0 48px;
}

.pc-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.pc-hero-grid > *,
.pc-article-wrap > *,
.pc-grid-3 > *,
.pc-grid-4 > * {
  min-width: 0;
}

.pc-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #99f6e4;
  color: var(--pc-primary-dark);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pc-hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.pc-hero p.pc-hero-desc {
  font-size: 1.08rem;
  color: var(--pc-muted);
  margin: 0 0 24px;
  max-width: 600px;
}

.pc-search-form {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 7px;
  border-radius: 14px;
  border: 1.5px solid #d1d5db;
  box-shadow: var(--pc-shadow);
  width: 100%;
  max-width: 580px;
}

.pc-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 0.96rem;
  font-family: inherit;
  background: transparent;
}

.pc-search-form .pc-btn {
  flex-shrink: 0;
}

.pc-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pc-pill {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--pc-border);
  color: #374151;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pc-pill:hover {
  border-color: var(--pc-primary);
  color: var(--pc-primary);
}

.pc-hero-card {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--pc-shadow);
}

.pc-hero-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--pc-primary-dark);
}

.pc-checklist-mini {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.pc-checklist-mini li {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--pc-muted);
  padding-left: 12px;
  border-left: 3px solid var(--pc-primary-light);
}

.pc-checklist-mini li strong {
  color: #111827;
}

/* Sections */
.pc-section {
  padding: 52px 0;
}

.pc-section-alt {
  background: #fff;
  border-top: 1px solid var(--pc-border);
  border-bottom: 1px solid var(--pc-border);
}

.pc-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.pc-section-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: 6px;
}

.pc-section-head p {
  margin: 0;
  color: var(--pc-muted);
  font-size: 0.96rem;
}

/* Grids & Cards */
.pc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pc-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow);
}

.pc-card-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e6fffa, #fef3c7);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pc-primary-dark);
  font-weight: 700;
}

.pc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pc-badge {
  display: inline-block;
  align-self: flex-start;
  background: #f0fdfa;
  color: var(--pc-primary-dark);
  border: 1px solid #ccfbf1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.pc-badge-warm {
  background: #fff7ed;
  color: var(--pc-accent-hover);
  border-color: #fed7aa;
}

.pc-card-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.pc-card-title a {
  color: #111827;
}
.pc-card-title a:hover {
  color: var(--pc-primary);
}

.pc-card-excerpt {
  color: var(--pc-muted);
  font-size: 0.92rem;
  margin: 0 0 14px;
  flex: 1;
}

.pc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #6b7280;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

/* Hub Cards */
.pc-hub-card {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-hub-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.pc-hub-card h3 {
  font-size: 1.08rem;
  margin: 4px 0 2px;
}

.pc-hub-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pc-muted);
}

/* Single Article Layout */
.pc-article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
  align-items: start;
  padding: 32px 0 60px;
}

.pc-article-main {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 18px;
  padding: 32px;
}

.pc-breadcrumb {
  font-size: 0.86rem;
  color: #6b7280;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pc-article-header h1 {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  margin-bottom: 14px;
}

.pc-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--pc-muted);
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--pc-border);
}

.pc-featured-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* TOC */
.pc-toc {
  background: #f8fafc;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 26px;
}

.pc-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
}

.pc-toc-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 0.93rem;
}

.pc-toc-list li {
  margin-bottom: 6px;
}

.pc-toc-list li.pc-toc-h3 {
  margin-left: 16px;
  font-size: 0.88rem;
}

/* Entry Content */
.entry-content {
  font-size: 1.03rem;
  line-height: 1.78;
}

.entry-content h2 {
  font-size: 1.45rem;
  margin: 34px 0 14px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.entry-content h3 {
  font-size: 1.18rem;
  margin: 24px 0 10px;
}

.entry-content p {
  margin: 0 0 18px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: #f0fdfa;
  border-left: 4px solid var(--pc-primary);
  border-radius: 0 10px 10px 0;
  color: #134e4a;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.94rem;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--pc-border);
  padding: 10px 12px;
  text-align: left;
}

.entry-content th {
  background: #f8fafc;
  font-weight: 700;
}

/* Shortcode: TL;DR Box */
.pc-tldr-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 24px;
}

.pc-tldr-title {
  font-weight: 800;
  color: #065f46;
  margin-bottom: 8px;
  font-size: 1rem;
}

/* Shortcode: Contextual Product Card */
.pc-product-box {
  background: linear-gradient(180deg, #ffffff 0%, #fffbf7 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 22px;
  margin: 28px 0;
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.08);
}

.pc-product-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pc-product-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  margin: 4px 0 0;
}

.pc-product-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0 18px;
  font-size: 0.93rem;
}

.pc-product-pros,
.pc-product-cons {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.pc-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pc-aff-note {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 10px;
}

/* Shortcode: FAQ Accordion */
.pc-faq-item {
  background: #f8fafc;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.pc-faq-item summary {
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  list-style-position: inside;
}

.pc-faq-answer {
  margin-top: 10px;
  color: var(--pc-muted);
  font-size: 0.95rem;
}

.pc-faq-answer p:last-child {
  margin-bottom: 0;
}

/* Author Box */
.pc-author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  padding: 20px;
  margin-top: 36px;
}

.pc-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pc-primary-light);
}

/* Sidebar */
.pc-sidebar {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 90px;
}

.pc-widget {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  padding: 20px;
  min-width: 0;
}

.pc-widget .pc-search-form {
  gap: 6px;
  padding: 5px;
}

.pc-widget .pc-search-form .pc-btn {
  padding: 10px 14px;
}

.pc-widget h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

/* Disclosure Bar */
.pc-disclosure {
  background: #f8fafc;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: var(--pc-muted);
  margin-bottom: 20px;
}

/* Pagination */
.pc-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pc-pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background: #fff;
  color: var(--pc-text);
  font-weight: 600;
}

.pc-pagination .page-numbers.current {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
  color: #fff;
}

/* Footer */
.pc-footer {
  background: #111827;
  color: #d1d5db;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.pc-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.pc-footer a {
  color: #d1d5db;
  font-size: 0.92rem;
}

.pc-footer a:hover {
  color: #5eead4;
}

.pc-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1f2937;
}

.pc-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pc-footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 980px) {
  .pc-hero-grid,
  .pc-article-wrap {
    grid-template-columns: 1fr;
  }
  .pc-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pc-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pc-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .pc-menu-toggle {
    display: inline-flex;
  }
  .pc-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--pc-border);
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .pc-nav.is-open {
    display: flex;
  }
  .pc-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .pc-grid-3,
  .pc-grid-4,
  .pc-product-cols,
  .pc-footer-grid {
    grid-template-columns: 1fr;
  }
  .pc-article-main {
    padding: 20px;
  }
  .pc-search-form {
    flex-direction: column;
  }
}
