@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Poppins:wght@400;500;600&display=swap');

/* ============================================
   Random Name Picker - by Yaseen
   ============================================ */

.rnp-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
}

/* ---- Header ---- */
.rnp-header {
  text-align: center;
  margin-bottom: 28px;
}

.rnp-badge {
  display: inline-block;
  background: #ffffff;
  border: 1.5px solid #0EA5E9;
  color: #0EA5E9;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.rnp-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.5px;
}

.rnp-subtitle {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0 !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

/* ---- Main Card ---- */
.rnp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 20px rgba(14, 165, 233, 0.07);
}

/* ---- Quick Examples ---- */
.rnp-quick-section {
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 26px;
  background: #fafcff;
}

.rnp-quick-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0EA5E9;
  margin: 0 0 14px 0 !important;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rnp-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rnp-quick-btn {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1.5px solid #0EA5E9;
  background: #0EA5E9;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.3px;
}

.rnp-quick-btn:hover {
  background: #0284c7;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14,165,233,0.25);
}

/* ---- Fields ---- */
.rnp-field {
  margin-bottom: 22px;
}

.rnp-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px !important;
  font-family: 'Poppins', sans-serif;
}

.rnp-label-hint {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.78rem;
  margin-left: 6px;
}

.rnp-textarea {
  width: 100%;
  min-height: 170px;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: #334155;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
  box-sizing: border-box;
  line-height: 1.8;
}

.rnp-textarea:focus {
  border-color: #0EA5E9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
  background: #ffffff;
}

.rnp-name-count {
  text-align: right;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 7px;
  font-family: 'Poppins', sans-serif;
}

.rnp-name-count span {
  font-weight: 700;
  color: #0EA5E9;
  font-size: 0.85rem;
}

/* ---- Two column row ---- */
.rnp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---- Select ---- */
.rnp-select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  background: #f8fafc;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.rnp-select:focus {
  border-color: #0EA5E9;
  box-shadow: 0 0 0 4px rgba(14,165,233,0.1);
}

/* ---- File Upload ---- */
.rnp-file-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 11px 14px;
}

.rnp-file-btn {
  padding: 8px 16px;
  background: #0EA5E9;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}

.rnp-file-btn:hover { background: #0284c7; }

#rnp-file-input { display: none; }

.rnp-file-name {
  font-size: 0.78rem;
  color: #94a3b8;
  font-family: 'Poppins', sans-serif;
}

/* ---- Certification ---- */
.rnp-cert-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.rnp-cert-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.rnp-cert-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #0EA5E9;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.rnp-cert-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rnp-cert-text strong {
  font-size: 0.85rem;
  color: #1e293b;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.rnp-cert-text span {
  font-size: 0.78rem;
  color: #78716c;
  font-family: 'Poppins', sans-serif;
}

/* ---- Note ---- */
.rnp-note {
  background: #eff6ff;
  border-left: 3px solid #0EA5E9;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: #1e40af;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ---- Pick Button ---- */
.rnp-pick-btn {
  width: 100%;
  padding: 17px;
  border-radius: 14px;
  border: none;
  background: #0EA5E9;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.35);
  margin-top: 4px;
}

.rnp-pick-btn:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.rnp-pick-btn:active { transform: translateY(0); }

/* ---- Results ---- */
.rnp-results {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 2px 20px rgba(14, 165, 233, 0.07);
  text-align: center;
}

.rnp-results-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.rnp-results-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0);
}

.rnp-results-line:last-child {
  background: linear-gradient(90deg, #e2e8f0, transparent);
}

.rnp-results-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #0EA5E9 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---- Winner Card ---- */
.rnp-winner-card {
  background: #334155;
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 14px;
  animation: rnpPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.85) translateY(10px);
}

.rnp-winner-position {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.rnp-winner-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  word-break: break-word;
  letter-spacing: -0.5px;
}

/* ---- Total Box ---- */
.rnp-total-box {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 40px;
  margin: 14px 0 24px;
}

.rnp-total-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #94a3b8;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.rnp-total-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #334155;
  line-height: 1;
}

/* ---- Reset Button ---- */
.rnp-reset-btn {
  padding: 12px 32px;
  border-radius: 10px;
  border: 2px solid #0EA5E9;
  background: transparent;
  color: #0EA5E9;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.rnp-reset-btn:hover {
  background: #0EA5E9;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14,165,233,0.3);
}

/* ---- Animation ---- */
@keyframes rnpPop {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 520px) {
  .rnp-row { grid-template-columns: 1fr; gap: 0; }
  .rnp-title { font-size: 1.7rem !important; }
  .rnp-winner-name { font-size: 1.8rem; }
  .rnp-quick-btns { gap: 8px; }
  .rnp-card { padding: 20px; }
}
