/* =========================================================
   VK Store — Status Page (card grid layout)
   ========================================================= */

:root {
  --status-green:         #22c55e;
  --status-green-bg:      rgba(34,197,94,.1);
  --status-green-border:  rgba(34,197,94,.25);
  --status-yellow:        #f59e0b;
  --status-yellow-bg:     rgba(245,158,11,.1);
  --status-yellow-border: rgba(245,158,11,.25);
  --status-red:           #ef4444;
  --status-red-bg:        rgba(239,68,68,.1);
  --status-red-border:    rgba(239,68,68,.25);
}

/* ─── Layout ─── */
.status-main {
  max-width: 1200px;
  margin: 100px auto 70px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ─── Page header ─── */
.st-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.st-page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  background: linear-gradient(90deg,#fff 0,#d3d3d3 25%,#818181 50%,#d3d3d3 75%,#fff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rgbAnimation 5s linear infinite;
}

.st-page-sub {
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
  color: #555;
  margin: 0;
}

/* ─── Operational counter badge ─── */
.operational-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: 50px;
  padding: 7px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: #22c55e;
  white-space: nowrap;
  transition: all .3s;
}

.operational-badge.has-issues {
  background: rgba(245,158,11,.07);
  border-color: rgba(245,158,11,.2);
  color: #f59e0b;
}

.operational-badge.critical {
  background: rgba(239,68,68,.07);
  border-color: rgba(239,68,68,.2);
  color: #ef4444;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pls-green 2s ease-in-out infinite;
}

.operational-badge.has-issues .badge-dot { background: #f59e0b; animation: pls-yellow 2s ease-in-out infinite; }
.operational-badge.critical   .badge-dot { background: #ef4444; animation: none; }

@keyframes pls-green  { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.5)}  50%{box-shadow:0 0 0 5px rgba(34,197,94,0)} }
@keyframes pls-yellow { 0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,.5)} 50%{box-shadow:0 0 0 5px rgba(245,158,11,0)} }

/* ─── Filters ─── */
.st-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #3a3a3a;
  font-size: .78rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #e0e0e0;
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
  padding: 11px 14px 11px 36px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search-input:focus {
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 0 0 3px rgba(255,255,255,.03);
}

.search-input::placeholder { color: #333; }

.cat-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.cat-pill {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,.08);
  color: #555;
  font-family: 'Poppins', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.cat-pill:hover { border-color: rgba(255,255,255,.18); color: #bbb; }

.cat-pill.active {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

/* ─── Products grid ─── */
.st-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ─── Product card ─── */
.st-card {
  position: relative;
  isolation: isolate;
  background: radial-gradient(circle at center, #1c1c1c, #0f0f0f, #0a0a0a);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 12px rgba(255,255,255,.06), inset 0 0 12px rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.st-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  background: conic-gradient(from 0deg,rgba(255,255,255,0),rgba(255,255,255,.18),rgba(255,255,255,0) 30%,rgba(255,255,255,0) 70%,rgba(255,255,255,.18),rgba(255,255,255,0));
  filter: blur(14px);
  opacity: 0;
  transition: opacity .3s ease;
  animation: spinHalo 8s linear infinite;
}

.st-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 28px rgba(255,255,255,.15), inset 0 0 20px rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}

.st-card:hover::before { opacity: 1; }

/* Status badge — top-right corner of card */
.st-card-status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  font-family: 'Poppins', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.st-card-status.undetected {
  background: rgba(0,0,0,.65);
  border-color: var(--status-green-border);
  color: var(--status-green);
}
.st-card-status.updating {
  background: rgba(0,0,0,.65);
  border-color: var(--status-yellow-border);
  color: var(--status-yellow);
}
.st-card-status.detectable {
  background: rgba(0,0,0,.65);
  border-color: var(--status-red-border);
  color: var(--status-red);
}

/* Status dot inside badge */
.st-card-status .sdot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.st-card-status.undetected .sdot { background: var(--status-green); box-shadow: 0 0 4px var(--status-green); }
.st-card-status.updating   .sdot { background: var(--status-yellow); box-shadow: 0 0 4px var(--status-yellow); }
.st-card-status.detectable .sdot { background: var(--status-red);    box-shadow: 0 0 4px var(--status-red); }

/* Card image */
.st-card-img-wrap {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #0a0a0a;
}

.st-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.st-card:hover .st-card-img { transform: scale(1.06); }

/* Card image placeholder (no image) */
.st-card-img-placeholder {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: linear-gradient(135deg, #111, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a2a2a;
  font-size: 2.5rem;
}

/* Card body */
.st-card-body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.st-card-cat {
  font-family: 'Poppins', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #444;
}

.st-card-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(90deg,#fff 0,#d3d3d3 25%,#181818 50%,#c7c7c7 75%,#292929 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rgbAnimation 5s linear infinite;
  margin: 0;
  text-align: center;
  line-height: 1.3;
}

.st-card-desc {
  font-family: 'Poppins', sans-serif;
  font-size: .75rem;
  color: #555;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.st-card-note {
  font-family: 'Poppins', sans-serif;
  font-size: .72rem;
  color: #3a3a3a;
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}

/* Status label row inside card body */
.st-card-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: .72rem;
  font-weight: 600;
}

.st-card-status-row .sdot-lg {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.st-card-status-row.undetected .sdot-lg { background: var(--status-green); box-shadow: 0 0 5px var(--status-green); }
.st-card-status-row.updating   .sdot-lg { background: var(--status-yellow); box-shadow: 0 0 5px var(--status-yellow); }
.st-card-status-row.detectable .sdot-lg { background: var(--status-red);    box-shadow: 0 0 5px var(--status-red); }

.st-card-status-row.undetected { color: var(--status-green); }
.st-card-status-row.updating   { color: var(--status-yellow); }
.st-card-status-row.detectable { color: var(--status-red); }

/* ACESSAR button */
.st-card-btn {
  display: inline-block;
  margin-top: auto;
  padding: 10px 28px;
  background: radial-gradient(circle at center,#1c1c1c,#0f0f0f,#0a0a0a);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 0 10px rgba(255,255,255,.08), inset 0 0 8px rgba(255,255,255,.03);
  transition: box-shadow .3s ease, transform .3s ease;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,.1);
}

.st-card:hover .st-card-btn {
  box-shadow: 0 0 20px rgba(255,255,255,.22), inset 0 0 12px rgba(255,255,255,.06);
  transform: scale(1.04);
}

/* ─── Loading / Empty ─── */
.st-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
}

.st-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
}

.st-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,.07);
  border-top-color: #fff;
  border-radius: 50%;
  animation: st-spin .75s linear infinite;
  flex-shrink: 0;
}
@keyframes st-spin { to { transform: rotate(360deg); } }

