/* CSS Minifier Tool Styles */

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

.tool-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;
}

.tool-header {
  padding: 40px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  text-align: center;
}

.tool-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.tool-description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.tool-options {
  padding: 30px 40px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.option-group {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.option-group:last-child {
  margin-bottom: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: #475569;
  transition: color 0.3s ease;
}

.checkbox-label:hover {
  color: #2563eb;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: #2563eb;
  border-color: #2563eb;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.editor-container {
  background: white;
}

.editor-header {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.editor-tab {
  flex: 1;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.editor-tab:hover {
  color: #2563eb;
  background: #e2e8f0;
}

.editor-tab.active {
  color: #2563eb;
  background: white;
}

.editor-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
}

.tab-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.editor-content {
  position: relative;
  min-height: 400px;
}

.editor-panel {
  display: none;
}

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

.css-editor {
  width: 100%;
  height: 400px;
  padding: 20px;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  color: #334155;
  background: #fafafa;
}

.css-editor:focus {
  outline: none;
  background: white;
}

.css-editor[readonly] {
  background: #f8fafc;
  color: #475569;
}

.editor-actions {
  padding: 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.size-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.size-label.saved {
  color: #10b981;
  font-weight: 600;
}

.sample-section {
  padding: 30px 40px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.sample-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 15px;
}

.sample-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sample-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #475569;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sample-btn:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

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

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

.features {
  padding: 80px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 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, #2563eb 0%, #1d4ed8 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;
}

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

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

.step-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

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

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

.btn.success {
  background: #10b981;
  border-color: #10b981;
}

.btn.success:hover {
  background: #059669;
  border-color: #059669;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .tool-container {
    margin: 0 20px;
    border-radius: 15px;
  }
  
  .tool-header {
    padding: 30px 20px;
  }
  
  .tool-title {
    font-size: 2rem;
  }
  
  .tool-options {
    padding: 20px;
  }
  
  .option-group {
    flex-direction: column;
    gap: 15px;
  }
  
  .editor-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .size-info {
    justify-content: center;
  }
  
  .sample-section {
    padding: 20px;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .sample-buttons {
    flex-direction: column;
  }
  
  .sample-btn {
    width: 100%;
  }
}
