/* ============ BASE ============ */
body {
  background: #000;
  font-family: 'Instrument Serif';
}

/* ============ LAYOUT ============ */
#wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 40px 60px;
}

#profile-container {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ SEARCH BAR ============ */
#SearchInput {
  width: 100%;
  max-width: 900px;
  padding: 14px 20px;
  border-radius: 5px;
  border: 1px solid #2a2a2a;
  outline: none;
  background: #0d0d0d;
  color: #aaa;
  font-size: 15px;
  font-family: 'Inter', monospace;
  transition: border 0.3s ease, color 0.3s ease;
}

#SearchInput:focus {
  border-color: #555;
  color: #fff;
}

#SearchInput::placeholder {
  color: #444;
}

/* ============ CARD ============ */
.card {
  position: relative;
  width: 200px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

.bgImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ BLURRED LAYER ============ */
.blurred-Layer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: bottom;
  filter: blur(10px);
  z-index: 1;
  mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  transition: height 0.3s ease;
}

.card:hover .blurred-Layer {
  height: 70%;
}

/* ============ CARD CONTENT ============ */
.content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  transition: bottom 0.3s ease;
}

.card:hover .content {
  bottom: 28px;
}

.content h3 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.content p {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* ============ MODAL ============ */
#add-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#modal-box {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 340px;
}

#modal-box h3 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

#modal-box input,
#modal-box textarea {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 10px 14px;
  color: #aaa;
  font-family: 'Inter', monospace;
  font-size: 13px;
  outline: none;
  transition: border 0.3s ease;
}

#modal-box input:focus,
#modal-box textarea:focus {
  border-color: #444;
  color: #fff;
}

#modal-box textarea {
  resize: none;
  height: 80px;
}

#submit-character {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

#submit-character:hover {
  background: #ddd;
}

#close-modal {
  background: transparent;
  color: #555;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 8px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: color 0.3s ease;
}

#close-modal:hover {
  color: #fff;
}
