/* TakeRank Share – simple link pages, matches takerank.com feel */

:root {
  --bg: #1e2238;
  --bg-body: #111827;
  --text: #fff;
  --text-muted: #9ca3af;
  --card-bg: #fd2284;
  --card-hover-bg: #ffdf20;
  --card-hover-text: #000;
  --border: #000;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.page {
  max-width: 37.5rem; /* 600px, ~150px wider than 28rem */
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #374151;
}

.logo {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.logo:hover {
  color: var(--card-hover-bg);
}

.tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.header-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--card-hover-bg);
}

/* Main */
.main {
  margin-bottom: 2rem;
}

.title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  text-align: center;
}

.lead {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--text);
}

/* Link list – Find-style stacked cards */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-list--three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1rem;
}

.link-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.5rem 0.75rem;
}

@media (max-width: 420px) {
  .link-list--three-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card-bg);
  border: 3px solid var(--border);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  box-shadow: 6px 6px 0 0 var(--border);
}

.link-card:hover {
  background: var(--card-hover-bg);
  color: var(--card-hover-text);
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 0 var(--border);
}

.link-card:focus {
  outline: 2px solid var(--card-hover-bg);
  outline-offset: 2px;
}

.link-label {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.link-sublabel {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

.link-card:hover .link-sublabel {
  opacity: 0.85;
}

.link-arrow {
  flex-shrink: 0;
  margin-left: 0.5rem;
  font-size: 1.25rem;
}

.link-card--muted {
  background: #374151;
  color: var(--text-muted);
  cursor: default;
  box-shadow: 4px 4px 0 0 var(--border);
}

.link-card--muted:hover {
  background: #374151;
  color: var(--text-muted);
  transform: none;
}

.link-card--compact {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.link-card--compact .link-sublabel {
  display: none;
}

.video-category {
  margin-bottom: 1.5rem;
}

.video-category-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Footer */
.footer {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
}

.footer a {
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: var(--card-hover-bg);
}

.footer-site {
  margin: 0 0 0.75rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-social-link:hover {
  color: var(--card-hover-bg);
}

.footer-social-link svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Video embed (YouTube) */
.video-section {
  margin-bottom: 2rem;
}

.video-embed-wrap {
  margin-bottom: 1rem;
}

.video-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--border);
  background: #000;
}

.video-embed-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.video-embed-link:hover {
  color: var(--card-hover-bg);
}

.video-only-note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
