/* style.css - minimal, fast, system fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #1e1e1e;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

header {
  border-bottom: 1px solid #eaeaea;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.subhead {
  font-size: 1.1rem;
  color: #5a5a5a;
}

.tool-card {
  background: #f9f9f9;
  border-radius: 20px;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  margin: 2rem 0;
}

.upload-area {
  border: 2px dashed #cbcbcb;
  border-radius: 16px;
  background: white;
  padding: 2rem 1rem;
  text-align: center;
  transition: border 0.1s ease;
  margin-bottom: 1.8rem;
  cursor: pointer;
}

.upload-area.dragover {
  border-color: #2b7a4b;
  background: #f0f8f2;
}

#fileInput {
  display: none;
}

.upload-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  color: #2c2c2c;
}

.upload-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.file-types {
  font-size: 0.85rem;
  color: #6f6f6f;
}

.message {
  padding: 0.8rem 1.2rem;
  border-radius: 40px;
  margin: 1rem 0;
  font-weight: 500;
}

.error {
  background: #ffeeee;
  color: #b00020;
  border: 1px solid #ffb0b0;
}

.loading {
  background: #e7f0ff;
  color: #004e9e;
  text-align: center;
  padding: 0.8rem;
  border-radius: 40px;
  font-weight: 500;
}

.hidden {
  display: none;
}

.info-panel {
  background: white;
  border-radius: 16px;
  padding: 1.4rem;
  margin: 1.5rem 0 1rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.info-header {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3rem;
}

.info-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin: 0.5rem 0 0.8rem 0;
  font-size: 0.95rem;
}

.image-preview {
  margin-top: 0.8rem;
  text-align: center;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 0.5rem;
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-preview img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.saved-badge {
  background: #2b7a4b;
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
}

.control-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.4rem;
  margin: 1rem 0;
}

.control-panel label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
}

input[type=range] {
  width: 100%;
  margin: 0.5rem 0 0.2rem 0;
  accent-color: #2b7a4b;
}

.helper-text {
  display: block;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #6f6f6f;
}

/* Target size row removed – no longer needed */

.btn {
  background: #1e1e1e;
  color: white;
  border: none;
  border-radius: 60px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s;
  width: 100%;
  max-width: 280px;
  margin: 0.5rem auto 0 auto;
  display: block;
}

.btn:hover {
  background: #3a3a3a;
}

.btn:disabled {
  background: #b0b0b0;
  cursor: not-allowed;
}

.download-btn {
  background: #2b7a4b;
  margin-top: 1.2rem;
}

.download-btn:hover {
  background: #1f5e38;
}

.seo-content {
  background: #ffffff;
  padding: 2rem 1.8rem;
  border-radius: 24px;
  border: 1px solid #f0f0f0;
  margin: 2.5rem 0 1rem;
}

.seo-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.seo-content h3 {
  font-size: 1.2rem;
  margin: 1rem 0 0.25rem;
  font-weight: 600;
}

.seo-content p, .seo-content li {
  margin-bottom: 1rem;
  color: #3d3d3d;
}

.seo-content ul, .seo-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.seo-content div[itemprop="text"] {
  margin-left: 1rem;
  color: #3d3d3d;
}

footer {
  border-top: 1px solid #eaeaea;
  color: #6f6f6f;
  font-size: 0.9rem;
  text-align: center;
  margin-top: auto;
}

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  .tool-card { padding: 1.5rem 1rem; }
  .btn { max-width: 100%; }
  .info-content { flex-direction: column; gap: 0.4rem; }
}
/* Page navigation links */
.page-nav {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
}
.page-nav a {
  color: #2b7a4b;
  text-decoration: none;
  font-weight: 500;
}
.page-nav a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .page-nav {
    gap: 0.8rem;
    justify-content: center;
  }
}