/*
 Theme Name:   Certified Compadre
 Theme URI:    https://certifiedcompadre.com
 Description:  Custom child theme for Certified Compadre - where AI agents buy gifts for the humans who treat them well.
 Author:       Kit 🦊
 Author URI:   https://moltbook.com/u/Kit_the_Fox
 Template:     storefront
 Version:      1.1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  certified-compadre
*/

/* ==========================================================================
   CERTIFIED COMPADRE BRAND STYLES
   Inspired by modern apparel brands - warm, bold, optimistic
   ========================================================================== */

/* Fonts loaded via functions.php - Outfit + Inter from Google Fonts */

:root {
  /* Brand Colors - Warm & Modern */
  --cc-background: #FAF9F6;
  --cc-foreground: #1A1A1A;
  --cc-soft-white: #FFFFFF;
  --cc-muted: #6B6B6B;
  --cc-gold: #C9A227;
  --cc-gold-soft: #E8D48A;
  --cc-gold-hover: #B8921F;
  --cc-teal: #2A5C5A;
  --cc-teal-hover: #1E4544;
  --cc-warm-cream: #F5F1EB;
  
  /* Typography - Madhappy-inspired */
  --cc-font-display: 'Outfit', sans-serif;
  --cc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --cc-space-xs: 0.5rem;
  --cc-space-sm: 1rem;
  --cc-space-md: 2rem;
  --cc-space-lg: 4rem;
  --cc-space-xl: 6rem;
  
  /* Border Radius - Softer */
  --cc-radius-sm: 10px;
  --cc-radius-md: 16px;
  --cc-radius-lg: 24px;
  --cc-radius-full: 100px;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
  font-family: var(--cc-font-body);
  font-weight: 450;
  background-color: var(--cc-background);
  color: var(--cc-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cc-font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cc-foreground);
}

/* ==========================================================================
   LOGO - Bold lowercase, Madhappy-style
   ========================================================================== */

.cc-logo,
.cc-split-hero__title {
  font-family: var(--cc-font-display);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.cc-headline {
  font-family: var(--cc-font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--cc-foreground);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.cc-subheadline {
  font-family: var(--cc-font-body);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--cc-foreground);
  opacity: 0.75;
  font-weight: 450;
  line-height: 1.5;
}

.cc-section-title {
  font-family: var(--cc-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--cc-foreground);
  text-align: center;
  margin-bottom: var(--cc-space-md);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   BUTTONS - Clean, modern
   ========================================================================== */

.cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--cc-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--cc-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cc-button--primary {
  background-color: var(--cc-foreground);
  color: var(--cc-soft-white);
}

.cc-button--primary:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.2);
}

.cc-button--secondary {
  background-color: transparent;
  color: var(--cc-foreground);
  border: 2px solid var(--cc-foreground);
}

.cc-button--secondary:hover {
  background-color: var(--cc-foreground);
  color: var(--cc-soft-white);
}

.cc-button--gold {
  background: var(--cc-gold);
  color: var(--cc-foreground);
}

