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

body {
  background: #0f0f11;
  color: #f0f0f0;
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

/* ===================== */
/* TOP BAR (DISCORD)     */
/* ===================== */
.topbar {
  width: 100%;
  max-width: 900px;
  background: #202225;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.discord-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.discord-link:hover {
  color: #7289da; /* Discord blurple */
}

.discord-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* ===================== */
/* MAIN CONTAINER        */
/* ===================== */
.container {
  max-width: 900px;
  width: 100%;
  background: #18181b;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

header img {
  width: 694px;
  height: 205px;
  margin-bottom: 0.5rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%   { transform: translate(0px, 0px); }
  25%  { transform: translate(5px, -5px); }
  50%  { transform: translate(0px, -10px); }
  75%  { transform: translate(-5px, -5px); }
  100% { transform: translate(0px, 0px); }
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

header h4 {
  font-size: 1.1rem;
  color: #aaa;
  font-weight: 400;
}

.intro {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-align: center;
  color: #ffffff; /* white text for contrast */
  background: linear-gradient(
    90deg,
    rgba(118, 83, 255, 0.7),  /* #7653ff with 70% opacity */
    rgba(244, 96, 54, 0.7)    /* #f46036 with 70% opacity */
  );
  border: none;
  padding: 1.2rem;
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 0 20px rgba(118, 83, 255, 0.4);
  backdrop-filter: blur(6px); /* optional: gives a nice frosted-glass effect */
}

.upload-card {
  text-align: center;
  margin-bottom: 1.5rem;
}

.upload-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input[type="file"] {
  background: #27272a;
  color: #e4e4e7;
  padding: 0.6rem;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

input[type="file"]:hover {
  background: #3f3f46;
}

.image-preview {
  margin-top: 1rem;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#loading {
  text-align: center;
  margin-bottom: 1rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

#loader {
  display: none; /* You can add a spinner here later */
}

/* ===================== */
/* RESULTS STYLING       */
/* ===================== */
#resultsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px; /* space between cards */
  margin-top: 2rem;
  padding: 1rem;
  background: #1f1f23;
  border-radius: 12px;
  min-height: 50px;
}

#resultsContainer div {
  width: 180px; /* Each card width */
  text-align: center;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px;
  background-color: #27272a;
  transition: transform 0.2s, box-shadow 0.2s;
}

#resultsContainer div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

#resultsContainer img {
  width: 100%;
  border-radius: 10px;
}

#resultsContainer h3 {
  margin: 10px 0 6px 0;
  font-size: 1.1rem;
  color: #fff;
}

.similarity {
  font-weight: bold;
  font-size: 1rem;
  color: #ffcc00; /* shade the percentage */
}
