/* Text Case Converter Tool Specific Styles */

/* Tool Hero Section */
.tool-hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tool-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2319F57" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.03;
  pointer-events: none;
}

.tool-hero-content {
  position: relative;
  z-index: 1;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #2563EB 0%, #6366F1 100%);
  color: white;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.tool-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.tool-description {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.tool-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563EB;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: #2563EB;
}

/* Tool Section */
.tool-section {
  padding: 4rem 0;
  background: #F8FAFC;
}

.tool-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Input Area */
.tool-input {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.input-area {
  position: relative;
}

.input-area textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  transition: all 0.3s ease;
}

.input-area textarea:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.btn-secondary {
  background: #F1F5F9;
  color: #374151;
  border: 1px solid #E5E7EB;
}

.btn-secondary:hover {
  background: #E2E8F0;
  transform: translateY(-1px);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Statistics Display */
.tool-stats {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.stat-item {
  background: #F8FAFC;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #E2E8F0;
  text-align: center;
}

.stat-item h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 1rem;
}

.case-output {
  background: #1E293B;
  color: #E2E8F0;
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 60px;
  word-break: break-all;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover .copy-btn {
  opacity: 1;
}

/* Text Statistics */
.text-stats {
  display: flex;
  justify-content: space-around;
  background: #F8FAFC;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #E2E8F0;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2563EB;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  color: #6B7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-hero {
    padding: 3rem 0;
  }
  
  .tool-title {
    font-size: 2.5rem;
  }
  
  .tool-description {
    font-size: 1.125rem;
    padding: 0 1rem;
  }
  
  .tool-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .tool-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .text-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .input-actions {
    justify-content: center;
  }
  
  .btn {
    flex: 1;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .tool-title {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
}