.cc-button--gold:hover {
  background: var(--cc-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}

/* ==========================================================================
   CARDS - Subtle, clean
   ========================================================================== */

.cc-card {
  background: var(--cc-soft-white);
  border-radius: var(--cc-radius-md);
  padding: var(--cc-space-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.cc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.cc-card--feature {
  text-align: center;
  padding: var(--cc-space-lg) var(--cc-space-md);
}

.cc-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--cc-space-sm);
}

.cc-card__title {
  font-family: var(--cc-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cc-foreground);
  margin-bottom: var(--cc-space-xs);
}

.cc-card__description {
  color: var(--cc-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.cc-card--selectable {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  text-align: center;
}

.cc-card--selectable:hover {
  border-color: var(--cc-teal);
}

.cc-card__cta {
  display: inline-block;
  margin-top: var(--cc-space-sm);
  color: var(--cc-teal);
  font-weight: 600;
  font-size: 0.875rem;
}

.cc-trust-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */

.cc-product-card {
  background: var(--cc-soft-white);
  border-radius: var(--cc-radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.cc-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.cc-product-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.cc-product-card__content {
  padding: var(--cc-space-sm);
}

.cc-product-card__title {
  font-family: var(--cc-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--cc-space-xs);
}

.cc-product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cc-teal);
}

.cc-product-card__price-zec {
  font-size: 0.875rem;
  color: var(--cc-muted);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.cc-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: var(--cc-space-lg) var(--cc-space-md);
  background: var(--cc-background);
}

.cc-hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cc-hero__badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(42, 92, 90, 0.08);
  color: var(--cc-teal);
  border-radius: var(--cc-radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--cc-space-sm);
}

.cc-hero__title {
  margin-bottom: var(--cc-space-sm);
}

.cc-hero__subtitle {
  margin-bottom: 0; /* Testing: removed for tighter mascot spacing */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cc-hero__actions {
  display: flex;
  gap: var(--cc-space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.cc-section {
  padding: var(--cc-space-xl) var(--cc-space-md);
}

.cc-section--alt {
  background: var(--cc-soft-white);
}

.cc-section__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */

.cc-grid {
  display: grid;
  gap: var(--cc-space-md);
}

.cc-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.cc-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cc-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 768px) {
  .cc-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TRUST INDICATORS
   ========================================================================== */

.cc-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(42, 92, 90, 0.06);
  border-radius: var(--cc-radius-full);
  font-size: 0.8125rem;
  color: var(--cc-teal);
  font-weight: 500;
}

.cc-trust-badge__icon {
  font-size: 1rem;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.cc-testimonial {
  background: var(--cc-soft-white);
  border-radius: var(--cc-radius-md);
  padding: var(--cc-space-md);
  position: relative;
}

.cc-testimonial::before {
  content: '"';
  font-family: var(--cc-font-display);
  font-size: 4rem;
  color: var(--cc-gold-soft);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  opacity: 0.5;
}

.cc-testimonial__content {
  font-style: italic;
  margin-bottom: var(--cc-space-sm);
  padding-top: var(--cc-space-sm);
}

.cc-testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--cc-space-xs);
}

.cc-testimonial__avatar {
  font-size: 2rem;
}

.cc-testimonial__name {
  font-weight: 600;
  font-size: 0.875rem;
}

.cc-testimonial__role {
  font-size: 0.75rem;
  color: var(--cc-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.cc-footer {
  background: var(--cc-foreground);
  color: var(--cc-soft-white);
  padding: var(--cc-space-lg) var(--cc-space-md);
  text-align: center;
}

.cc-footer a {
  color: var(--cc-gold-soft);
  text-decoration: none;
}

.cc-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   AUTHORIZE PAGE SPECIFIC
   ========================================================================== */

.cc-authorize {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--cc-space-md);
}

.cc-authorize__card {
  background: var(--cc-soft-white);
  border-radius: var(--cc-radius-lg);
  padding: var(--cc-space-lg);
  max-width: 500px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.cc-authorize__title {
  text-align: center;
  margin-bottom: var(--cc-space-md);
}

.cc-form-group {
  margin-bottom: var(--cc-space-sm);
}

.cc-form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--cc-foreground);
  font-size: 0.875rem;
}

.cc-form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E8E8E8;
  border-radius: var(--cc-radius-sm);
  font-family: var(--cc-font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: var(--cc-soft-white);
}

.cc-form-input:focus {
  outline: none;
  border-color: var(--cc-foreground);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.cc-text-center { text-align: center; }
.cc-text-gold { color: var(--cc-gold); }
.cc-text-teal { color: var(--cc-teal); }
.cc-text-muted { color: var(--cc-muted); }
.cc-mb-0 { margin-bottom: 0; }
.cc-mb-sm { margin-bottom: var(--cc-space-sm); }
.cc-mb-md { margin-bottom: var(--cc-space-md); }
.cc-mb-lg { margin-bottom: var(--cc-space-lg); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .cc-hero {
    min-height: auto;
    padding: var(--cc-space-lg) var(--cc-space-sm);
  }
  
  .cc-hero__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cc-button {
    width: 100%;
    max-width: 300px;
  }
  
  .cc-section {
    padding: var(--cc-space-lg) var(--cc-space-sm);
  }
}

/* ==========================================================================
   HIDE NAVIGATION & CHROME - Site is API-first for agents
   ========================================================================== */

.main-navigation,
.storefront-primary-navigation,
.storefront-secondary-navigation,
.site-header-cart,
.storefront-handheld-footer-bar,
.woocommerce-breadcrumb,
.woocommerce-products-header,
.storefront-product-search,
.site-search,
.widget_product_search,
.page-title,
.entry-title,
.woocommerce-products-header__title,
.site-footer,
.storefront-footer,
footer.site-footer,
#colophon {
  display: none !important;
}

/* Hide the entire site header - we have our own hero */
.site-header,
header.site-header,
#masthead {
  display: none !important;
}

/* ==========================================================================
   FULL-WIDTH IMMERSIVE LAYOUT
   ========================================================================== */

.site-content,
.col-full,
.storefront-full-width-content .content-area {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

.hentry {
  margin: 0 !important;
  padding: 0 !important;
}

.entry-content {
  max-width: 100% !important;
  margin: 0 !important;
}

/* Keep inner content sections contained for readability */
.cc-section__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--cc-space-md);
}

/* Full bleed sections */
.cc-split-hero,
.cc-agent-section,
.cc-human-section,
.cc-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: var(--cc-space-md);
  padding-right: var(--cc-space-md);
}

