/**
 * PetsLover24 Master Design System & Core Stylesheet
 * 
 * Inspired by the Recipe-Say reference aesthetic:
 * - Vibrant purple outer canvas frame
 * - Floating rounded application window with macOS chrome bar
 * - Light lavender-gray background (#F4F5F9)
 * - White rounded surface cards with soft shadows
 * - Pill-style navigation with dark active state (#18192A)
 * - Fixed-width left filter sidebar with collapsible sections
 * - Rich purple gradient hero banner (#6344E7 -> #7C3AED -> #8B5CF6)
 * - Horizontal card carousels with smooth scrolling and arrow controls
 * - Interactive pet calculators and search filtering
 */

:root {
  /* Brand Color Palette */
  --bg-outer: #5844E1;
  --bg-outer-glow: #6C55F9;
  --bg-app: #F4F5F9;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;

  --primary: #6344E7;
  --primary-hover: #5031D4;
  --primary-light: #F0EDFF;
  --primary-border: #E0D9FD;

  --accent-amber: #FFA502;
  --accent-amber-light: #FEF3C7;
  --accent-green: #10B981;
  --accent-green-light: #D1FAE5;
  --accent-coral: #FF4757;
  --accent-coral-light: #FFE8EC;

  /* Typography Colors */
  --text-main: #18192A;
  --text-heading: #11142D;
  --text-muted: #7E8497;
  --text-light: #A0A5B9;

  /* Borders & Radii */
  --border-light: #EAEAEE;
  --border-subtle: #F0F1F5;
  --radius-outer: 32px;
  --radius-card: 22px;
  --radius-inner: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-window: 0 30px 80px -15px rgba(22, 10, 58, 0.45);
  --shadow-card: 0 4px 20px -2px rgba(26, 32, 53, 0.05);
  --shadow-card-hover: 0 16px 36px -6px rgba(99, 68, 231, 0.14);
  --shadow-pill: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg-outer);
  background-image: radial-gradient(circle at 10% 20%, rgba(130, 95, 255, 0.45) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(88, 68, 225, 0.55) 0%, transparent 45%);
  color: var(--text-main);
  min-height: 100vh;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
}

body.canvas-fullscreen {
  padding: 0;
}
body.canvas-fullscreen .app-window {
  border-radius: 0;
  max-width: 100%;
}

/* Outer Application Container (Floating Window) */
.app-window {
  width: 100%;
  max-width: 1480px;
  background: var(--bg-app);
  border-radius: var(--radius-outer);
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin: 0 auto;
}

/* Chrome / Browser Header Bar */
.window-chrome {
  background: #EBECEF;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-top-left-radius: var(--radius-outer);
  border-top-right-radius: var(--radius-outer);
  user-select: none;
}

.chrome-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 120px;
}
.chrome-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.chrome-dot.red { background: #FF5F56; border: 1px solid #E0443E; }
.chrome-dot.yellow { background: #FFBD2E; border: 1px solid #DEA123; }
.chrome-dot.green { background: #27C93F; border: 1px solid #1AAB29; }

.chrome-address-bar {
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #555A6E;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  width: 320px;
  justify-content: center;
}
.chrome-address-bar svg {
  color: #10B981;
}

.chrome-actions {
  width: 120px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  color: #8C91A4;
}

/* Main Application Header */
.app-header {
  background: #FFFFFF;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo img {
  height: 44px;
  width: auto;
}

/* Navigation Pills */
.nav-pills-wrap {
  display: flex;
  align-items: center;
}
.nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-pill-btn {
  background: #F4F5F8;
  border: 1px solid transparent;
  color: #4B5565;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-pill-btn:hover {
  background: #EAECEF;
  color: #11142D;
  transform: translateY(-1px);
}
.nav-pill-btn.active {
  background: #18192A !important;
  color: #FFFFFF !important;
}
.pill-badge {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.4;
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  background: #F4F5F8;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5565;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: #E8EAEE;
  color: var(--primary);
  transform: scale(1.05);
}
.notification-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent-coral);
  border-radius: 50%;
  border: 2px solid #FFFFFF;
}

.favorites-pill {
  background: #FFF0F2;
  color: var(--accent-coral);
  border: 1px solid #FFE0E5;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.favorites-pill:hover {
  background: #FFE4E8;
  transform: translateY(-1px);
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8F9FA;
  border: 1px solid var(--border-light);
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--primary);
}
.user-status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
}

