/* TOORCE Combined Admin Guides — Portal landing page */

:root {
  --toorce-red: #c41e3a;
  --toorce-red-dark: #9e1830;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text-primary: #1a1d23;
  --text-secondary: #5c6370;
  --border: #e2e5ea;
  --shadow: 0 4px 24px rgba(26, 29, 35, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.portal-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.portal-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.portal-logo strong { color: var(--toorce-red); }

.portal-nav {
  display: flex;
  gap: 0.5rem;
}

.portal-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.portal-nav a:hover {
  color: var(--toorce-red);
  background: rgba(196, 30, 58, 0.06);
}

/* ── Main ── */
.portal-main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  width: 100%;
}

.portal-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.portal-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--toorce-red);
  margin-bottom: 0.75rem;
}

.portal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.portal-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Product cards ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(196, 30, 58, 0.35);
  transform: translateY(-2px);
}

.product-card-icon {
  font-size: 2.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.product-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.product-card-subtitle {
  font-size: 0.875rem;
  color: var(--toorce-red);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  background: #f0f2f5;
  color: var(--text-secondary);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 500;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.product-card-cta {
  display: inline-block;
  background: var(--toorce-red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.product-card-cta:hover {
  background: var(--toorce-red-dark);
}

/* ── Info section ── */
.portal-info h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.info-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.info-card code {
  font-size: 0.8rem;
  background: #f0f2f5;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

/* ── Footer ── */
.portal-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.portal-footer a {
  color: var(--toorce-red);
  text-decoration: none;
}

.portal-footer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .portal-header { padding: 0 1rem; }
  .portal-main { padding: 2rem 1rem 3rem; }
  .product-card { flex-direction: column; }
}
