/* Health Calculator Hub - Main Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #f5f7fa; }
header { background: #2c3e50; color: white; padding: 1rem 2rem; }
header h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
nav a { color: #ecf0f1; text-decoration: none; padding: 0.25rem 0.5rem; border-radius: 4px; }
nav a:hover { background: rgba(255,255,255,0.1); }
main { max-width: 1200px; margin: 0 auto; padding: 2rem; }
h2 { text-align: center; font-size: 2rem; margin-bottom: 0.5rem; color: #2c3e50; }
.subtitle { text-align: center; color: #666; margin-bottom: 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.card { background: white; border-radius: 8px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.card h3 { color: #2c3e50; margin-bottom: 0.5rem; }
.card p { color: #666; font-size: 0.95rem; }
.card-link { color: #3498db; font-weight: 500; }
.features { background: white; border-radius: 8px; padding: 2rem; margin-top: 2rem; }
.features h3 { text-align: center; margin-bottom: 1.5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.feature { text-align: center; padding: 1rem; }
.feature h4 { font-size: 1.2rem; margin-bottom: 0.5rem; color: #2c3e50; }
.feature p { color: #666; font-size: 0.9rem; }
.affiliate-section { background: white; border-radius: 8px; padding: 2rem; margin: 2rem 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.affiliate-section h3 { text-align: center; margin-bottom: 0.5rem; color: #2c3e50; }
.affiliate-section > p { text-align: center; color: #666; margin-bottom: 1.5rem; }
.affiliate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1rem; }
.affiliate-card { background: #f5f7fa; padding: 1.5rem; border-radius: 8px; text-align: center; border: 1px solid #e2e8f0; }
.affiliate-card h4 { margin-bottom: 0.5rem; color: #3498db; }
.affiliate-card p { font-size: 14px; color: #666; margin-bottom: 1rem; }
.affiliate-link { display: inline-block; padding: 8px 16px; background: #3498db; color: white; text-decoration: none; border-radius: 6px; font-weight: 500; font-size: 14px; }
.affiliate-link:hover { background: #2980b9; }
.affiliate-disclosure { font-size: 12px; color: #888; text-align: center; margin-top: 1rem; }
footer { background: #2c3e50; color: #ecf0f1; text-align: center; padding: 2rem; margin-top: 3rem; }
footer a { color: #3498db; }
.footer-nav { margin-top: 1rem; display: flex; justify-content: center; gap: 1.5rem; }
@media (max-width: 600px) { main { padding: 1rem; } h2 { font-size: 1.5rem; } .grid { grid-template-columns: 1fr; } }
