/* Shared styles + reusable "components" for the sample site (Hero, Columns, Card, Profile, Actions). */

body { font-family: Arial, sans-serif; margin: 0; }
header { background: #333; color: #fff; padding: 16px; }
nav { background: #555; padding: 8px 16px; }
nav a { color: #fff; margin-right: 12px; text-decoration: none; }
main { padding: 24px; }
footer { background: #333; color: #fff; padding: 16px; text-align: center; }
.cta-button { display: inline-block; padding: 12px 24px; background: #007bff; color: #fff; text-decoration: none; border-radius: 4px; border: none; cursor: pointer; font-size: 14px; }

/* Hero component. Variants: --split (media panel alongside text) and --centered (text-only, centered). */
.hero { padding: 32px; background: #f0f0f0; margin-bottom: 24px; border-radius: 4px; }
.hero h2 { margin-top: 0; }
.hero--split { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero--split .hero-content { flex: 1 1 280px; }
.hero--split .hero-media { flex: 1 1 200px; height: 160px; border-radius: 4px; background: linear-gradient(135deg, #007bff, #6610f2); }
.hero--centered { text-align: center; background: #eef4ff; }
.hero--centered .hero-eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: #007bff; font-weight: bold; margin: 0 0 8px; }

/* Columns container. Defaults to three across on desktop, collapsing to one per row on mobile. */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.columns--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .columns { grid-template-columns: 1fr; }
}

/* Card component */
.card { border: 1px solid #ddd; padding: 16px; border-radius: 4px; }

/* Profile component: avatar + role + short skill blurb + top skill badges */
.profile { border: 1px solid #ddd; padding: 16px; border-radius: 4px; text-align: center; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: #007bff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; margin: 0 auto 12px; }
.profile-role { color: #666; font-size: 13px; margin: 0 0 8px; }
.profile-bio { font-size: 14px; margin: 0 0 12px; }
.skills { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.skill-badge { background: #e9f2ff; color: #007bff; font-size: 12px; font-weight: bold; padding: 4px 10px; border-radius: 12px; }

/* Actions component: generic action links (used by the API integration tests to exercise
   crawl/cache failures, redirects, and basic-auth/cookie gating end-to-end). */
.actions { border: 1px solid #ddd; border-left: 4px solid #6c757d; padding: 16px; margin-top: 24px; border-radius: 4px; background: #fafafa; }
.actions h3 { margin: 0 0 4px; font-size: 16px; }
.actions p { margin: 0 0 16px; color: #666; font-size: 13px; }
.actions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.action-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: #333; text-decoration: none; font-size: 14px; }
.action-link:hover { border-color: #007bff; color: #007bff; }
.action-link .tag { font-size: 11px; font-weight: bold; letter-spacing: .5px; padding: 2px 6px; border-radius: 3px; color: #fff; }
.action-link .tag-404 { background: #dc3545; }
.action-link .tag-301 { background: #fd7e14; }

/* Contact form centering */
.page-centered { max-width: 480px; margin: 0 auto; text-align: center; }
.page-centered form { text-align: left; }
form { max-width: 400px; margin: 0 auto; }
label { display: block; margin-top: 12px; font-weight: bold; }
input, textarea { width: 100%; padding: 8px; margin-top: 4px; box-sizing: border-box; }
button { margin-top: 16px; }
