/* ========================================
   MCPH Ghost Theme — Medical Cannabis Patient Hub
   Clean, content-first, professional
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: #1a1a2e;
    background: #f8f9fa;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #2d6a4f;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #1b4332;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a2e;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* --- Header --- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.site-nav a {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}
.site-nav a:hover {
    color: #2d6a4f;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* --- Main Content --- */
.site-main {
    min-height: 60vh;
    padding: 2rem 0;
}

/* --- Post --- */
.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-image {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.post-content h2 {
    margin-top: 2rem;
}

.post-content h3 {
    margin-top: 1.5rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content img {
    border-radius: 8px;
    margin: 1.5rem auto;
}

.post-content figure {
    margin: 1.5rem 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* --- Tag Links --- */
.post-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 4px 8px 0;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #495057;
}

/* --- Grid --- */
.post-grid, .strain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* --- Cards --- */
.post-card, .strain-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover, .strain-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.post-card-image img,
.strain-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content,
.strain-card-body {
    padding: 1rem;
}

.post-card-title,
.strain-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.post-card-excerpt,
.strain-card-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.strain-card-link {
    display: block;
    color: inherit;
}
.strain-card-link:hover {
    color: inherit;
}

/* --- Post List (articles) --- */
.post-list {
    max-width: 720px;
    margin: 2rem auto;
}

.post-list-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #e9ecef;
}
.post-list-item:last-child {
    border-bottom: none;
}

.post-list-title a {
    color: #1a1a2e;
}
.post-list-title a:hover {
    color: #2d6a4f;
}

.post-list-meta {
    font-size: 0.8rem;
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

.post-list-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
}

/* --- Archive Pages --- */
.archive-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.archive-description {
    max-width: 600px;
    margin: 0 auto;
    color: #6c757d;
}

/* --- Footer --- */
.site-footer {
    background: #1a1a2e;
    color: #ced4da;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.site-footer ul {
    list-style: none;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: #adb5bd;
    font-size: 0.875rem;
}
.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #343a40;
    font-size: 0.8rem;
    color: #6c757d;
}

/* --- Medical Disclaimer --- */
.medical-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 6px;
    padding: 1rem;
    margin: 2rem 0;
    font-size: 0.85rem;
    color: #856404;
    line-height: 1.5;
}

.medical-disclaimer a {
    color: #533f03;
    text-decoration: underline;
}

/* --- Pagination --- */
.pagination {
    text-align: center;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #495057;
}

.pagination .active {
    background: #2d6a4f;
    color: #fff;
    border-color: #2d6a4f;
}

/* --- Homepage Hero --- */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-nav {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
    .post-grid, .strain-grid {
        grid-template-columns: 1fr;
    }
}

/* Ghost CMS required styles */
.kg-width-wide {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}
.kg-width-full {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
@media (max-width: 1040px) {
    .kg-width-wide {
        max-width: 100%;
    }
}