.mobile-menu-toggle {
  display: none;
}

/* ==================== MAIN WORKSPACE ==================== */
.app-body {
  display: flex;
  padding: 24px;
  gap: 24px;
  align-items: flex-start;
  min-height: calc(100vh - 140px);
}

/* ==================== LEFT SIDEBAR ==================== */
.app-sidebar {
  width: 270px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 4px 20px -2px rgba(26, 32, 53, 0.08);
  border: 1px solid var(--border-subtle);
  position: -webkit-sticky;
  position: sticky;
  top: 86px;
  align-self: flex-start;
  max-height: calc(100vh - 105px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #E2E4E9 transparent;
  z-index: 40;
}

.sidebar-mobile-header {
  display: none;
}

.sidebar-search-box {
  background: #F4F5F8;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
  margin-bottom: 20px;
}
.sidebar-search-box:focus-within {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 68, 231, 0.15);
}
.sidebar-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: var(--text-main);
  font-weight: 500;
}
.sidebar-search-filter-icon {
  color: var(--text-muted);
  cursor: pointer;
}

.sidebar-group {
  margin-bottom: 22px;
}
.sidebar-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  color: #4B5565;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}
.sidebar-group-header .header-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-group-header svg {
  transition: transform 0.2s ease;
}
.sidebar-group-header.collapsed svg {
  transform: rotate(-90deg);
}

/* Reference Highlight Amber Header */
.dietary-highlight-header {
  background: var(--accent-amber);
  color: #11142D !important;
  border-radius: var(--radius-pill);
  padding: 8px 14px !important;
  box-shadow: 0 4px 12px rgba(255, 165, 2, 0.25);
  margin-bottom: 12px;
}

.sidebar-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 6px;
  margin-top: 6px;
  transition: max-height 0.25s ease;
}
.sidebar-items-list.collapsed-list {
  display: none;
}

.sidebar-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4B5565;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.sidebar-item-btn:hover {
  background: #F4F5F8;
  color: var(--text-heading);
  transform: translateX(2px);
}
.sidebar-item-btn.active {
  background: #EDE9FE !important;
  color: #6344E7 !important;
  font-weight: 700 !important;
  border-color: rgba(99, 68, 231, 0.2) !important;
  box-shadow: 0 2px 8px rgba(99, 68, 231, 0.12);
}
.sidebar-count {
  font-size: 11px;
  background: rgba(99, 68, 231, 0.1);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
}
.sidebar-item-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #4B5565;
  text-decoration: none;
  transition: all 0.2s;
}
.sidebar-item-link:hover {
  background: #F4F5F8;
  color: var(--primary);
  transform: translateX(2px);
}

/* ==================== MAIN CONTENT AREA ==================== */
.app-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-filter-trigger-bar {
  display: none;
}

/* ==================== HERO ROW ==================== */
.hero-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: stretch;
}

.hero-banner {
  background: linear-gradient(135deg, #6344E7 0%, #7C3AED 50%, #8B5CF6 100%);
  border-radius: 26px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #FFFFFF;
  box-shadow: 0 16px 36px -6px rgba(99, 68, 231, 0.35);
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-mascot-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mascot-img {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-title {
  font-size: 27px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  max-width: 580px;
}
.hero-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.hero-pill {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
}
.hero-actions {
  margin-top: 8px;
}
.hero-cta-btn {
  background: #FFFFFF;
  color: var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.2s;
}
.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  background: #FAF9FF;
}

/* Pet Hub Mini Panel (Screenshot "Your Cookbook") */
.cookbook-panel {
  background: #FFFFFF;
  border-radius: 26px;
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cookbook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookbook-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookbook-title-wrap h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-heading);
}
.cookbook-view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.cookbook-stats-row {
  margin: 14px 0;
}
.cookbook-number {
  font-size: 38px;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1;
}
.cookbook-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}
.cookbook-avatars-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.avatar-pet {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  margin-left: -8px;
}
.avatar-pet:first-child {
  margin-left: 0;
}
.avatar-more {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F4F5F8;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  margin-left: -8px;
}
.cookbook-browse-btn {
  background: #F4F5F8;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  transition: all 0.2s;
}
.cookbook-browse-btn:hover {
  background: #EDE9FE;
  color: var(--primary);
}

