/* ==========================================================================
   Custom HTML Block Styles
   ========================================================================== */
.custom-html-block {
  width: 100%;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .custom-html-block.hide-mobile {
    display: none !important;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .custom-html-block.hide-tablet {
    display: none !important;
  }
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .custom-html-block.hide-desktop {
    display: none !important;
  }
}
@media screen and (min-width: 1441px) {
  .custom-html-block.hide-fullhd {
    display: none !important;
  }
}

/* ==========================================================================
   Editor Preview Styles
   ========================================================================== */
.custom-html-placeholder {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #ced4da;
  border-radius: 8px;
}
.custom-html-placeholder__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #00355F;
  border-radius: 8px;
}
.custom-html-placeholder__icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #ffffff;
}
.custom-html-placeholder__text strong {
  display: block;
  font-size: 1rem;
  color: #00355F;
  margin-bottom: 0.25rem;
}
.custom-html-placeholder__text p {
  margin: 0;
  font-size: 0.875rem;
  color: #6c757d;
}

.custom-html-preview {
  position: relative;
}
.custom-html-preview__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  background-color: #00355F;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: "Public Sans", sans-serif;
  border-radius: 4px 4px 0 0;
}
.custom-html-preview__badge .visibility-badge {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
  font-size: 0.6875rem;
}
.custom-html-preview__content {
  padding: 1rem;
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .custom-html-block * {
    animation: none !important;
    transition: none !important;
  }
}
