/* Backwards Text Generator Styles */

.btg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
}

.page-header h1 {
  margin: 0 0 15px 0;
  font-size: 2.5rem;
  font-weight: 700;
}

.page-header p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.95;
}

.tool-wrapper {
  margin-bottom: 40px;
}

.input-panel {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.input-panel h2 {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  color: #333;
}

.input-panel textarea {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s;
}

.input-panel textarea:focus {
  outline: none;
  border-color: #667eea;
}

.char-count {
  text-align: right;
  color: #888;
  margin-top: 10px;
  font-size: 0.9rem;
}

.char-count span {
  font-weight: 600;
  color: #667eea;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.result-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-top: 4px solid #667eea;
  transition: transform 0.3s, box-shadow 0.3s;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.result-header {
  margin-bottom: 15px;
}

.result-header h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: #333;
}

.result-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #888;
  line-height: 1.4;
}

.result-output {
  min-height: 60px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 1.1rem;
  word-break: break-all;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
}

.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); }
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-copy {
  width: 100%;
  background: #667eea;
  color: white;
}

.btn-copy:hover {
  background: #5568d3;
}

.btn-large {
  padding: 14px 30px;
  font-size: 1.1rem;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.batch-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.examples-section {
  margin-bottom: 50px;
}

.examples-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #333;
}

.examples-category {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.examples-category h3 {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  color: #667eea;
}

.example-grid {
  display: grid;
  gap: 15px;
}

.example-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.example-label {
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
}

.example-text {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 1.05rem;
  word-break: break-all;
}

.knowledge-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.knowledge-section h2 {
  margin: 0 0 30px 0;
  font-size: 1.8rem;
  color: #333;
  text-align: center;
}

.knowledge-section h3 {
  margin: 25px 0 15px 0;
  font-size: 1.3rem;
  color: #667eea;
}

.knowledge-section p {
  margin: 0 0 15px 0;
  line-height: 1.7;
  color: #555;
}

.comparison-table {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.comparison-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comp-style {
  font-weight: 600;
  color: #667eea;
}

.comp-desc {
  color: #555;
}

.supported-chars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.chars-group {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.chars-group h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.chars-group span {
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #555;
}

.use-cases-section {
  margin-bottom: 40px;
}

.use-cases-section h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: #333;
}

.use-cases-section p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.use-case-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.use-case-icon {
  font-size: 2rem;
}

.faq-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-section h2 {
  margin: 0 0 30px 0;
  font-size: 1.8rem;
  color: #333;
  text-align: center;
}

.faq-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: #667eea;
}

.faq-item p {
  margin: 0;
  line-height: 1.7;
  color: #555;
}

.platforms-section {
  margin-bottom: 40px;
}

.platforms-section h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #333;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.platform-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  color: #555;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.security-section {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-left: 4px solid #4caf50;
}

.security-icon {
  font-size: 3rem;
}

.security-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: #333;
}

.security-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.bottom-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.bottom-section p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.related-tools {
  margin-top: 40px;
}

.related-tools h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: #333;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.related-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 25px;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.related-tool-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  color: #667eea;
}

.tool-icon {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  .batch-actions {
    flex-direction: column;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .knowledge-section,
  .faq-section {
    padding: 25px;
  }
  
  .security-section {
    flex-direction: column;
    text-align: center;
  }
}
