/* swachh-covers-widget.css */

.swachh-covers-widget {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background-color: white;
  box-sizing: border-box;
}

.swachh-covers-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.swachh-covers-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.swachh-covers-title-spacing {
  height: 12px;
}

/* Integration with InfoDescWidget */
.swachh-covers-widget .info-desc-widget {
  width: 100%;
}

.swachh-covers-widget .info-desc-tile {
  margin-bottom: 12px;
}

.swachh-covers-widget .info-desc-tile:last-child {
  margin-bottom: 0;
}

/* Specific styling for default type with titles */
.swachh-covers-widget .info-desc-title {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.swachh-covers-widget .info-desc-text-defaultType {
  color: #6c757d;
  line-height: 1.5;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .swachh-covers-widget {
    padding: 12px;
    border-radius: 12px;
  }
  
  .swachh-covers-title {
    font-size: 13px;
  }
  
  .swachh-covers-title-spacing {
    height: 10px;
  }
  
  .swachh-covers-widget .info-desc-tile {
    margin-bottom: 10px;
  }
  
  .swachh-covers-widget .info-desc-title {
    font-size: 13px;
  }
  
  .swachh-covers-widget .info-desc-text {
    font-size: 12px;
  }
}

/* Tablet responsive styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .swachh-covers-widget {
    padding: 14px;
  }
  
  .swachh-covers-title-spacing {
    height: 11px;
  }
}

/* Large screen adjustments */
@media (min-width: 1200px) {
  .swachh-covers-widget {
    border-radius: 20px;
    padding: 18px;
  }
  
  .swachh-covers-title {
    font-size: 15px;
  }
  
  .swachh-covers-title-spacing {
    height: 14px;
  }
}

/* Hover effects for better interactivity */
.swachh-covers-widget {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.swachh-covers-widget:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Focus states for accessibility */
.swachh-covers-widget:focus-within {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Loading state */
.swachh-covers-widget.loading {
  opacity: 0.7;
  pointer-events: none;
}

.swachh-covers-widget.loading .swachh-covers-content {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Enhanced readability for long descriptions */
.swachh-covers-widget .info-desc-text {
  text-align: justify;
  hyphens: auto;
  word-break: break-word;
}

/* Print styles */
@media print {
  .swachh-covers-widget {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
    padding: 12px;
  }
  
  .swachh-covers-widget:hover {
    transform: none;
    box-shadow: none;
  }
  
  .swachh-covers-title {
    font-size: 13px;
  }
  
  .swachh-covers-widget .info-desc-text {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .swachh-covers-widget {
    border-color: #000;
    border-width: 2px;
  }
  
  .swachh-covers-title {
    color: #000;
  }
  
  .swachh-covers-widget .info-desc-title {
    color: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .swachh-covers-widget {
    transition: none;
  }
  
  .swachh-covers-widget:hover {
    transform: none;
  }
  
  .swachh-covers-widget.loading .swachh-covers-content {
    animation: none;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .swachh-covers-widget {
    background-color: #1a1a1a;
    border-color: #404040;
  }
  
  .swachh-covers-title {
    color: #ffffff;
  }
  
  .swachh-covers-widget .info-desc-title {
    color: #ffffff;
  }
  
  .swachh-covers-widget .info-desc-text-defaultType {
    color: #b0b0b0;
  }
}

/* Improved spacing for better visual hierarchy */
.swachh-covers-widget .info-desc-icon-spacing {
  width: 10px;
}

.swachh-covers-widget .info-desc-title-spacing {
  height: 6px;
}

/* Better bullet point styling for default type */
.swachh-covers-widget .info-desc-bullet {
  background-color: #007bff;
  opacity: 0.8;
}
