/* ==========================================================================
   Custom Components (shadcn/ui inspired)
   ========================================================================== */

/* 
   We leverage Tailwind classes heavily, but for complex, reusable components 
   that require specific structural styling not easily done with utilities alone, 
   we define them here. 
*/

/* --- Buttons --- */
.btn {
  @apply inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 h-10 px-4 py-2;
  /* Since we don't have PostCSS to process @apply natively without a build step, 
     we will define the raw CSS equivalents here for cases where @apply isn't parsed. 
     Tailwind CDN *does* support some features, but pure CSS is safer for pure static files. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  height: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-foreground);
  color: var(--color-background);
}
.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: #f1f5f9; /* slate-100 */
  color: #0f172a; /* slate-900 */
}
.btn-secondary:hover {
  background-color: #e2e8f0; /* slate-200 */
}

.btn-outline {
  border: 1px solid #e2e8f0;
  background-color: transparent;
}
.btn-outline:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

/* --- Cards --- */
.card {
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid #e2e8f0; /* border */
  background-color: var(--color-background);
  color: var(--color-foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.card-header {
  display: flex;
  flex-direction: column;
  space-y: 1.5;
  padding: 1.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.card-description {
  font-size: 0.875rem;
  color: #64748b; /* muted-foreground */
}

.card-content {
  padding: 1.5rem;
  padding-top: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  padding-top: 0;
}

/* --- Navigation Mega Menu Base --- */
.mega-menu-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.group:hover .mega-menu-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Glassmorphism --- */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.dark .glass {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
