/* Cute Font Generator Styles */
.statmat-tool.cute-font {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  color: #5c4d57;
  background-color: #fffafb;
  border-radius: 16px; /* softer border */
  box-shadow: 0 8px 30px rgba(255, 182, 193, 0.2);
  border: 1px solid #ffe4e6;
  overflow: hidden;
}

.statmat-tool.cute-font * {
  box-sizing: border-box;
}

.statmat-tool.cute-font .cf-header {
  background: linear-gradient(135deg, #fbcfe8 0%, #f472b6 100%);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
}

.statmat-tool.cute-font .cf-icon {
  font-size: 38px;
  margin-bottom: 8px;
}

.statmat-tool.cute-font .cf-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(244, 114, 182, 0.4);
}

.statmat-tool.cute-font .cf-header p {
  margin: 0;
  font-size: 16px;
  color: #fff1f2;
}

.statmat-tool.cute-font .cf-container {
  padding: 30px;
}

.statmat-tool.cute-font .input-section {
  background-color: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #ffe4e6;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(255, 228, 230, 0.5);
}

.statmat-tool.cute-font label {
  display: block;
  font-weight: 700;
  color: #db2777;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.statmat-tool.cute-font textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #fbcfe8;
  border-radius: 8px;
  font-size: 20px;
  color: #831843;
  transition: all 0.2s;
  resize: vertical;
  font-family: inherit;
  background-color: #fff5f7;
}

.statmat-tool.cute-font textarea:focus {
  outline: none;
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.15);
  background-color: #fff;
}

.statmat-tool.cute-font .input-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.statmat-tool.cute-font .btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.statmat-tool.cute-font .btn-secondary {
  background-color: #fdf2f8;
  color: #db2777;
}

.statmat-tool.cute-font .btn-secondary:hover {
  background-color: #fbcfe8;
}

/* Results Section */
.statmat-tool.cute-font .results-section {
  background-color: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #ffe4e6;
  margin-bottom: 30px;
}

.statmat-tool.cute-font .results-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #fbcfe8;
}

.statmat-tool.cute-font .results-header h3 {
  margin: 0;
  font-size: 18px;
  color: #db2777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.statmat-tool.cute-font .section-desc {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #9d174d;
}

.statmat-tool.cute-font .font-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.statmat-tool.cute-font .font-card {
  display: flex;
  flex-direction: column;
  background-color: #fffafb;
  border: 1px solid #ffe4e6;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
}

.statmat-tool.cute-font .font-card:hover {
  border-color: #f472b6;
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.15);
  transform: translateY(-2px);
}

.statmat-tool.cute-font .font-label {
  background-color: #fdf2f8;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #db2777;
  border-bottom: 1px solid #ffe4e6;
}

.statmat-tool.cute-font .font-output-row {
  display: flex;
}

.statmat-tool.cute-font .font-output {
  flex: 1;
  padding: 16px;
  font-size: 22px;
  color: #831843;
  word-break: break-all;
  white-space: pre-wrap;
  border-right: 1px dashed #ffe4e6;
}

.statmat-tool.cute-font .copy-btn {
  width: 90px;
  background-color: #fff;
  border: none;
  color: #f472b6;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
}

.statmat-tool.cute-font .copy-btn:hover {
  background-color: #fdf2f8;
  color: #db2777;
}

.statmat-tool.cute-font .copy-icon {
  font-size: 20px;
}

/* Kaomoji Section */
.statmat-tool.cute-font .kaomoji-section {
  background-color: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #ffe4e6;
}

.statmat-tool.cute-font .kaomoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.statmat-tool.cute-font .kaomoji-btn {
  background-color: #fff5f7;
  border: 1px solid #fbcfe8;
  border-radius: 8px;
  padding: 12px 8px;
  font-size: 16px;
  color: #831843;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.statmat-tool.cute-font .kaomoji-btn:hover {
  background-color: #fbcfe8;
  transform: scale(1.05);
}

/* Toast */
.statmat-tool.cute-font .toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: #f472b6;
  color: white;
  padding: 12px 28px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(244, 114, 182, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 9999;
}

.statmat-tool.cute-font .toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .statmat-tool.cute-font .font-output {
    font-size: 18px;
    padding: 12px;
  }
  .statmat-tool.cute-font .copy-btn {
    width: 70px;
  }
  .statmat-tool.cute-font .kaomoji-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Global override for mobile scrolling on long results */
.statmat-tool [class*="result"], 
.statmat-tool [class*="output"],
.statmat-tool [class*="preview"],
.statmat-tool [class*="display"] {
  overflow-x: auto;
  max-width: 100%;
}

/* Global safeguard: ensure main wrapper never exceeds mobile viewport */
.statmat-tool {
  width: 100% !important;
  box-sizing: border-box;
}
