/* -------------------------------------------------------------------------- */
/* KO-FI VANILLA COMPONENTS STYLESHEET                                       */
/* Replicating react-kofi styling                                             */
/* -------------------------------------------------------------------------- */

/* KoFiPanel Styles */
.kofi-panel-frame {
  border: none;
  width: 100%;
  height: 100%;
  background: #f9f9f9;
  box-sizing: border-box;
}

/* KoFiDialog Styles */
.kofi-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(4px);
}

.kofi-dialog-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.kofi-dialog-card {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  height: 680px;
  max-height: 90vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 768px) {
  .kofi-dialog-card {
    width: 92%;
    max-width: 360px;
    height: 80vh;
    border-radius: 12px;
  }
}

.kofi-dialog-overlay.visible .kofi-dialog-card {
  transform: scale(1);
}

.kofi-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #333;
  transition: background 0.2s ease;
  z-index: 10;
}

.kofi-dialog-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* KoFiWidget Styles */
.kofi-widget-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #ff5f5f;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.kofi-widget-floating-btn:hover {
  transform: scale(1.05);
  background-color: #e04f4f;
}

.kofi-widget-floating-btn img {
  height: 20px;
  width: auto;
}

/* KoFiButton Styles */
.kofi-btn-custom {
  background-color: #ff5f5f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.kofi-btn-custom:hover {
  background-color: #e04f4f;
}
