:root,
html[data-theme],
html[data-theme="dark"],
html[data-theme="light"] {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* DaisyUI primary tokens mapped to brand accent (HSL for #EF8D22) */
  --p: 32 86% 55%;
  --pf: 32 86% 47%;
  --pc: 0 0% 100%;

  /* Base content text color (#d8d8d1) */
  --bc: 0.88 0.009 107;
}

/* Ensure checkbox checkmark is visible (white) on brand orange background.
   DaisyUI v4 sets --chkbg/--chkfg from oklch(var(--p)) / oklch(var(--pc))
   on the :checked state, but --p and --pc are HSL values, producing invalid
   OKLCH colors. Override with explicit values at matching specificity. */
.checkbox-primary:checked,
.checkbox-primary[aria-checked="true"] {
  --chkbg: oklch(0.59 0.139 60 / 1);
  --chkfg: white;
}

/* Force primary components to use the brand orange */
.btn-primary,
.badge-primary {
  background-color: oklch(0.59 0.139 60 / 1) !important;
  border-color: oklch(0.59 0.139 60 / 1) !important;
  color: hsl(var(--pc)) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: hsl(32 86% 42%) !important;
  border-color: hsl(32 86% 42%) !important;
}

body {
  background: radial-gradient(1200px circle at 20% 20%, rgba(249, 115, 22, 0.04), transparent),
              radial-gradient(900px circle at 80% 10%, rgba(59, 130, 246, 0.06), transparent),
              var(--fallback-b1, #0f172a);
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/* Match stat highlights to brand orange */
.stat-value {
  color: hsl(var(--pf));
  font-size: 1.75rem;
  line-height: 2rem;
}

/* Homepage hero background using provided static image */
.hero-landing {
  background-image:
    linear-gradient(180deg, rgba(10, 12, 26, 0.65), rgba(10, 12, 26, 0.45)),
    url("../images/hero image.PNG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Navigation dropdown improvements */
.menu details > summary::after {
  margin-left: 0.25rem;
}

.menu details[open] > ul {
  animation: dropdown-fade 0.15s ease-out;
}

@keyframes dropdown-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure dropdown appears above other content */
.menu details > ul {
  position: absolute;
  z-index: 50;
}

/* Comparison table hover effect */
.table tbody tr:hover td {
  background-color: hsl(var(--b3) / 0.5);
}

.table tbody tr:hover td.bg-primary\/5 {
  background-color: hsl(var(--p) / 0.1);
}

/* Testimonial card hover */
.card.bg-base-200:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease-out;
}

/* Blog content typography */
.blog-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: oklch(var(--bc));
  border-bottom: 2px solid hsl(var(--pf));
  padding-bottom: 0.5rem;
}

.blog-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: oklch(var(--bc));
}

.blog-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-content a {
  color: hsl(var(--pf));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-content a:hover {
  color: hsl(32 86% 42%);
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.blog-content ul {
  list-style-type: disc;
}

.blog-content ol {
  list-style-type: decimal;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  border-left: 4px solid hsl(var(--pf));
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: oklch(var(--bc) / 0.8);
  background-color: hsl(var(--b2));
  padding: 1rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.blog-content code {
  background-color: hsl(var(--b3));
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.blog-content pre {
  background-color: hsl(var(--b3));
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.blog-content th,
.blog-content td {
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--b3));
  text-align: left;
}

.blog-content th {
  background-color: hsl(var(--b2));
  font-weight: 600;
}

.blog-content tr:nth-child(even) td {
  background-color: hsl(var(--b2) / 0.5);
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.blog-content hr {
  border: none;
  border-top: 1px solid hsl(var(--b3));
  margin: 2rem 0;
}

/* Line clamp utility for card summaries */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

