/* CraftedAura Native Utilities - Lightweight CSS utility layer */

/* Layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.grow { flex-grow: 1; }

/* Gaps */
.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; }

/* Spacing - Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Spacing - Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-24 { margin-top: 6rem; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-none { max-width: none; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.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; }
.font-black { font-weight: 900; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Rounded */
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.opacity-90 { opacity: 0.9; }
.opacity-80 { opacity: 0.8; }
.opacity-50 { opacity: 0.5; }
.opacity-30 { opacity: 0.3; }
.shadow-sm { box-shadow: var(--ca-shadow-sm); }
.shadow-lg { box-shadow: var(--ca-shadow-lg); }
.shadow-xl { box-shadow: var(--ca-shadow-xl); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Visibility */
.block { display: block; }
.hidden { display: none !important; }

/* Grid Responsive */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:sticky { position: sticky; }
  .lg\:top-24 { top: 5.5rem; }
  .lg\:w-72 { width: 18rem; }
  .lg\:w-80 { width: 20rem; }
  .lg\:w-96 { width: 24rem; }
  .lg\:flex-1 { flex: 1 1 0%; }
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Semantic colors */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-text { color: var(--text); }
.bg-surface { background-color: var(--bg); }
.bg-surface-2 { background-color: var(--bg-soft); }
.bg-primary { background-color: var(--primary); }
.bg-text { background-color: var(--text); }
.border-border { border-color: var(--border); }
.border-primary { border-color: var(--primary); }

.hover\:text-primary:hover { color: var(--primary); }
.hover\:border-primary:hover { border-color: var(--primary); }

/* Opacity / mix helpers (class names match Tailwind-style usage in views) */
.bg-primary\/5 { background: color-mix(in srgb, var(--ca-primary) 5%, transparent); }
.bg-primary\/10 { background: color-mix(in srgb, var(--ca-primary) 10%, transparent); }
.bg-secondary\/10 { background: color-mix(in srgb, var(--ca-secondary) 10%, transparent); }
.bg-accent\/10 { background: color-mix(in srgb, var(--ca-accent) 10%, transparent); }
.bg-accent\/20 { background: color-mix(in srgb, var(--ca-accent) 20%, transparent); }
.border-primary\/20 { border-color: color-mix(in srgb, var(--ca-primary) 20%, transparent); }
.text-primary\/10 { color: color-mix(in srgb, var(--ca-primary) 10%, transparent); }
.fill-primary\/10 { fill: color-mix(in srgb, var(--ca-primary) 10%, transparent); }

.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.translate-x-2 { transform: translateX(0.5rem); }

.max-w-50 { max-width: 12.5rem; }

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .order-1 { order: 1; }
  .order-2 { order: 2; }
}

/* Micro type + radii used in marketing views */
.text-2xs {
  font-size: 0.625rem;
  line-height: 1.4;
}

.rounded-feature {
  border-radius: 2.5rem;
}

.rounded-card-xl {
  border-radius: 2rem;
}

.text-white-soft {
  color: rgb(255 255 255 / 0.5);
}

.text-white-muted {
  color: rgb(255 255 255 / 0.8);
}

.bg-white-soft {
  background: rgb(255 255 255 / 0.1);
}

.bg-white-mid {
  background: rgb(255 255 255 / 0.15);
}

.border-white-soft {
  border-color: rgb(255 255 255 / 0.2);
}

.border-white-mid {
  border-color: rgb(255 255 255 / 0.25);
}

.shadow-primary-soft {
  box-shadow: 0 12px 40px color-mix(in srgb, var(--ca-primary) 22%, transparent);
}

/* Ad label (theme-aware) */
.text-ad-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ca-muted);
  margin-bottom: 0.5rem;
}

.min-h-90 {
  min-height: 90px;
}

.min-h-120 {
  min-height: 120px;
}

.min-h-250 {
  min-height: 250px;
}

.max-h-post-img {
  max-height: 700px;
  object-fit: cover;
}

.scale-110 {
  transform: scale(1.1);
}

.border-4 {
  border-width: 4px;
}

.border-surface {
  border-color: var(--ca-surface);
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-16 > * + * {
  margin-top: 4rem;
}
