/* DHT11 Sensor Guide - Scoped Styles */
.dht11-sensor-guide {
  max-width: 1000px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  padding: 0 15px;
}

.dht11-sensor-guide .dht11-header {
  background: linear-gradient(135deg, #4a8eff, #2a6bda);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
}

.dht11-sensor-guide .dht11-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
}

.dht11-sensor-guide .dht11-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
}

.dht11-sensor-guide .dht11-section {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.dht11-sensor-guide h2 {
  color: #4a8eff;
  border-bottom: 2px solid #6da1ff;
  padding-bottom: 0.5rem;
  margin-top: 0;
}

.dht11-sensor-guide h3 {
  color: #6da1ff;
  margin-top: 1.5rem;
}

/* Feature Cards */
.dht11-sensor-guide .dht11-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.dht11-sensor-guide .dht11-feature-card {
  background: #ebf2ff;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #6da1ff;
}

.dht11-sensor-guide .dht11-feature-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
}

.dht11-sensor-guide .dht11-icon {
  margin-right: 0.5rem;
  font-size: 1.2em;
}

/* Tables */
.dht11-sensor-guide table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.dht11-sensor-guide th, 
.dht11-sensor-guide td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.dht11-sensor-guide th {
  background: #ebf2ff;
  color: #4a8eff;
}

.dht11-sensor-guide .dht11-pin-table th {
  background: #4a8eff;
  color: white;
}

/* Code Blocks */
.dht11-sensor-guide pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  border-left: 4px solid #6da1ff;
  margin: 1rem 0;
}

/* Notes and Warnings */
.dht11-sensor-guide .dht11-note {
  background: #ebf2ff;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #4a8eff;
  margin: 1rem 0;
}

/* Images */
.dht11-sensor-guide .dht11-image {
  text-align: center;
  margin: 1.5rem 0;
}

.dht11-sensor-guide .dht11-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Pinout Layout */
.dht11-sensor-guide .dht11-pinout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0;
}

.dht11-sensor-guide .dht11-pinout > * {
  flex: 1;
  min-width: 300px;
}

/* Troubleshooting */
.dht11-sensor-guide .dht11-troubleshooting {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.dht11-sensor-guide .dht11-issue {
  background: #ffebee;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #f44336;
}

/* Footer */
.dht11-sensor-guide .dht11-footer {
  margin-top: 2rem;
}

.dht11-sensor-guide .dht11-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.dht11-sensor-guide .dht11-project-card {
  background: #ebf2ff;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
}

.dht11-sensor-guide .dht11-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.dht11-sensor-guide .dht11-tags span {
  background: #6da1ff;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .dht11-sensor-guide .dht11-header h1 {
    font-size: 1.5rem;
  }
  
  .dht11-sensor-guide .dht11-pinout {
    flex-direction: column;
  }
  
  .dht11-sensor-guide .dht11-features,
  .dht11-sensor-guide .dht11-troubleshooting,
  .dht11-sensor-guide .dht11-projects {
    grid-template-columns: 1fr;
  }
}