/* Hero Title Styles - Custom Cyan/Emerald Theme for Text Compare */
.tool-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  position: relative;
}

.tool-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #ffffff;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  font-size: 28px;
}

.tool-hero .page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.tool-hero .gradient-text {
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-hero .page-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* SEO Article Styles */
.seo-article { max-width: 800px; margin-top: 40px; margin-left: auto; margin-right: auto; }
.article-section { 
  background: var(--bg-card); 
  backdrop-filter: blur(12px); 
  border: 1px solid var(--border-color); 
  border-radius: 16px; 
  padding: 32px; 
  margin-bottom: 24px; 
}
.article-section h2 { 
  font-size: 24px; 
  margin-bottom: 20px; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  color: var(--text-primary); 
}
.article-section h2 i { 
  color: #10b981; 
  background: rgba(16, 185, 129, 0.15); 
  padding: 12px; 
  border-radius: 12px; 
  font-size: 20px; 
}
.article-section p { 
  color: var(--text-secondary); 
  line-height: 1.8; 
  margin-bottom: 16px; 
  font-size: 15px; 
}

.compare-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.compare-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.1s, box-shadow 0.2s;
}

.btn-primary:hover {
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media(max-width: 768px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }
}

.text-panel {
  display: flex;
  flex-direction: column;
}

.text-panel h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-panel h3 i {
  color: var(--text-secondary);
}

.text-panel textarea {
  width: 100%;
  height: 160px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  font-family: monospace;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.text-panel textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2), inset 0 2px 5px rgba(0,0,0,0.02);
}

.result-area {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.result-area.hidden {
  display: none;
}

.result-area h3 {
  margin-bottom: 15px;
  color: var(--text-primary);
}

.diff-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.legend-added {
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.legend-removed {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.diff-output {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}

.diff-output ins {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  text-decoration: none;
  border-radius: 3px;
}

.diff-output del {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  text-decoration: line-through;
  border-radius: 3px;
}