/* ─── System status bar ─── */
.system-status-bar {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.system-status-left { display: flex; align-items: center; gap: 10px; }

.sys-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sys-dot.green  { background: var(--status-green);  box-shadow: 0 0 7px rgba(34,197,94,.6);  animation: pls-green  2.2s ease-in-out infinite; }
.sys-dot.yellow { background: var(--status-yellow); box-shadow: 0 0 7px rgba(245,158,11,.6); animation: pls-yellow 2.2s ease-in-out infinite; }
.sys-dot.red    { background: var(--status-red);    box-shadow: 0 0 7px rgba(239,68,68,.6); }

.sys-label { font-family: 'Poppins', sans-serif; font-size: .875rem; font-weight: 600; color: var(--status-green); }
.sys-label.yellow { color: var(--status-yellow); }
.sys-label.red    { color: var(--status-red); }

.last-update { font-family: 'Poppins', sans-serif; font-size: .78rem; color: #3a3a3a; }

/* ─── Info box ─── */
.info-box {
  background: #0a0a0a;
  border: 1px solid rgba(245,158,11,.1);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-box-header { display: flex; align-items: center; gap: 10px; }
.info-icon { color: #f59e0b; font-size: 1rem; }
.info-title { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; color: #e8e8e8; margin: 0; }
.info-text  { font-family: 'Poppins', sans-serif; font-size: .85rem; color: #555; line-height: 1.7; margin: 0; }

.discord-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(88,101,242,.1);
  border: 1px solid rgba(88,101,242,.25);
  color: #7289da;
  font-family: 'Poppins', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s;
  align-self: flex-start;
}

.discord-status-btn:hover {
  background: rgba(88,101,242,.18);
  border-color: rgba(88,101,242,.42);
  color: #9babf8;
  transform: translateY(-1px);
}

/* ─── Responsive ─── */
@media (max-width: 1100px) { .st-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .st-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

@media (max-width: 640px) {
  .status-main { margin-top: 85px; padding: 0 14px; gap: 20px; }
  .st-page-title { font-size: 1.5rem; }
  .st-filters { flex-direction: column; align-items: stretch; }
  .search-wrap { min-width: unset; }
  .st-grid { grid-template-columns: 1fr; gap: 14px; }
  .system-status-bar { flex-direction: column; align-items: flex-start; }
  .info-box { padding: 18px; }
}
