/* Result Card Styles */
.result-card {
  display: none;
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 20px;
}

.result-card.show {
  display: block;
  animation: slideUp 0.5s ease-out;
}

/* Card Preview */
.card-preview {
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.card-preview img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow:
    0 0 30px rgba(0, 255, 136, 0.3),
    0 4px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-preview img:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 40px rgba(0, 255, 136, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.7);
}

/* Status Messages */
.status {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 16px;
  min-height: 24px;
}

.error {
  color: #ff4444;
}

/* Share Section */
.share-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btn-share {
  width: 100%;
  background: linear-gradient(135deg, var(--toxic-green) 0%, #00cc77 100%);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--glow-green);
}

.btn-download {
  width: 100%;
  background: linear-gradient(135deg, var(--toxic-orange) 0%, var(--acid-yellow) 100%);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--glow-orange);
}

.share-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.share-link {
  flex: 1;
  min-width: 120px;
  background: var(--input);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.share-link:hover {
  background: var(--border);
  transform: translateY(-2px);
}

.share-link.telegram {
  background: linear-gradient(135deg, #0088cc 0%, #00aaee 100%);
  color: #fff;
  border: none;
}

.share-link.twitter {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
  color: #fff;
  border: none;
}

.share-link.copy {
  background: var(--surface);
}

/* Hidden File Input */
#fileInput {
  display: none;
}

/* Global Stats Block */
.global-stats {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(255, 255, 0, 0.08) 100%);
  border: 2px solid var(--toxic-green);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.global-stats-title {
  font-size: 0.75rem;
  color: var(--toxic-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.global-stats-value {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 15px var(--toxic-green);
  line-height: 1.2;
}

.global-stats-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}
