* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
}

.header p {
  font-size: 1.1em;
  opacity: 0.9;
}

.content {
  padding: 40px;
}

.upload-section {
  text-align: center;
  margin-bottom: 40px;
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.file-input-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 100px;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

.preview-section {
  margin-bottom: 30px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.image-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.image-card .card-body {
  padding: 15px;
}

.image-card .filename {
  font-size: 0.9em;
  color: #666;
  text-align: center;
  word-break: break-all;
}

.action-buttons {
  text-align: center;
  margin-bottom: 30px;
}

.btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.result-section {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
}

.result-section h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.selected-image {
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none;
}

.error {
  background: #ffebee;
  color: #c62828;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #c62828;
}

.success {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #2e7d32;
}

.seo-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
}

.seo-content h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.seo-content h3 {
  color: #444;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.seo-content p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.7;
}

.seo-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.seo-content li {
  color: #666;
  margin-bottom: 8px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
  color: #333;
  margin-bottom: 10px;
}

.feature-card p {
  color: #666;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .content {
    padding: 20px;
  }

  .header {
    padding: 20px;
  }

  .header h1 {
    font-size: 2em;
  }

  .seo-content {
    padding: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 5px;
}

.share-twitter {
  background: #1da1f2;
  color: white;
}

.share-facebook {
  background: #1877f2;
  color: white;
}

.share-linkedin {
  background: #0a66c2;
  color: white;
}

.share-instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
}

.share-download {
  background: #28a745;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .share-btn {
    font-size: 0.8em;
    padding: 8px 12px;
  }
}
