/* Hero Title Styles */
.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, #6366f1, #a855f7);
  color: #ffffff;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 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, #6366f1, #ec4899);
  -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: #a855f7; 
  background: rgba(168, 85, 247, 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; 
}

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

.drop-zone {
  border: 2px dashed var(--accent-primary);
  border-radius: 16px;
  padding: 50px 20px;
  text-align: center;
  background: rgba(59, 130, 246, 0.05);
  transition: all 0.3s;
  cursor: pointer;
}

.drop-zone.dragover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #10B981;
}

.cloud-icon {
  font-size: 60px;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.drop-zone h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.drop-zone p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  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); }

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

.image-preview-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

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

.preview-box {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  position: relative;
}

.preview-box h4 {
  margin-bottom: 15px;
  color: var(--text-primary);
}

.preview-box img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  background: repeating-conic-gradient(rgba(255,255,255,0.1) 0% 25%, transparent 0% 50%) 50% / 20px 20px;
}

.text-success { color: #10B981; }

.saving-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #10B981;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.controls-panel {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.control-group {
  margin-bottom: 20px;
}

.control-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: 600;
}

input[type=range] {
  width: 100%;
  accent-color: var(--accent-primary);
}

.custom-select {
  width: 100%;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

.custom-select:focus {
  border-color: var(--accent-primary);
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-success, .btn-danger {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  transition: transform 0.1s, opacity 0.2s;
  flex: 1;
}

.btn-success { background: #10B981; color: white; }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.btn-success:hover { opacity: 0.9; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }
.btn-success:active, .btn-danger:active { transform: scale(0.95); }
