/**
 * CCS Pro - Component classes (buttons, cards, badges, layout utilities)
 */

/* Layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.hidden { display: none !important; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Sizing - include icon sizes so SVGs display correctly */
.h-1\.5 { height: 0.375rem; }
.w-1\.5 { width: 0.375rem; }
.h-2 { height: 0.5rem; }
.w-2 { width: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-5\/6 { width: 83.333333%; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.h-16 { height: 4rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }

/* Padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-4 { padding-top: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }

/* Margin */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-auto { margin-top: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

/* Border */
.border { border-width: 1px; border-color: hsl(var(--border)); }
.border-b { border-bottom-width: 1px; border-color: hsl(var(--border)); }
.border-t { border-top-width: 1px; border-color: hsl(var(--border)); }
.border-border\/50 { border-color: hsl(var(--border) / 0.5); }
.border-background\/10 { border-color: hsl(var(--background) / 0.1); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1.25rem; }
.rounded-full { border-radius: 9999px; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-relaxed { line-height: 1.625; }

/* Colors */
.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-background\/80 { background-color: hsl(var(--background) / 0.8); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-background { color: hsl(var(--background)); }
.text-background\/50 { color: hsl(var(--background) / 0.5); }
.text-background\/60 { color: hsl(var(--background) / 0.6); }
.text-background\/70 { color: hsl(var(--background) / 0.7); }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }

/* Position */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.relative { position: relative; }
.absolute { position: absolute; }

/* Backdrop */
.backdrop-blur-lg { backdrop-filter: blur(16px); }

/* Section components */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .section-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .section-container { padding-left: 2rem; padding-right: 2rem; }
}

.section-spacing {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 640px) {
  .section-spacing { padding-top: 5rem; padding-bottom: 5rem; }
}
@media (min-width: 1024px) {
  .section-spacing { padding-top: 6rem; padding-bottom: 6rem; }
}

.section-tinted {
  background: var(--gradient-hero);
}

.card-elevated {
  background-color: hsl(var(--card));
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.card-hover {
  transition: box-shadow 0.3s, transform 0.3s;
}
.card-hover:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  background: var(--gradient-cta);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 0 0 1px hsl(221 83% 50% / 0.1);
  transition: opacity 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px hsl(221 83% 53% / 0.35), 0 0 0 1px hsl(221 83% 50% / 0.1);
}
.btn-primary.text-base { font-size: 1rem; }
.btn-primary.px-8 { padding-left: 2rem; padding-right: 2rem; }
.btn-primary.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  transition: background-color 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--muted-foreground) / 0.2);
}
.btn-secondary.text-base { font-size: 1rem; }
.btn-secondary.px-8 { padding-left: 2rem; padding-right: 2rem; }
.btn-secondary.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.btn-secondary.w-full { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  transition: color 0.2s, background-color 0.2s;
  cursor: pointer;
}
.btn-ghost:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
}

/* Icons (SVG) - ensure size classes apply and icons don't collapse */
.site-header svg,
.site-footer svg,
.icon-box svg,
[class*="h-4"] svg,
[class*="h-5"] svg {
  flex-shrink: 0;
  vertical-align: middle;
}
svg.h-4, svg.w-4 { width: 1rem; height: 1rem; }
svg.h-5, svg.w-5 { width: 1.25rem; height: 1.25rem; }
svg.h-8, svg.w-8 { width: 2rem; height: 2rem; }

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

/* Ring for highlighted cards */
.ring-2 { box-shadow: 0 0 0 2px hsl(var(--primary)); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.overflow-hidden { overflow: hidden; }
.text-6xl { font-size: 3.75rem; }
.text-primary\/5 { color: hsl(var(--primary) / 0.05); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }
.bg-muted\/50 { background-color: hsl(var(--muted) / 0.5); }
.border-border\/50 { border-color: hsl(var(--border) / 0.5); }
.items-baseline { align-items: baseline; }
.mt-0\.5 { margin-top: 0.125rem; }
.object-cover { object-fit: cover; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.from-primary\/5 { /* gradient */ }
.to-primary\/10 { /* gradient */ }
.to-transparent { /* gradient */ }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.text-primary\/20 { color: hsl(var(--primary) / 0.2); }
.bg-primary\/15 { background-color: hsl(var(--primary) / 0.15); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.h-10 { height: 2.5rem; }
.w-10 { width: 2.5rem; }
.h-20 { height: 5rem; }
.w-20 { width: 5rem; }
.h-24 { height: 6rem; }
.w-24 { width: 6rem; }
.h-32 { height: 8rem; }
.w-32 { width: 8rem; }
.h-48 { height: 12rem; }
.w-48 { width: 12rem; }
.h-56 { height: 14rem; }
.w-56 { width: 14rem; }
.h-64 { height: 16rem; }
.w-64 { width: 16rem; }
.h-16 { height: 4rem; }
.w-16 { width: 4rem; }
.-top-2 { top: -0.5rem; }
.-top-3 { top: -0.75rem; }
.-right-4 { right: -1rem; }
.-left-2 { left: -0.5rem; }
.-left-8 { left: -2rem; }
.-right-12 { right: -3rem; }
.bottom-4 { bottom: 1rem; }
.top-1\/2 { top: 50%; }
.translate-x-1\/2 { transform: translateX(-50%); }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.ml-4 { margin-left: 1rem; }
.pl-8 { padding-left: 2rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.font-semibold { font-weight: 600; }
.text-5xl { font-size: 3rem; }
.tracking-tight { letter-spacing: -0.025em; }
.max-w-md { max-width: 28rem; }

/* Grid layouts */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
/* Responsive - sm (640px) */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-12 { padding: 3rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:h-56 { height: 14rem; }
  .sm\:w-56 { width: 14rem; }
  .sm\:gap-6 { gap: 1.5rem; }
}

/* Responsive - lg (1024px) */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:flex { display: flex !important; }
  .lg\:grid { display: grid !important; }
  .lg\:hidden { display: none !important; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:p-8 { padding: 2rem; }
  .lg\:p-12 { padding: 3rem; }
  .lg\:p-16 { padding: 4rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:justify-start { justify-content: flex-start; }
  .lg\:items-center { align-items: center; }
  .lg\:mt-0 { margin-top: 0; }
}

/* Site header - prevent overflow and scrollbars */
.site-header {
  overflow: hidden;
  width: 100%;
}
.site-header nav {
  flex-wrap: nowrap;
  gap: 0.5rem;
}

/* Nav menu list in header */
.site-header .menu,
.site-header ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header .menu a,
.site-header ul a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s, background-color 0.2s;
}
.site-header .menu a:hover,
.site-header ul a:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
}

/* Mobile menu list */
#mobile-menu .menu,
#mobile-menu ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}
#mobile-menu .menu li,
#mobile-menu ul li {
  margin: 0;
}
#mobile-menu .menu a,
#mobile-menu ul a {
  display: block;
  padding: 0.5rem 0;
  color: hsl(var(--muted-foreground));
}
#mobile-menu .menu a:hover,
#mobile-menu ul a:hover {
  color: hsl(var(--foreground));
}

/* Footer links */
.site-footer a {
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.7);
  transition: color 0.2s;
}
.site-footer a:hover {
  color: hsl(var(--background));
}

.site-footer h4 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Entry */
.entry-title { margin-bottom: 0.5rem; }
.entry-meta { margin-bottom: 1rem; }
.entry-content ul { list-style: disc; padding-left: 1.5rem; }
.entry-content ol { list-style: decimal; padding-left: 1.5rem; }

.hover\:no-underline:hover { text-decoration: none; }
.hover\:underline:hover { text-decoration: underline; }
