/* Itch.io Widget Styling */
.itch-widget {
  margin: 15px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.itch-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.itch-widget iframe {
  width: 100%;
  max-width: 552px;
  height: 167px;
  border: none;
  display: block;
  border-radius: 8px;
}

/* Responsive design for itch widgets */
@media (max-width: 768px) {
  .itch-widget iframe {
    width: 100%;
    max-width: 100%;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .itch-widget iframe {
    height: 120px;
  }
}

/* Integration with existing button content styling */
.button-content .itch-widget {
  margin-top: 10px;
}

/* Ensure widgets work well in collapsed state */
.collapsible .itch-widget {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Style for fallback links */
.itch-widget a {
  color: #fa5c5c;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  padding: 8px 16px;
  background: rgba(250, 92, 92, 0.1);
  border-radius: 4px;
}

.itch-widget a:hover {
  background: rgba(250, 92, 92, 0.2);
  text-decoration: underline;
}
