/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #000;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  text-align: center;
  padding: 2rem 1rem;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}
.lang-switcher {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}
.lang-switcher select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #ffffff;
  color: #000;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.5rem;
}
header p {
  font-size: 1.1rem;
  color: #333;
}
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
#upload-section {
  width: 100%;
  max-width: 500px;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}
.drop-area {
  border: 3px dashed #ddd;
  border-radius: 12px;
  padding: 4rem 2rem;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.drop-area:hover, .drop-area.dragover {
  border-color: #4a90e2;
  background: #f8f9ff;
  transform: scale(1.02);
}
.drop-area i {
  font-size: 3rem;
  color: #4a90e2;
  margin-bottom: 1rem;
}
#file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
#editor-section {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: slideUp 0.5s ease-out;
}
.image-container {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
  height: auto;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#original-img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  display: block;
}
.zoom-slider-wrapper {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.zoom-label {
  font-size: 0.9rem;
  color: #333;
}
.zoom-slider {
  width: 100%;
  accent-color: #4a90e2;
}
#download-btn {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(74,144,226,0.3);
  transition: all 0.3s ease;
}
#download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74,144,226,0.4);
}
.seo-section {
  padding: 2rem 1rem;
  max-width: 60% ;
  margin: 0 auto;
}

/* Footer Panel Styling */
footer {
  background: #ffffff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
}
.footer-links {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}
.footer-links a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.footer-links a:hover {
  color: #357abd;
}
.footer-strip {
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}
.footer-strip a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.footer-strip a:hover {
  color: #4a90e2;
}
.copyright {
  color: #666;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Media Queries */
@media (max-width: 768px) {
  .seo-section { max-width: 100%; }
  h1 { font-size: 2rem; }
  .footer-links {
    gap: 0.5rem;
  }
  .footer-links a {
    font-size: 0.9rem;
  }
  .footer-strip {
    gap: 0.25rem;
    flex-direction: row;
  }
  .footer-strip a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .lang-switcher { position: static; margin-bottom: 1rem; }
  footer { padding: 1rem; }
  .footer-links {
    gap: 0.25rem;
  }
  .footer-links a {
    font-size: 0.8rem;
  }
  .footer-strip {
    gap: 0.125rem;
    padding: 0.5rem 0;
  }
  .footer-strip a {
    font-size: 0.75rem;
  }
}