/* ==================== MAIN LIVE SEARCH FIELD ==================== */
.main-search-bar-wrap {
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.main-search-bar-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 68, 231, 0.14);
}
.main-search-bar-wrap input {
  border: none;
  outline: none;
  font-size: 15px;
  width: 100%;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
}
.search-submit-pill-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.search-submit-pill-btn:hover {
  background: var(--primary-hover);
}

/* ==================== ACTIVE FILTER CONTAINER ==================== */
.active-filter-container {
  display: none;
  flex-direction: column;
  gap: 20px;
}
.active-filter-container.active {
  display: flex;
}
.active-filter-banner {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}
.filter-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
}
.filter-type-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}
.filter-active-pill {
  background: #EDE9FE;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}
.filter-count-badge {
  font-size: 12px;
  background: #F4F5F8;
  color: var(--text-heading);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.clear-filter-btn {
  background: #FFF0F2;
  border: 1px solid #FFE0E5;
  color: var(--accent-coral);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.clear-filter-btn:hover {
  background: #FFE4E8;
}

.filter-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ==================== CONTENT SECTIONS & DECKS ==================== */
.content-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.badge-purple { background: #EDE9FE; color: #6344E7; }
.badge-orange { background: #FEF3C7; color: #D97706; }
.badge-green { background: #D1FAE5; color: #059669; }

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.3px;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scroll-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #4B5565;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.scroll-ctrl-btn:hover {
  background: #F4F5F8;
  color: var(--primary);
  border-color: var(--primary-border);
}
.view-all-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-left: 8px;
  transition: color 0.2s;
}
.view-all-link:hover {
  text-decoration: underline;
}

/* Horizontal Scroll Container */
.cards-scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  padding-top: 4px;
  scrollbar-width: thin;
  scrollbar-color: #DDD6FE transparent;
  -webkit-overflow-scrolling: touch;
}
.cards-scroll-container::-webkit-scrollbar {
  height: 6px;
}
.cards-scroll-container::-webkit-scrollbar-thumb {
  background: #DDD6FE;
  border-radius: 999px;
}

/* ==================== PET CARD (REFERENCE-INSPIRED) ==================== */
.pet-card {
  width: 300px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  position: relative;
}
.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #EDE9FE url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?auto=format&fit=crop&w=600&h=360&q=80') center/cover no-repeat;
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.pet-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-coral);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

.card-bookmark-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5565;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.card-bookmark-btn:hover {
  transform: scale(1.1);
  color: var(--accent-coral);
  background: #FFFFFF;
}
.card-bookmark-btn.active {
  color: var(--accent-coral);
  background: #FFFFFF;
}
.card-bookmark-btn.active svg {
  fill: var(--accent-coral);
}

.card-content {
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.card-title a:hover {
  color: var(--primary);
}
.card-excerpt {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== ADJUSTED YOUTUBE VIDEO BOX IN PET CARD ==================== */
.card-video-box {
  margin: 8px 0 4px 0;
  background: #F9F8FD;
  border: 1px solid #EAE6FA;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.22s ease;
  position: relative;
}
.card-video-box:hover {
  background: #F4EFFF;
  border-color: #D3C7FB;
  box-shadow: 0 4px 14px rgba(99, 68, 231, 0.12);
}
.card-video-thumb-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.card-video-thumb-container:hover {
  background: rgba(99, 68, 231, 0.04);
}
.card-video-thumb-wrap {
  position: relative;
  width: 96px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #18192A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.card-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card-video-box:hover .card-video-thumb {
  transform: scale(1.08);
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  background: #FF0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.card-video-box:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #E11D48;
}
.video-duration-tag {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.85);
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.2;
}
.card-video-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.video-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.video-badge-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #6344E7;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.video-click-prompt {
  font-size: 9.5px;
  font-weight: 700;
  color: #10B981;
  background: #ECFDF5;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}
.video-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.card-video-box:hover .video-card-title {
  color: #6344E7;
}

/* Inline Card Player (Starts right inside the card!) */
.card-inline-player {
  padding: 6px;
  background: #0F111E;
  border-radius: 12px;
  animation: fadeIn 0.25s ease;
}
.inline-video-frame-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.inline-video-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.inline-video-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 2px 4px;
  font-size: 11px;
}
.inline-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.inline-toolbar-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.inline-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}
.inline-close-btn {
  background: #E11D48;
}
.inline-close-btn:hover {
  background: #F43F5E;
}

/* File Protocol Helper Banner */
.file-protocol-banner {
  background: linear-gradient(90deg, #6344E7 0%, #7928CA 100%);
  color: #FFFFFF;
  padding: 10px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 999999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.file-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.file-banner-btn {
  background: #FFFFFF;
  color: #6344E7;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.file-banner-btn:hover {
  transform: scale(1.05);
}
.file-banner-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

/* In-Modal File Protocol Notice */
.modal-file-notice {
  background: #FFFBEB;
  border-top: 1px solid #FDE68A;
  padding: 8px 16px;
  font-size: 12px;
  color: #92400E;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.tag-chip {
  background: #F4F5F8;
  color: #4B5565;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.card-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
}
.card-difficulty {
  color: #059669;
  font-weight: 700;
}
.card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==================== EXPLORE BY PET TYPE GRID ==================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.category-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card-hover);
}
.category-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #F4F5F8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.category-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-heading);
}
.category-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==================== BLOG POSTS GRID ==================== */
.blog-posts-grid, .archive-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ==================== PET CALCULATORS COMPONENT ==================== */
.calculators-widget-container {
  background: #FFFFFF;
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  padding: 24px;
}
.calc-vet-disclaimer-badge {
  font-size: 12px;
  font-weight: 700;
  color: #6D28D9;
  background: #EDE9FE;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.calc-tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.calc-tab-btn {
  background: #F4F5F8;
  border: 1px solid transparent;
  color: #4B5565;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.calc-tab-btn:hover {
  background: #EAECEF;
}
.calc-tab-btn.active {
  background: #6344E7;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(99, 68, 231, 0.25);
}

