/**
 * PDFHub - Tool Specific Styles
 * Focuses on upload zone, processing states, and result displays.
 */

.tool-header {
  text-align: center;
  padding: 4rem 0 3rem;
}

.tool-header h1 {
  font-size: var(--font-3xl);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.tool-header .tagline {
  font-size: var(--font-lg);
  color: var(--color-text-muted);
}

.tool-stats {
  margin-top: 1rem;
  font-size: var(--font-sm);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--color-text-muted);
}

/* Upload Zone */
.upload-container {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.upload-zone {
  border: 4px dashed var(--color-border);
  border-radius: 12px;
  padding: 4rem 2rem;
  text-align: center;
  background: var(--color-bg);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.upload-zone__icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.upload-zone__title {
  font-size: var(--font-xl);
  font-weight: 800;
}

.upload-zone__hint {
  color: var(--color-text-muted);
  font-size: var(--font-sm);
}

/* Selected Files List */
.file-list {
  width: 100%;
  max-width: 600px;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.file-item__icon { font-size: 1.5rem; }
.file-item__info { flex: 1; min-width: 0; }
.file-item__name { 
  font-weight: 600; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}
.file-item__size { font-size: var(--font-xs); color: var(--color-text-muted); }
.file-item__remove { 
  background: none; 
  border: none; 
  color: var(--color-error); 
  cursor: pointer; 
  font-size: 1.25rem;
  padding: 0.25rem;
}

/* Processing State */
.process-controls {
  margin-top: 2rem;
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.progress-container {
  width: 100%;
  max-width: 600px;
  margin: 1.5rem 0;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: var(--font-sm);
}

/* Result Display */
.result-box {
  display: none;
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  background: var(--color-bg);
  border: 2px solid var(--color-success);
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
  animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.result-box h3 { color: var(--color-success); margin-bottom: 1rem; font-weight: 800; }

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 1rem;
  z-index: 1001;
  display: none;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

@media (max-width: 767px) {
  .mobile-sticky-bar { display: flex; }
}

/* SEO Content Block */
.tool-seo-content {
  padding: 4rem 0;
  line-height: 1.8;
}

.tool-seo-content h2, .tool-seo-content h3 {
  margin: 2rem 0 1rem;
  font-weight: 800;
}
