/*
Theme Name: MedFitCoach WP Blog
Theme URI: https://medfitcoach.com/
Author: MedFitCoach Ltd
Description: Clean WordPress blog theme for MedFitCoach with search, categories, 12 posts per page, and 3-column blog cards.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: medfitcoach-wp-blog
*/

:root {
  --violet: #4c1d95;
  --violet-2: #6d28d9;
  --soft: #f4edff;
  --ink: #180a32;
  --muted: #655675;
  --line: rgba(76,29,149,.16);
  --shadow: 0 20px 58px rgba(76,29,149,.12);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Montserrat, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar { background: var(--violet); color: #fff; font-size: 13px; font-weight: 800; }
.topbar .container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--violet); border-bottom: 1px solid rgba(255,255,255,.16); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand-img { height: 46px; width: auto; display: block; }
.logo-mark, .brand-text { display: none; }
.menu { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 999px; background: rgba(255,255,255,.12); }
.menu a { padding: 9px 13px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 850; }
.menu a:hover, .current-menu-item > a { background: #fff; color: var(--violet); }
.btn, button, input[type="submit"] { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 12px 18px; border: 1px solid var(--violet); border-radius: 999px; background: var(--violet); color: #fff; font-weight: 900; cursor: pointer; }
.site-header .btn { background: #fff; color: var(--violet); border-color: #fff; }
.blog-hero { padding: 86px 0 58px; color: #fff; background: linear-gradient(90deg, rgba(24,10,50,.92), rgba(76,29,149,.78), rgba(255,255,255,.10)), url("assets/hero-gym-background.png") center / cover no-repeat; }
.blog-hero h1 { max-width: 920px; margin: 0 0 16px; font-size: clamp(38px, 6vw, 72px); line-height: 1.05; }
.blog-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.88); font-size: 18px; }
.meta { margin-bottom: 10px; color: var(--violet-2); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.blog-hero .meta { color: #fff; }
.blog-tools { padding: 30px 0; background: var(--soft); border-bottom: 1px solid var(--line); }
.tools-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 22px; align-items: start; }
.search-form { display: flex; gap: 10px; }
.search-field { width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font: inherit; }
.category-list { display: flex; flex-wrap: wrap; gap: 10px; }
.category-list a { display: inline-flex; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--violet); font-size: 14px; font-weight: 900; }
.category-list a:hover { background: var(--violet); color: #fff; }
.posts-section, .single-wrap { padding: 58px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.post-card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.post-category { align-self: flex-start; margin-bottom: 12px; padding: 7px 10px; border-radius: 999px; background: var(--soft); color: var(--violet); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.post-card h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.18; color: var(--ink); }
.post-card p { color: var(--muted); margin: 0 0 18px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 800; }
.read-more { margin-top: auto; color: var(--violet); font-weight: 950; }
.pagination { margin-top: 34px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--violet); font-weight: 900; }
.pagination .current { background: var(--violet); color: #fff; }
.single-layout { display: grid; grid-template-columns: minmax(0, 780px) 320px; gap: 42px; align-items: start; }
.single-article h1 { margin: 0 0 14px; font-size: clamp(36px, 5vw, 62px); line-height: 1.05; }
.single-featured { margin: 26px 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.entry-content { color: #342347; font-size: 18px; }
.entry-content h2, .entry-content h3 { color: var(--ink); line-height: 1.14; }
.sidebar-card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.sidebar-card + .sidebar-card { margin-top: 18px; }
.site-footer { padding: 56px 0 22px; background: var(--violet); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.site-footer p { color: rgba(255,255,255,.76); }
.site-footer a { display: block; margin: 9px 0; color: rgba(255,255,255,.86); font-weight: 750; }
.copyright { padding-top: 26px; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.75); font-size: 14px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
@media (max-width: 980px) {
  .topbar .container, .nav, .section-head { align-items: flex-start; flex-direction: column; }
  .menu { flex-wrap: wrap; border-radius: 12px; }
  .tools-grid, .single-layout, .footer-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .post-grid { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
}