.calc-tab-panel {
  display: none;
}
.calc-tab-panel.active {
  display: block;
}

.calc-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
.calc-inputs-col h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.calc-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.calc-field-group {
  margin-bottom: 18px;
}
.calc-field-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}
.calc-range-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.calc-range-wrapper input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}
.range-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  background: #EDE9FE;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.calc-select, .calc-input-num {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  background: #F9FAFB;
  outline: none;
}
.calc-select:focus, .calc-input-num:focus {
  border-color: var(--primary);
  background: #FFFFFF;
}
.calc-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.calc-result-box {
  background: #FAF9FF;
  border: 1px solid #E0D9FD;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.result-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.result-hero-number {
  font-size: 52px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin: 6px 0 2px 0;
}
.result-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}
.result-badge-stage {
  margin: 14px 0 10px 0;
  background: #10B981;
  color: #FFFFFF;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
}
.result-advice-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
}
.result-portion-cups {
  font-size: 14.5px;
  font-weight: 800;
  color: #10B981;
  margin: 10px 0;
}

/* Checklist Tool */
.checklist-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.checklist-score-badge {
  background: #EDE9FE;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
}
.checklist-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.check-item {
  background: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.check-item:hover {
  background: #FFFFFF;
  border-color: var(--primary-border);
}
.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

/* Breed Compare */
.breed-compare-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.breed-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.breed-compare-table th, .breed-compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}
.breed-compare-table th {
  background: #F4F5F8;
  font-weight: 800;
}

