/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2563eb;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2563eb;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Tools Section */
.tools {
  padding: 4rem 0;
}

.tools h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

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

.tool-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tool-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}

.tool-card p {
  color: #666;
  line-height: 1.5;
}

/* Tool Interface */
.tool-interface {
  background: #f8fafc;
  padding: 2rem 0;
  min-height: 60vh;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.tool-header h3 {
  font-size: 2rem;
  color: #333;
}

.close-tool {
  background: #ef4444;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.close-tool:hover {
  background: #dc2626;
}

.tool-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

/* Upload Area */
.upload-area {
  background: white;
  border: 3px dashed #cbd5e1;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.upload-area:hover {
  border-color: #2563eb;
  background: #f8fafc;
}

.upload-area.dragover {
  border-color: #2563eb;
  background: #eff6ff;
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.upload-area h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.upload-area p {
  color: #666;
  margin-bottom: 1rem;
}

#file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Processing Area */
.processing-area {
  background: white;
  border-radius: 12px;
  padding: 2rem;
}

.file-list {
  margin-bottom: 2rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-preview {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.file-details h5 {
  margin-bottom: 0.25rem;
  color: #333;
}

.file-details p {
  font-size: 0.9rem;
  color: #666;
}

.file-actions {
  display: flex;
  gap: 0.5rem;
}

.batch-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #64748b;
  color: white;
}

.btn-secondary:hover {
  background: #475569;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Tool Options */
.tool-options {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.tool-options h4 {
  margin-bottom: 1rem;
  color: #333;
}

.option-group {
  margin-bottom: 1.5rem;
}

.option-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.option-group input,
.option-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
}

.slider-container {
  margin: 1rem 0;
}

.slider {
  width: 100%;
  margin: 0.5rem 0;
}

.slider-value {
  text-align: center;
  font-weight: 600;
  color: #2563eb;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background: white;
}

.features h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

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

.feature {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}

.feature p {
  color: #666;
  line-height: 1.5;
}

/* Ad Slots */
.ad-slot {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.ad-hero {
  margin: 2rem auto;
}

.ad-sidebar {
  margin-bottom: 2rem;
}

.ad-content {
  margin: 3rem 0;
}

.ad-placeholder {
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  padding: 2rem;
  text-align: center;
  color: #9ca3af;
  border-radius: 8px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
}

.ad-hero .ad-placeholder {
  width: 728px;
  height: 90px;
  min-height: 90px;
}

.ad-sidebar .ad-placeholder {
  width: 300px;
  height: 250px;
}

.ad-content .ad-placeholder {
  width: 728px;
  height: 90px;
  min-height: 90px;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav {
    display: none;
  }
  
  .tool-content {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .ad-hero .ad-placeholder,
  .ad-content .ad-placeholder {
    width: 320px;
    height: 50px;
    min-height: 50px;
  }
  
  .ad-sidebar .ad-placeholder {
    width: 300px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .upload-area {
    padding: 2rem 1rem;
  }
  
  .tool-header h3 {
    font-size: 1.5rem;
  }
}