/* Underline Text Generator Styles */

.utg-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.utg-container h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #333;
}

.intro-text {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.utg-container h2 {
  font-size: 1.6rem;
  margin: 40px 0 20px 0;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.utg-container h3 {
  font-size: 1.3rem;
  margin: 25px 0 15px 0;
  color: #4a6cf7;
}

.utg-container p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

.tool-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.input-area {
  margin-bottom: 25px;
}

.input-area textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1.1rem;
  resize: vertical;
  transition: border-color 0.3s;
  font-family: inherit;
}

.input-area textarea:focus {
  outline: none;
  border-color: #4a6cf7;
}

.input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.char-count {
  color: #888;
  font-size: 0.9rem;
}

.char-count span {
  font-weight: 600;
  color: #4a6cf7;
}

.case-buttons {
  display: flex;
  gap: 8px;
}

.case-buttons button {
  padding: 6px 14px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.case-buttons button:hover {
  background: #e9ecef;
  border-color: #ccc;
}

.clear-btn {
  padding: 6px 16px;
  border: none;
  background: #ff6b6b;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.clear-btn:hover {
  background: #ee5a5a;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.result-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e9ecef;
  transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result-header {
  margin-bottom: 12px;
}

.style-name {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.style-preview {
  font-size: 0.8rem;
  color: #888;
}

.result-output {
  min-height: 50px;
  padding: 10px;
  background: white;
  border-radius: 6px;
  font-size: 1rem;
  word-break: break-all;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  line-height: 1.6;
}

.result-output.copied {
  background: #e8f5e9;
  border-color: #4caf50;
  animation: copyPulse 0.3s ease-in-out;
}

@keyframes copyPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.copy-btn {
  width: 100%;
  padding: 8px;
  background: #4a6cf7;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #3a5ce5;
}

.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 35px 0;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.feature-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #333;
}

.feature-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.steps-list {
  background: white;
  padding: 30px 30px 30px 50px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.steps-list li {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #555;
}

.steps-list li strong {
  color: #4a6cf7;
}

.faq-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-item h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #4a6cf7;
}

.faq-item p {
  margin: 0;
  color: #555;
  line-height: 1.7;
}

.security-section {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin: 40px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-left: 4px solid #4caf50;
}

.security-icon {
  font-size: 2.5rem;
}

.security-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: #333;
}

.security-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.related-tools {
  margin-top: 50px;
}

.related-tools h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.4rem;
  color: #333;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.related-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-tool-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  color: #4a6cf7;
}

.tool-preview {
  font-size: 1.3rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .utg-container h1 {
    font-size: 1.7rem;
  }
  
  .utg-container h2 {
    font-size: 1.3rem;
  }
  
  .tool-section {
    padding: 20px;
  }
  
  .input-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .case-buttons {
    justify-content: center;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .security-section {
    flex-direction: column;
    text-align: center;
  }
  
  .steps-list {
    padding: 20px 20px 20px 40px;
  }
}
