/* WP Threat Labs — Security Guides styles (front-end grid + admin) */

/* ── Guide grid ─────────────────────────────────────────────────────────── */
.wptl-guides-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.wptl-guides-cols-1 { grid-template-columns: 1fr; }
.wptl-guides-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.wptl-guides-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.wptl-guides-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 900px) {
  .wptl-guides-cols-3,
  .wptl-guides-cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .wptl-guides-cols-2,
  .wptl-guides-cols-3,
  .wptl-guides-cols-4 { grid-template-columns: 1fr; }
}

/* ── Guide card ─────────────────────────────────────────────────────────── */
.wptl-guide-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wptl-guide-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.wptl-guide-thumb-link { display: block; }

.wptl-guide-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.wptl-guide-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Meta badges ────────────────────────────────────────────────────────── */
.wptl-guide-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.wptl-guide-difficulty {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 2px 8px;
}

.wptl-guide-readtime {
  font-size: 11px;
  color: #9b9890;
}

/* ── Title ──────────────────────────────────────────────────────────────── */
.wptl-guide-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.wptl-guide-title a {
  color: inherit;
  text-decoration: none;
}

.wptl-guide-title a:hover { text-decoration: underline; }

/* ── Excerpt ────────────────────────────────────────────────────────────── */
.wptl-guide-excerpt {
  font-size: 0.85rem;
  color: #6a6860;
  line-height: 1.55;
  margin: 0 0 0.75rem;
  flex: 1;
}

/* ── Topic tags ─────────────────────────────────────────────────────────── */
.wptl-guide-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0.85rem;
}

.wptl-guide-topic {
  font-size: 11px;
  font-weight: 500;
  background: #f0f8ff;
  color: #1a5a8a;
  border-radius: 4px;
  padding: 2px 7px;
  text-decoration: none;
}

.wptl-guide-topic:hover { background: #dceeff; }

/* ── Read more CTA ──────────────────────────────────────────────────────── */
.wptl-guide-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a3a4a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.wptl-guide-cta:hover { text-decoration: underline; }

/* ── Empty state ────────────────────────────────────────────────────────── */
.wptl-guides-empty {
  color: #9b9890;
  font-style: italic;
}
