/* XML Sitemap Generator Tool Styles */

.generator-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.generator-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.generator-header {
  padding: 40px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  text-align: center;
}

.generator-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.generator-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.generator-content {
  padding: 40px;
}

.input-methods {
  margin-bottom: 40px;
}

.method-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.method-tab {
  padding: 12px 20px;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.method-tab:hover {
  background: #f1f5f9;
  border-color: #ef4444;
}

.method-tab.active {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.method-panel {
  display: none;
}

.method-panel.active {
  display: block;
}

.url-input-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group label {
  font-weight: 600;
  color: #374151;
  font-size: 1.1rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background: #f8fafc;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #ef4444;
  background: white;
}

.input-group small {
  color: #6b7280;
  font-size: 0.9rem;
}

.url-list-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.url-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.url-input-item {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr auto;
  gap: 15px;
  align-items: end;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: border-color 0.3s ease;
}

.url-input-item:hover {
  border-color: #ef4444;
}

.url-input-item input,
.url-input-item select {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  background: #f8fafc;
}

.url-input-item input:focus,
.url-input-item select:focus {
  outline: none;
  border-color: #ef4444;
  background: white;
}

.remove-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn:hover {
  background: #dc2626;
}

.crawl-section,
.import-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.crawl-options,
.import-options {
  background: #f8fafc;
  border-radius: 12px;
  padding: 30px;
}

.crawl-options h4,
.import-options h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.option-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-item input,
.option-item select {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  background: white;
}

.option-item input:focus,
.option-item select:focus {
  outline: none;
  border-color: #ef4444;
}

.option-item label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.sitemap-options {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
}

.sitemap-options h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
  text-align: center;
}

.generate-section {
  text-align: center;
}

.generate-btn {
  padding: 18px 40px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.results-section {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 40px;
  margin-top: 30px;
}

.results-section h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-bottom: 30px;
}

.results-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ef4444;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: #ef4444;
  color: white;
}

.btn-primary:hover {
  background: #dc2626;
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.xml-preview {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.preview-header {
  background: #f8fafc;
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-header h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
}

.preview-actions {
  display: flex;
  gap: 10px;
}

.xml-output {
  max-height: 400px;
  overflow: auto;
}

.xml-output pre {
  margin: 0;
  padding: 20px;
  background: #1e293b;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
}

.validation-results {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-top: 30px;
  border: 1px solid #e5e7eb;
}

.validation-results h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
}

.validation-success {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #10b981;
  font-weight: 500;
}

.validation-success svg {
  width: 20px;
  height: 20px;
  color: #10b981;
}

.validation-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ef4444;
  font-weight: 500;
}

.validation-error svg {
  width: 20px;
  height: 20px;
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

.validation-error ul {
  margin: 10px 0 0 20px;
}

.validation-error li {
  margin-bottom: 5px;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon {
  width: 28px;
  height: 28px;
  color: white;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 15px;
}

.feature-description {
  color: #64748b;
  line-height: 1.6;
}

/* Related Tools Section */
.related-tools {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.tool-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 15px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #ef4444;
}

.tool-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.tool-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.tool-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 15px;
  text-align: center;
}

.tool-description {
  color: #64748b;
  line-height: 1.6;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .generator-container {
    margin: 0 20px;
    border-radius: 15px;
  }
  
  .generator-header {
    padding: 30px 20px;
  }
  
  .generator-header h2 {
    font-size: 2rem;
  }
  
  .generator-content {
    padding: 20px;
  }
  
  .method-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .url-input-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .url-input-item input,
  .url-input-item select {
    width: 100%;
  }
  
  .results-actions {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .action-buttons {
    justify-content: center;
  }
  
  .features-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .method-tabs {
    justify-content: flex-start;
  }
  
  .method-tab {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  .stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .action-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}
