/**
 * @file
 * Styles for Read Time Calculator module.
 */

 .read-time-estimate {
  font-size: 0.9em;
  margin: 10px 0;
  font-style: italic;
}

.read-time-text {
  /* Default fallback styles - these will be overridden by inline styles */
  background: #353535;
  color: #ffffff;
  padding: 3px 11px 2px 8px;
  border-radius: 3px;
  display: inline-block;
}

.read-time-estimate .read-time-text:before {
  content: "🕙 ";
  margin-right: 4px;
}

/* Live read time display in admin forms */
.read-time-live {
  font-style: italic;
  color: inherit; /* Will use dynamic colors from JS */
  margin-top: 5px;
  font-size: 0.9em;
}

/* Dark theme fallback - only applies if no custom colors are set */
@media (prefers-color-scheme: dark) {
  .read-time-estimate:not([style*="color"]) {
    color: #ccc;
  }
  
  .read-time-text:not([style*="background-color"]) {
    background: #333;
    color: #fff;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .read-time-estimate {
    font-size: 0.8em;
    margin: 8px 0;
  }
  
  .read-time-text {
    padding: 3px 6px;
  }
}

/* Ensure custom styled elements maintain good contrast */
.read-time-text[style] {
  /* Force text to be readable - this ensures minimum contrast */
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}