/* ===================================================
   Pincode Directory — assets/style.css  v1.0.0
   =================================================== */

:root {
  --pd-coral:   #FF4D4D;
  --pd-indigo:  #3B2FEF;
  --pd-lime:    #C8F135;
  --pd-amber:   #FFB830;
  --pd-sky:     #00C2FF;
  --pd-dark:    #0E0E14;
  --pd-card:    #16161F;
  --pd-text:    #F0EFFF;
  --pd-muted:   #8885AA;
  --pd-border:  rgba(255,255,255,0.08);
  --pd-rad:     14px;
}

.pd-app { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--pd-text); }
.pd-app *, .pd-app *::before, .pd-app *::after { box-sizing: border-box; }
.pd-app em { font-style: normal; }

/* ── HERO ── */
.pd-hero {
  position: relative;
  background: var(--pd-dark);
  border-radius: 24px;
  padding: 60px 24px 48px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 28px;
}

.pd-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .22;
  animation: pd-drift 9s ease-in-out infinite alternate;
}
.pd-b1 { width:320px;height:320px;background:var(--pd-indigo);top:-80px;left:-60px;animation-delay:0s; }
.pd-b2 { width:250px;height:250px;background:var(--pd-coral);top:20px;right:-50px;animation-delay:2.5s; }
.pd-b3 { width:190px;height:190px;background:var(--pd-sky);bottom:-50px;left:42%;animation-delay:5s; }

@keyframes pd-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(18px,26px) scale(1.1); }
}

.pd-hero-inner { position: relative; z-index: 1; }

.pd-badge {
  display: inline-block;
  background: rgba(200,241,53,.12);
  border: 1px solid rgba(200,241,53,.35);
  color: var(--pd-lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.pd-h2 {
  font-size: clamp(1.8rem,5.5vw,3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--pd-text);
}

.pd-coral { color: var(--pd-coral); }
.pd-sky   { color: var(--pd-sky); }

.pd-sub {
  color: var(--pd-muted);
  font-size: .97rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ── TABS ── */
.pd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}

.pd-tab {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--pd-muted);
  font-size: .84rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
}
.pd-tab:hover, .pd-tab.pd-tab-on {
  background: var(--pd-indigo);
  border-color: var(--pd-indigo);
  color: #fff;
}

/* ── SEARCH ── */
.pd-search-wrap { max-width: 600px; margin: 0 auto; }

.pd-search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.pd-search-box:focus-within {
  border-color: var(--pd-sky);
  box-shadow: 0 0 0 3px rgba(0,194,255,.14);
}

.pd-s-icon { padding: 0 0 0 18px; font-size: 1.1rem; }

.pd-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--pd-text) !important;
  font-size: 1rem !important;
  padding: 16px 12px !important;
  min-width: 0;
}
.pd-input::placeholder { color: var(--pd-muted); }

.pd-btn {
  background: linear-gradient(135deg, var(--pd-coral), var(--pd-indigo));
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: 0 26px;
  height: 54px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s, transform .1s;
}
.pd-btn:hover   { opacity: .88; }
.pd-btn:active  { transform: scale(.97); }
.pd-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── BROWSE ── */
.pd-browse-wrap { max-width: 600px; margin: 0 auto; }

.pd-browse-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.pd-sel {
  flex: 1;
  min-width: 160px;
  background: rgba(255,255,255,.06) !important;
  border: 1.5px solid rgba(255,255,255,.12) !important;
  border-radius: 12px !important;
  color: var(--pd-text) !important;
  font-size: .9rem !important;
  padding: 10px 14px !important;
  outline: none !important;
  cursor: pointer;
  transition: border-color .2s;
}
.pd-sel:focus { border-color: var(--pd-sky) !important; }
.pd-sel option { background: #1a1a28; }
.pd-sel:disabled { opacity: .45; }

/* ── STATS ── */
.pd-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.pd-stat { text-align: center; }
.pd-n {
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pd-lime), var(--pd-sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pd-l { color: var(--pd-muted); font-size: .75rem; margin-top: 2px; }

/* ── STATUS ── */
.pd-status {
  background: var(--pd-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-rad);
  padding: 18px 22px;
  text-align: center;
  color: var(--pd-muted);
  margin-bottom: 24px;
}
.pd-status.pd-loading::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--pd-sky);
  border-radius: 50%;
  animation: pd-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }
.pd-status.pd-err { border-color: rgba(255,77,77,.35); color: var(--pd-coral); }

/* ── RESULTS ── */
.pd-results {
  background: var(--pd-dark);
  border-radius: 20px;
  padding: 24px;
}

.pd-res-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pd-res-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pd-text);
}

.pd-count-badge {
  background: rgba(255,77,77,.15);
  color: var(--pd-coral);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
}

.pd-filter {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 8px !important;
  color: var(--pd-text) !important;
  font-size: .84rem !important;
  padding: 6px 12px !important;
  outline: none !important;
  width: 180px;
}
.pd-filter::placeholder { color: var(--pd-muted); }

/* ── CARDS GRID ── */
.pd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* ── CARD ── */
.pd-card {
  background: var(--pd-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-rad);
  padding: 18px;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  animation: pd-up .32s ease both;
  position: relative;
  overflow: hidden;
}
.pd-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--pd-coral), var(--pd-indigo));
  opacity: 0;
  transition: opacity .2s;
}
.pd-card:hover::after  { opacity: 1; }
.pd-card:hover {
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}

@keyframes pd-up {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Card head */
.pd-ch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pd-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ic0 { background: rgba(59,47,239,.22); }
.ic1 { background: rgba(255,77,77,.22); }
.ic2 { background: rgba(255,184,48,.22); }
.ic3 { background: rgba(200,241,53,.14); }
.ic4 { background: rgba(0,194,255,.14); }

.pd-pin  { font-size: 1.15rem; font-weight: 900; color: var(--pd-text); letter-spacing: .03em; }
.pd-oname { color: var(--pd-muted); font-size: .85rem; margin-top: 2px; }

/* Card body grid */
.pd-cb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.pd-field {
  background: rgba(255,255,255,.04);
  border-radius: 7px;
  padding: 7px 9px;
}
.pd-fl {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-bottom: 1px;
}
.pd-fv {
  font-size: .82rem;
  font-weight: 600;
  color: var(--pd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tags */
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.pd-tag {
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 5px;
  background: rgba(255,255,255,.06);
  color: var(--pd-muted);
}
.pd-tag-d { background: rgba(200,241,53,.1);  color: var(--pd-lime); }
.pd-tag-b { background: rgba(0,194,255,.1);   color: var(--pd-sky); }

/* ── PAGINATION ── */
.pd-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.pd-page-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--pd-muted);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .18s;
}
.pd-page-btn:hover, .pd-page-btn.pd-cur {
  background: var(--pd-indigo);
  border-color: var(--pd-indigo);
  color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width:620px) {
  .pd-hero   { padding: 40px 14px 32px; }
  .pd-cards  { grid-template-columns: 1fr; }
  .pd-stats  { gap: 18px; }
  .pd-results { padding: 14px 12px; }
  .pd-browse-row { flex-direction: column; }
  .pd-sel    { min-width: 0; }
}