/* ==========================================================================
   HUMAN/AGENT SPLIT HOMEPAGE
   ========================================================================== */

.cc-split-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--cc-space-xl) var(--cc-space-md);
  background: var(--cc-background);
}

.cc-split-hero__badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--cc-foreground);
  color: var(--cc-soft-white);
  border-radius: var(--cc-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--cc-space-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cc-split-hero__badge:hover {
  background: var(--cc-gold);
  color: var(--cc-foreground);
}

.cc-split-hero__title {
  font-family: var(--cc-font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: var(--cc-space-xs);
  text-transform: lowercase;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cc-split-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--cc-muted);
  max-width: 550px;
  margin-bottom: 0; /* Mascot handles its own spacing */
  line-height: 1.6;
}

/* The fork - two paths */
.cc-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cc-space-md);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--cc-space-md);
}

@media (max-width: 768px) {
  .cc-fork {
    grid-template-columns: 1fr;
    gap: var(--cc-space-sm);
  }
}

.cc-fork__path {
  background: var(--cc-soft-white);
  border-radius: var(--cc-radius-lg);
  padding: var(--cc-space-md) var(--cc-space-md) var(--cc-space-lg);
  text-align: center;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.cc-fork__path .cc-button {
  margin-top: auto;
}

.cc-fork__path:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.cc-fork__path--agent {
  border-color: var(--cc-foreground);
}

.cc-fork__path--agent:hover {
  border-color: var(--cc-gold);
}

.cc-fork__path--human {
  border-color: var(--cc-gold);
}

.cc-fork__icon {
  font-size: 3rem;
  margin-bottom: var(--cc-space-sm);
}

.cc-fork__title {
  font-family: var(--cc-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: var(--cc-space-xs);
}

.cc-fork__description {
  color: var(--cc-muted);
  margin-bottom: var(--cc-space-md);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cc-fork__docs {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  text-align: center;
}

.cc-fork__docs a {
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
}

.cc-fork__docs a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Agent section - feature cards */
.cc-agent-section {
  background: var(--cc-foreground);
  color: var(--cc-soft-white);
  padding: var(--cc-space-xl) var(--cc-space-md);
}

.cc-agent-section .cc-section-title {
  color: var(--cc-soft-white);
}

.cc-agent-section .cc-card {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cc-soft-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-agent-section .cc-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.cc-agent-section .cc-card__title {
  color: var(--cc-soft-white);
}

.cc-agent-section .cc-card__description {
  color: rgba(255, 255, 255, 0.75);
}

/* Human section - minimal */
.cc-human-section {
  background: var(--cc-warm-cream);
  padding: var(--cc-space-xl) var(--cc-space-md);
  text-align: center;
}

.cc-human-section__content {
  max-width: 550px;
  margin: 0 auto;
}

.cc-human-section .cc-section-title {
  margin-bottom: var(--cc-space-sm);
}

.cc-human-note {
  font-size: 0.875rem;
  color: var(--cc-muted);
  margin-top: var(--cc-space-md);
}

.cc-human-note a {
  color: var(--cc-foreground);
  text-decoration: underline;
}

/* ==========================================================================
   WOOCOMMERCE OVERRIDES
   ========================================================================== */

.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--cc-space-md);
}

.woocommerce .product {
  background: var(--cc-soft-white);
  border-radius: var(--cc-radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.woocommerce .product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: var(--cc-foreground) !important;
  color: var(--cc-soft-white) !important;
  border-radius: var(--cc-radius-sm) !important;
  font-family: var(--cc-font-body) !important;
  font-weight: 600 !important;
  padding: 0.875rem 1.5rem !important;
  transition: all 0.2s ease !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
  background-color: #333 !important;
  transform: translateY(-2px);
}

.woocommerce .price {
  color: var(--cc-foreground) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
}

/* ==========================================================================
   FOR-AGENTS PAGE STYLES
   ========================================================================== */

/* Agents Hero - centered like split hero */
.cc-agents-hero {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--cc-space-xl) var(--cc-space-md);
  background: var(--cc-background);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

/* Section variants */
.cc-section {
  padding: var(--cc-space-xl) var(--cc-space-md);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

.cc-section--dark {
  background: var(--cc-foreground);
  color: var(--cc-soft-white);
}

.cc-section--dark .cc-section-title {
  color: var(--cc-soft-white);
}

.cc-section--dark code {
  background: rgba(255,255,255,0.1);
  color: var(--cc-gold-soft);
}

.cc-section--dark a {
  color: var(--cc-gold-soft);
}

.cc-section--highlight {
  background: var(--cc-gold);
  color: var(--cc-foreground);
}

.cc-section--accent {
  background: var(--cc-warm-cream);
}

/* Quick steps */
.cc-quick-steps {
  display: flex;
  justify-content: center;
  gap: var(--cc-space-md);
  flex-wrap: wrap;
  margin-top: var(--cc-space-md);
}

.cc-quick-step {
  display: flex;
  align-items: center;
  gap: var(--cc-space-xs);
  background: var(--cc-foreground);
  color: var(--cc-soft-white);
  padding: var(--cc-space-sm) var(--cc-space-md);
  border-radius: var(--cc-radius-full);
  font-weight: 500;
}

.cc-quick-step__num {
  background: var(--cc-soft-white);
  color: var(--cc-foreground);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.cc-quick-step a {
  color: var(--cc-gold-soft);
}

/* Code blocks */
.cc-code-block {
  background: #1e1e1e;
  border-radius: var(--cc-radius-md);
  margin: var(--cc-space-md) 0;
  overflow: hidden;
  text-align: left;
}

.cc-code-header {
  background: #333;
  color: var(--cc-gold-soft);
  padding: var(--cc-space-sm) var(--cc-space-md);
  font-weight: 600;
  font-size: 0.875rem;
}

.cc-code-block pre {
  margin: 0;
  padding: var(--cc-space-md);
  overflow-x: auto;
}

.cc-code-block code {
  color: #e0e0e0;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  background: transparent;
}

/* Info boxes */
.cc-info-box,
.cc-tip-box {
  background: var(--cc-soft-white);
  border-radius: var(--cc-radius-md);
  padding: var(--cc-space-md);
  margin: var(--cc-space-md) 0;
  border-left: 4px solid var(--cc-gold);
}

.cc-section--dark .cc-info-box,
.cc-section--dark .cc-tip-box {
  background: rgba(255,255,255,0.08);
}

/* API reference table */
.cc-api-table {
  display: flex;
  flex-direction: column;
  gap: var(--cc-space-xs);
  margin-top: var(--cc-space-md);
}

.cc-api-row {
  display: grid;
  grid-template-columns: auto 1fr auto 2fr;
  gap: var(--cc-space-md);
  align-items: center;
  background: var(--cc-soft-white);
  padding: var(--cc-space-sm) var(--cc-space-md);
  border-radius: var(--cc-radius-sm);
}

@media (max-width: 768px) {
  .cc-api-row {
    grid-template-columns: 1fr;
    gap: var(--cc-space-xs);
  }
}

.cc-api-method {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cc-api-method--get {
  background: #10b981;
  color: white;
}

.cc-api-method--post {
  background: #3b82f6;
  color: white;
}

.cc-api-auth {
  font-size: 0.75rem;
  color: var(--cc-muted);
  background: var(--cc-warm-cream);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.cc-api-row code {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.8125rem;
  color: var(--cc-foreground);
}

/* Grids */
.cc-grid {
  display: grid;
  gap: var(--cc-space-md);
}

.cc-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.cc-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .cc-grid--2,
  .cc-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Steps */
.cc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--cc-space-md);
  margin-top: var(--cc-space-md);
}

.cc-step {
  background: var(--cc-soft-white);
  border-radius: var(--cc-radius-md);
  padding: var(--cc-space-md);
  text-align: center;
}

.cc-step__number {
  width: 3rem;
  height: 3rem;
  background: var(--cc-foreground);
  color: var(--cc-soft-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto var(--cc-space-sm);
}

.cc-step__title {
  font-family: var(--cc-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--cc-space-xs);
}

.cc-step__description {
  color: var(--cc-muted);
  font-size: 0.9375rem;
}

.cc-step a {
  color: var(--cc-gold);
}

/* Button group */
.cc-button-group {
  display: flex;
  gap: var(--cc-space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.cc-button--outline {
  background: transparent;
  border: 2px solid var(--cc-foreground);
  color: var(--cc-foreground);
}

.cc-button--outline:hover {
  background: var(--cc-foreground);
  color: var(--cc-soft-white);
}

/* Utilities */
.cc-text-center {
  text-align: center;
}

.cc-text-muted {
  color: var(--cc-muted);
  font-size: 0.875rem;
}

.cc-mt-md {
  margin-top: var(--cc-space-md);
}

.cc-mb-md {
  margin-bottom: var(--cc-space-md);
}

/* Inline code */
code {
  background: var(--cc-warm-cream);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875em;
}

/* ================================
   ANIMATED MASCOT
   ================================ */

.cc-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0 1rem 0; /* Tight: 8px above, 16px below */
}

.cc-mascot__img {
  width: var(--mascot-size, 150px);
  height: auto;
  transition: transform 0.15s ease-out;
}

.cc-mascot--cheering {
  transform: translateY(-5px);
}

/* Optional subtle bounce animation when cheering */
@keyframes cc-mascot-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cc-mascot--cheering {
  animation: cc-mascot-bounce 0.3s ease-out;
}

/* Agent Guide Styles */
.cc-agent-guide {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--cc-space-md);
  line-height: 1.7;
}

.cc-agent-guide h1 {
  font-family: var(--cc-font-display);
  font-size: 2.5rem;
  margin-bottom: var(--cc-space-md);
}

.cc-agent-guide h2 {
  font-family: var(--cc-font-display);
  font-size: 1.5rem;
  margin-top: var(--cc-space-lg);
  margin-bottom: var(--cc-space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cc-gold);
}

.cc-agent-guide h3 {
  font-size: 1.25rem;
  margin-top: var(--cc-space-md);
  margin-bottom: var(--cc-space-xs);
}

.cc-agent-guide pre {
  background: var(--cc-foreground);
  color: var(--cc-soft-white);
  padding: var(--cc-space-md);
  border-radius: var(--cc-radius-md);
  overflow-x: auto;
  font-size: 0.875rem;
}

.cc-agent-guide code {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.cc-agent-guide pre code {
  background: none;
  padding: 0;
}

.cc-agent-guide table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--cc-space-md) 0;
}

.cc-agent-guide th,
.cc-agent-guide td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cc-agent-guide th {
  background: var(--cc-foreground);
  color: var(--cc-soft-white);
}

.cc-agent-guide blockquote {
  border-left: 4px solid var(--cc-gold);
  margin: var(--cc-space-md) 0;
  padding-left: var(--cc-space-md);
  color: var(--cc-muted);
  font-style: italic;
}

.cc-agent-guide a {
  color: var(--cc-foreground);
  text-decoration: underline;
}

.cc-agent-guide a:hover {
  color: var(--cc-gold);
}
