/* style.css */

/* Custom styles for the WM Knowledge Hub */

/* Font Inter from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

body {
  font-family: "Inter", sans-serif;
  /* Tailwind CSS classes handle most of the body styling */
}

/* General section styling */
.content-section {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.75rem; /* rounded-lg */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-md */
  margin-bottom: 2rem;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #1a202c; /* text-gray-900 */
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.25rem; /* text-3xl */
  font-weight: 700; /* font-bold */
  color: #1d4ed8; /* text-blue-700 */
}

h3 {
  font-size: 1.875rem; /* text-2xl */
  font-weight: 600; /* font-semibold */
  color: #2563eb; /* text-blue-600 */
}

h4 {
  font-size: 1.25rem; /* text-xl */
  font-weight: 500; /* font-medium */
  color: #3b82f6; /* text-blue-500 */
}

/* Paragraphs and lists */
p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

ul,
ol {
  margin-bottom: 1rem;
}

ul.list-disc,
ol.list-decimal {
  margin-left: 1.5rem; /* ml-6 */
}

ul.list-circle {
  list-style-type: circle;
}

ul.list-square {
  list-style-type: square;
}

/* Links */
a {
  color: #3b82f6; /* text-blue-500 */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2563eb; /* hover:text-blue-600 */
  text-decoration: underline;
}

/* Code blocks and preformatted text */
pre {
  background-color: #2d3748; /* bg-gray-800 */
  color: #ffffff;
  padding: 1rem;
  border-radius: 0.375rem; /* rounded-md */
  overflow-x: auto;
  margin-bottom: 1rem;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier,
    monospace;
  font-size: 0.875rem; /* text-sm */
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th,
td {
  padding: 0.75rem 1rem; /* py-3 px-4 */
  border: 1px solid #e2e8f0; /* border-gray-300 */
  text-align: left;
}

th {
  background-color: #eff6ff; /* bg-blue-50 */
  color: #1e40af; /* text-blue-800 */
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background-color: #f7fafc; /* bg-gray-50 */
}

tbody tr:hover {
  background-color: #ebf8ff; /* hover:bg-blue-50 */
}

/* Utility classes (can be overridden by Tailwind) */
.hidden {
  display: none;
}

.active {
  display: block;
}

/* Specific styling for example blocks */
.bg-gray-50 {
  background-color: #f9fafb;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rounded-md {
  border-radius: 0.375rem;
}

/* Image styling */
img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem; /* rounded-lg */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-md */
}

/* Header navigation links */
header nav ul li a {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
}

header nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav ul {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    align-items: flex-start;
  }

  header nav ul li {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  header nav ul li a {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .grid-cols-1.md\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
}
