/* ==========================================================================
   Ken Pond Design™ – front-page.css
   Styles for the front page (landing view + page cards grid)
   ========================================================================== */

/* ===== Landing (front page only) ===== */
.is-landing .site-header--landing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  text-align: center;
}
.is-landing .primary-nav { display: none; }
/* Hide everything except the centered brand on landing */
.is-landing .site-main { display: none; }
.is-landing .site-footer { display: none; }

/* ===== Front-page Page Cards ===== */
.page-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}
.page-card {
  display: flex;
  align-items: center;
  width: 400px;
  max-width: 100%;
  height: 100px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-card:hover { color: #666; }

/* Card logo (left side) */
.page-card__logo {
  width: 60px;
  height: 60px;
  margin-left: 14px;
  flex-shrink: 0;
  object-fit: contain;
}
.page-card__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 10px 14px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.page-card__title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-card__desc {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Special Code Snippets card on front page */
.snippet-card-special {
  background: #f9f9f9;
}
.snippet-card-special:hover {
  background: #f0f0f0;
}

/* Front page actions (Quick Add Snippet button) */
.front-page-actions {
  text-align: center;
  margin: 2rem auto 1rem;
}

.kpd-add-snippet-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: none;
  text-decoration: none;
  font-family: 'Public Sans', sans-serif;
  font-weight: 100;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.kpd-add-snippet-btn:hover {
  background: #333;
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .page-cards { gap: 12px; max-width: 720px; margin: 1.5rem auto; padding: 0 0.75rem; }
  .page-card { width: 360px; height: 96px; }
  .page-card__logo { width: 48px; height: 48px; margin-left: 10px; }
  .page-card__title { font-size: 0.95rem; }
  .page-card__desc  { font-size: 0.85rem; }
}

@media (max-width: 360px) {
  .page-cards { gap: 10px; margin: 1rem auto; padding: 0 0.5rem; }
  .page-card { width: 100%; height: 96px; }
  .page-card__inner { padding: 10px 12px; }
  .page-card__logo { width: 40px; height: 40px; margin-left: 8px; }
  .page-card__title { font-size: 0.95rem; }
  .page-card__desc  { font-size: 0.82rem; }
}
