/* Custom styles to complement Tailwind CSS */

/* Base font styling */
body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

/* Heading styles */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4338ca; /* indigo-700 */
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1f2937; /* gray-800 */
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.3rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151; /* gray-700 */
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4b5563; /* gray-600 */
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6b7280; /* gray-500 */
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280; /* gray-500 */
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Custom styles for notification banners */
.notification {
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.notification-info {
  background-color: #e0f2fe;
  border-left-color: #0ea5e9;
  color: #0c4a6e;
}

.notification-warning {
  background-color: #fef3c7;
  border-left-color: #f59e0b;
  color: #78350f;
}

.notification-tip {
  background-color: #dcfce7;
  border-left-color: #22c55e;
  color: #14532d;
}

/* Custom styles for code blocks */
.code-block {
  position: relative;
  background-color: #f8fafc;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f1f5f9;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.code-content {
  padding: 1rem;
  overflow-x: auto;
}

.copy-button {
  background-color: #e2e8f0;
  border: none;
  border-radius: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.copy-button:hover {
  background-color: #cbd5e1;
}

/* Improve code block styling */
pre {
  background-color: #f8fafc;
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

/* Links styling */
a {
  color: #3b82f6; /* blue-500 */
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #2563eb; /* blue-600 */
  text-decoration: underline;
}

/* Custom styles for accordions */
.accordion {
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  background-color: #f8fafc;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.accordion-content {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 500px;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
}

/* Image styles */
img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: block;
}

.guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Improve paragraph styling */
p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Improve list styling */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: 0.5rem;
}

/* Improve blockquote styling */
blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1rem;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  color: #4b5563;
}

/* Highlight syntax in code examples */
code .hljs-keyword {
  color: #8b5cf6; /* violet-500 */
}

code .hljs-string {
  color: #10b981; /* emerald-500 */
}

code .hljs-comment {
  color: #9ca3af; /* gray-400 */
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .code-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .copy-button {
    margin-top: 0.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}