/* Lixus Design System Tokens */
:root {
  --color-deep-teal: #043e3b;
  --color-brand-teal: #058880;
  --color-light-seafoam: #72c8b7;
  --color-charcoal: #333333;
  --color-white: #ffffff;
  --color-zinc-50: #fafafa;
  --color-zinc-100: #f4f4f5;
  --color-zinc-200: #e4e4e7;

  --font-heading: "Cabin", sans-serif;
  --font-body: "Roboto", sans-serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-zinc-50);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-deep-teal);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--color-brand-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-light-seafoam);
}

/* Premium Dashboard Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--color-zinc-100);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  object-fit: contain;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--color-brand-teal);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #046e67;
  color: white;
}

/* Markdown Content Styling */
.prose {
  max-width: 800px;
  margin: 60px auto;
  background: white;
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.prose h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-zinc-100);
  padding-bottom: 1rem;
}
.prose h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1.25rem;
}
.prose p {
  margin-bottom: 1.25rem;
}
.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.prose th,
.prose td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--color-zinc-200);
}
.prose th {
  background: var(--color-zinc-100);
  color: var(--color-deep-teal);
}
.prose blockquote {
  border-left: 4px solid var(--color-brand-teal);
  padding-left: 1.5rem;
  color: #555;
  font-style: italic;
  margin: 2rem 0;
}
.prose code {
  background: var(--color-zinc-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Download Button for MD pages */
.download-bar {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--color-zinc-100);
  padding: 12px 20px;
  display: flex;
  justify-content: flex-end;
  z-index: 100;
}
