/*
Theme Name: WB Fast Theme
Theme URI: https://womanbodybuilder.com/
Author: WomanBodybuilder
Description: Ultra-fast, mobile-first lightweight PHP WordPress theme for womanbodybuilder.com. Zero external frameworks, optimized for Core Web Vitals.
Version: 1.0
Text Domain: wb-fast-theme
*/

:root {
    --primary: #e11d48;
    --primary-dark: #be123c;
    --dark: #111827;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: var(--dark);
    color: var(--white);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

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

.site-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white);
}

.site-logo span { color: var(--primary); }

.main-nav {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    list-style: none;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: var(--white);
    padding: 40px 16px;
    text-align: center;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

.hero p {
    color: #d1d5db;
    font-size: 0.95rem;
    max-width: 620px;
    margin: 0 auto;
}

/* Posts Grid */
.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 18px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    color: var(--dark);
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover { transform: translateY(-3px); }

.post-thumb {
    aspect-ratio: 16 / 10;
    background: #e5e7eb;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f2937, #374151);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
    display: inline-block;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--dark);
}

.post-title a:hover { color: var(--primary); }

.post-excerpt {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.read-more {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

/* Single Post & Page */
.article-wrap {
    max-width: 800px;
    margin: 28px auto 48px;
    background: var(--white);
    padding: 24px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.article-header { margin-bottom: 20px; }

.article-title {
    font-size: 1.65rem;
    line-height: 1.25;
    color: var(--dark);
    margin: 8px 0 10px;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.article-thumb {
    margin-bottom: 22px;
    border-radius: 8px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: auto;
}

.article-body { font-size: 1rem; color: var(--text); }
.article-body p { margin-bottom: 16px; }
.article-body h2 { font-size: 1.35rem; margin: 26px 0 12px; color: var(--dark); }
.article-body h3 { font-size: 1.15rem; margin: 20px 0 10px; color: var(--dark); }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--bg); font-weight: 700; }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* 404 */
.error-404 {
    text-align: center;
    padding: 60px 16px;
}

.btn-primary {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-primary:hover { background: var(--primary-dark); }

/* Footer */
.site-footer {
    background: var(--dark);
    color: #9ca3af;
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-links a:hover { color: var(--white); }

/* Responsive Breakpoints */
@media (min-width: 640px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.2rem; }
    .article-wrap { padding: 36px 32px; }
    .article-title { font-size: 2rem; }
}

@media (min-width: 1024px) {
    .post-grid { grid-template-columns: repeat(3, 1fr); }
}
