/*
Theme Name: Health Calculator Hub
Theme URI: https://healthcalculator.io
Author: You
Description: Custom theme for health calculators with Omni-style homepage.
Version: 1.0
*/

:root {
    --primary: #2c7da0;
    --primary-dark: #1f5e7a;
    --text-dark: #1e293b;
    --text-light: #475569;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gray-border: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.hero .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.search-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.search-wrapper form {
    display: flex;
    gap: 8px;
}

.search-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-border);
    border-radius: 48px;
    font-size: 1rem;
}

.search-wrapper button {
    background: var(--primary);
    border: none;
    padding: 0 20px;
    border-radius: 48px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Calculator Grid */
.calculators-section {
    padding: 60px 0;
}

.calculators-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.calc-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid var(--gray-border);
}

.calc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.calc-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.calc-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.calc-category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* Achievements */
.achievements {
    background: var(--white);
    padding: 60px 0;
    text-align: center;
}

.achievements h2 {
    margin-bottom: 40px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.achievement-item {
    display: flex;
    flex-direction: column;
}

.achievement-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.achievement-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Blog Section */
.latest-blog {
    padding: 60px 0;
}

.latest-blog h2 {
    text-align: center;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card h3 {
    padding: 16px 16px 8px;
    font-size: 1.2rem;
}

.blog-card h3 a {
    text-decoration: none;
    color: var(--text-dark);
}

.blog-excerpt {
    padding: 0 16px 16px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    margin: 0 16px 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--gray-border);
    text-align: center;
    padding: 32px;
    color: var(--text-light);
    font-size: 0.85rem;
}