/* Additional accessibility enhancements for dark theme */
/* These rules ensure high contrast and readability for all text elements */

/* Increase contrast for all text on dark backgrounds */
.text-gray-400, .text-gray-500 {
  color: #BFBFBF !important; /* Lighter gray for better visibility */
}

/* Ensure all paragraph text is highly readable */
p, li, span:not(.bg-gradient-to-r) {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 400;
  line-height: 1.6;
}

/* Make headings stand out with gradient */
h1, h2, h3 {
  background: linear-gradient(to right, var(--primary-gradient-from), var(--primary-gradient-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Ensure subheadings are visible */
h4, h5, h6 {
  color: #FFFFFF !important;
  font-weight: 600;
}

/* Enhance button text visibility */
button, .button, a.button {
  font-weight: 600;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Improve form input contrast */
input, textarea, select {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Add focus states for better accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary-gradient-to) !important;
  outline-offset: 2px;
}

/* Enhance card content visibility */
.bg-white.rounded-lg p, .bg-white.rounded-lg li {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Improve link visibility */
a:not(.button):not(.bg-gradient-to-r) {
  color: var(--primary-gradient-to) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hover states for links */
a:not(.button):not(.bg-gradient-to-r):hover {
  color: var(--primary-gradient-from) !important;
  text-decoration: underline;
}

/* Ensure icons are visible */
svg {
  fill: currentColor;
}

/* Add subtle borders to improve content separation */
.card, .section {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Improve contrast for section dividers */
hr {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Enhance list markers visibility */
ul li::before {
  color: var(--primary-gradient-to);
}

/* Improve table readability */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

th {
  background-color: var(--accent-light-1);
  color: white;
  font-weight: 600;
}

td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure code blocks are readable */
code, pre {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--primary-gradient-to);
}

/* Improve form label visibility */
label {
  color: white;
  font-weight: 500;
}

/* Enhance quote visibility */
blockquote {
  border-left: 4px solid var(--primary-gradient-from);
  background-color: rgba(147, 51, 234, 0.1);
  padding: 1rem;
}

blockquote p {
  color: white !important;
  font-style: italic;
}