/* ==================== ADSENSE COMPLIANT SLOT ==================== */
.adsense-slot-wrapper {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.adsense-disclosure-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.adsense-slot-container {
  width: 100%;
  max-width: 970px;
  min-height: 100px;
  background: #FAF9FD;
  border: 1px dashed #DDD6FE;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.adsense-placeholder-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6B7280;
  font-size: 13px;
}
.adsense-ph-icon {
  font-size: 24px;
}
.adsense-ph-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adsense-ph-text strong {
  color: #374151;
}

/* ==================== NEWSLETTER CARD ==================== */
.newsletter-card-wrapper {
  margin: 12px 0;
}
.newsletter-card {
  background: linear-gradient(135deg, #18192A 0%, #24263F 100%);
  border-radius: 26px;
  padding: 36px 40px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-card);
}
.newsletter-decor-icon {
  font-size: 56px;
  flex-shrink: 0;
}
.newsletter-content-wrap {
  flex: 1;
}
.newsletter-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.newsletter-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 650px;
}
.newsletter-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 18px;
  max-width: 540px;
  gap: 10px;
}
.newsletter-input-icon {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}
.newsletter-input {
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 14px;
  width: 100%;
}
.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.newsletter-submit-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.newsletter-submit-btn:hover {
  background: var(--primary-hover);
}
.newsletter-consent-note {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
}

/* ==================== ABOUT & TRUST BLOCK ==================== */
.about-trust-block {
  background: #FFFFFF;
  border-radius: 26px;
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-trust-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.about-trust-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.trust-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.trust-badge-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.trust-badge-item h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.trust-badge-item p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==================== FOOTER ==================== */
.app-footer {
  background: #FFFFFF;
  border-bottom-left-radius: var(--radius-outer);
  border-bottom-right-radius: var(--radius-outer);
  padding: 44px 40px 24px 40px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo-link img {
  height: 40px;
  width: auto;
}
.footer-tagline {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1.2px;
}
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.footer-contact-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.footer-contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.footer-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 14px;
}
.footer-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-menu-list a {
  color: #4B5565;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, transform 0.15s;
  display: inline-block;
}
.footer-menu-list a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-medical-disclaimer {
  background: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==================== SINGLE POST & PAGE PROSE ==================== */
.standard-page-card, .single-article-card {
  background: #FFFFFF;
  border-radius: 26px;
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}
.single-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.single-breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb-current {
  color: #374151;
  font-weight: 600;
}

.article-header {
  margin-bottom: 24px;
}
.article-badges-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.article-cat-badge {
  background: #EDE9FE;
  color: #6344E7;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.article-difficulty-badge {
  background: #D1FAE5;
  color: #065F46;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}
.article-read-time-badge {
  background: #F4F5F8;
  color: #4B5565;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.article-h1-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.meta-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.meta-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #EDE9FE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.meta-author-name {
  font-weight: 800;
  color: var(--text-heading);
  display: block;
}
.meta-author-role {
  color: var(--text-muted);
  font-size: 12px;
}
.meta-date-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}
.meta-updated-tag {
  background: #ECFDF5;
  color: #059669;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.article-featured-media {
  margin: 24px 0;
  border-radius: 20px;
  overflow: hidden;
  max-height: 450px;
}
.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Prose Styles */
.prose {
  font-size: 16px;
  line-height: 1.75;
  color: #2D3748;
}
.prose p {
  margin-bottom: 20px;
}
.prose h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  margin: 36px 0 16px 0;
  letter-spacing: -0.3px;
}
.prose h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 28px 0 12px 0;
}
.prose ul, .prose ol {
  margin: 0 0 20px 24px;
}
.prose li {
  margin-bottom: 8px;
}

