/* Gothic Font Generator Styles */
.statmat-tool.gothic-font {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  color: #a3a3a3;
  background-color: #171717;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid #262626;
  overflow: hidden;
}

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

.statmat-tool.gothic-font .gf-header {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid #333;
}

.statmat-tool.gothic-font .gf-icon {
  font-size: 44px;
  margin-bottom: 12px;
  color: #dc2626; /* Dark red accent */
  text-shadow: 0 0 10px rgba(220,38,38,0.5);
}

.statmat-tool.gothic-font .gf-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #f5f5f5;
}

.statmat-tool.gothic-font .gf-header p {
  margin: 0;
  font-size: 15px;
  color: #737373;
}

.statmat-tool.gothic-font .gf-container {
  padding: 30px;
  background-color: #171717;
}

.statmat-tool.gothic-font .input-section {
  background-color: #111;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #262626;
  margin-bottom: 24px;
}

.statmat-tool.gothic-font label {
  display: block;
  font-weight: 600;
  color: #a3a3a3;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.statmat-tool.gothic-font textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #404040;
  border-radius: 6px;
  font-size: 20px;
  color: #f5f5f5;
  background-color: #1a1a1a;
  transition: all 0.2s;
  resize: vertical;
  font-family: serif;
}

.statmat-tool.gothic-font textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

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

.statmat-tool.gothic-font .btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.statmat-tool.gothic-font .btn-secondary {
  background-color: #262626;
  color: #a3a3a3;
}

.statmat-tool.gothic-font .btn-secondary:hover {
  background-color: #404040;
  color: #fff;
}

/* Results Section */
.statmat-tool.gothic-font .results-section {
  background-color: #111;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #262626;
}

.statmat-tool.gothic-font .results-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #262626;
}

.statmat-tool.gothic-font .results-header h3 {
  margin: 0;
  font-size: 16px;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.statmat-tool.gothic-font .font-card {
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s;
}

.statmat-tool.gothic-font .font-card:hover {
  border-color: #dc2626;
}

.statmat-tool.gothic-font .font-label {
  background-color: #000;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #737373;
  border-bottom: 1px solid #262626;
  letter-spacing: 1px;
}

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

.statmat-tool.gothic-font .font-output {
  flex: 1;
  padding: 16px 20px;
  font-size: 26px; 
  color: #e5e5e5;
  word-break: break-all;
  white-space: pre-wrap;
  border-right: 1px solid #262626;
}

.statmat-tool.gothic-font .copy-btn {
  width: 90px;
  background-color: #1a1a1a;
  border: none;
  color: #dc2626;
  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.gothic-font .copy-btn:hover {
  background-color: #dc2626;
  color: #fff;
}

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

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

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

@media (max-width: 600px) {
  .statmat-tool.gothic-font .font-output {
    font-size: 22px;
    padding: 12px 16px;
  }
  .statmat-tool.gothic-font .copy-btn {
    width: 70px;
  }
}

/* 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;
}
