/*
 * Hand-maintained styles for the PHP-SSR tool pages (/tools/{slug}).
 * Light "developer" persona only — no dark toggle, no dependency on Nuxt's
 * hashed _nuxt/* assets. Ports the Tailwind look of the former
 * pages/tools/[slug].vue (container, hero, download cards, screenshots).
 */

:root {
  --primary: #f8451f;
  --primary-hover: #dc3910;
  --secondary: #15151c;
  --muted: #6b7280;      /* gray-500 */
  --muted-soft: #9ca3af; /* gray-400 */
  --chip-bg: #f3f4f6;    /* gray-100 */
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--secondary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--primary); }

.tp-container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* --- header / footer chrome --- */
.tp-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.tp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tp-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.tp-brand span { color: var(--primary); }

.tp-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.tp-back:hover { color: var(--primary); }

.tp-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid #f0f0f0;
  color: var(--muted-soft);
  font-size: 0.85rem;
}

/* --- tool body --- */
.tp-tool {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1rem 0 2rem;
}

.tp-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
}

.tp-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.tp-hero-text { display: flex; flex-direction: column; gap: 0.35rem; }

.tp-title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
}

.tp-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.tp-category {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.7rem;
  background: var(--chip-bg);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
}

.tp-version { font-size: 0.85rem; }

.tp-description {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 80%;
}

/* --- sections --- */
.tp-section { display: flex; flex-direction: column; gap: 1rem; }

.tp-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
}

/* --- downloads --- */
.tp-download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tp-download-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  padding: 1.25rem;
  width: 100%;
}

.tp-platform {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: capitalize;
}

.tp-download-link {
  color: var(--primary);
  word-break: break-all;
  text-decoration: none;
}
.tp-download-link:hover { text-decoration: underline; color: var(--primary-hover); }

/* --- screenshots --- */
.tp-screenshot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tp-screenshot {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  object-fit: cover;
}

/* --- responsive: match the md: breakpoints of the original --- */
@media (min-width: 768px) {
  .tp-title { font-size: 2.5rem; }
  .tp-download-card { width: calc(33% - 16px); }
  .tp-screenshot { width: calc(50% - 8px); }
}