/* Callout Boxes */
.callout-box {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  margin: 24px 0;
}
.callout-tip {
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
}
.callout-tip .callout-icon { font-size: 24px; }
.callout-tip h4 { color: #6D28D9; font-size: 16px; font-weight: 800; margin-bottom: 6px; }

.callout-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
}
.callout-warning .callout-icon { font-size: 24px; }
.callout-warning h4 { color: #B45309; font-size: 16px; font-weight: 800; margin-bottom: 6px; }

/* Table of Contents */
.article-toc {
  background: #FAF9FF;
  border: 1px solid #E0D9FD;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
}
.article-toc h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.article-toc a {
  color: #4B5565;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s;
}
.article-toc a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Article Table */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article-table th {
  background: #F4F5F8;
  color: var(--text-heading);
  font-weight: 800;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border-light);
}
.article-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: #374151;
}

/* FAQ Section */
.article-faq-section {
  margin: 36px 0;
}
.article-faq-section h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px 20px;
}
.faq-question {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.faq-answer {
  font-size: 13.5px;
  color: #4B5565;
  margin: 0;
}

/* Author Box */
.article-author-card {
  background: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 32px 0 20px 0;
}
.author-avatar-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #EDE9FE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.author-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 2px;
}
.author-title {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.author-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.tags-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag-pill {
  background: #F4F5F8;
  color: #4B5565;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.tag-pill:hover {
  background: #EDE9FE;
  color: var(--primary);
}

/* ==================== DRAWERS & MODALS ==================== */
.favorites-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.favorites-drawer.drawer-open {
  right: 0;
}
.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-close-btn {
  background: #F4F5F8;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}
.drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-empty-msg {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  margin-top: 40px;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
}
.drawer-backdrop.active {
  display: block;
}

/* Quick Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 20, 45, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
.search-modal.active {
  display: flex;
}
.search-modal-box {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
.search-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-modal-header input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-main);
}
.search-modal-close {
  background: #F4F5F8;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.search-modal-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 20px 24px;
}
.search-modal-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Tip Modal */
.tip-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tip-modal.active {
  display: flex;
}
.tip-modal-box {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.tip-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #F4F5F8;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.tip-icon { font-size: 40px; margin-bottom: 12px; }
.tip-ack-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  margin-top: 18px;
  cursor: pointer;
}

/* 404 & Empty State */
.error-404-card {
  background: #FFFFFF;
  border-radius: 26px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.error-paw-icon { font-size: 64px; margin-bottom: 16px; }
.error-title { font-size: 28px; font-weight: 900; color: var(--text-heading); margin-bottom: 8px; }
.error-desc { font-size: 15px; color: var(--text-muted); max-width: 500px; margin: 0 auto; }
.error-quick-links { display: flex; justify-content: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* ==================== ARTICLE VIDEO SHOWCASE (SINGLE POST) ==================== */
.article-video-showcase {
  background: #F9F8FD;
  border: 1px solid #EAE6FA;
  border-radius: 20px;
  padding: 24px;
  margin: 36px 0;
  box-shadow: 0 4px 18px rgba(99, 68, 231, 0.06);
}
.video-showcase-header {
  margin-bottom: 16px;
}
.video-showcase-badge {
  display: inline-block;
  background: #EDE9FE;
  color: #6344E7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.video-showcase-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
  margin: 4px 0 6px 0;
}
.video-showcase-header p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}
.article-video-frame-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.article-video-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
}
.watch-on-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E11D48;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.watch-on-yt-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}
.video-duration-note {
  color: var(--text-muted);
  font-weight: 600;
}

/* ==================== INTERACTIVE VIDEO MODAL POPUP ==================== */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.video-modal.active {
  display: flex;
}
.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 20, 45, 0.78);
  backdrop-filter: blur(6px);
}
.video-modal-dialog {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 820px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.video-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.video-modal-icon {
  color: #E11D48;
  font-size: 16px;
  flex-shrink: 0;
}
.video-modal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-modal-close-btn {
  background: #F4F5F8;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  color: #4B5565;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.video-modal-close-btn:hover {
  background: #FFE4E8;
  color: #E11D48;
}
.video-modal-player-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  background: #000;
}
.video-modal-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
  background: #FAF9FF;
  border-top: 1px solid var(--border-subtle);
}
.video-modal-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-heading);
  text-decoration: none;
  transition: all 0.2s;
}
.video-modal-yt-btn:hover {
  border-color: #E11D48;
  color: #E11D48;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
}
