/* Vetting Wolf Homestead - Main Stylesheet */

/* Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d5016;
    --primary-dark: #1f3810;
    --primary-light: #5d8c3a;
    --accent: #c87137;
    --accent-light: #e8a876;
    --text: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg: #f5f5f5;
    --white: #fff;
    --border: #ddd;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-md: rgba(0, 0, 0, 0.12);
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* Header & Navigation */
header {
    background-color: #fff;
    color: #333;
    padding: 1rem 0;
    box-shadow: 0 2px 4px var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #ddd;
}

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar .logo {
    font-size: 1.3rem;
    font-weight: 600;
}

.navbar .logo a {
    color: #8b7355 !important;
}

.navbar .logo a:hover {
    color: #6d5843 !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: #333;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: #8b7355;
    border-bottom-color: #8b7355;
}

.nav-links a.active {
    color: #8b7355;
    border-bottom-color: #8b7355;
    font-weight: 600;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

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

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Posts Section */
.recent-posts,
.blog-header {
    margin-bottom: 2rem;
}

.recent-posts h2,
.blog-header h1,
.about h1,
.dashboard h1,
.gallery h1,
.page-header h1 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.post-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--accent);
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-md);
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-lighter);
    font-weight: 500;
}

.post-card h3 {
    margin: 0.5rem 0;
    color: var(--primary-dark);
}

.post-card h3 a {
    color: var(--primary-dark);
}

.post-card h3 a:hover {
    color: var(--accent);
}

.post-excerpt {
    color: var(--text-light);
    margin: 1rem 0;
    font-size: 0.95rem;
}

.read-more {
    color: var(--accent);
    font-weight: 500;
}

.read-more:hover {
    color: var(--primary);
}

/* Blog Archive */
.blog-archive {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.year-header {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

.year-header:first-of-type {
    margin-top: 0;
}

.post-list {
    list-style: none;
}

.post-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list .post-date {
    display: inline-block;
    width: 120px;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.post-list a {
    color: var(--primary-dark);
}

.post-list a:hover {
    color: var(--accent);
}

/* Blog Post Page */
.blog-post,
.page-content {
    background-color: var(--white);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.post-header,
.page-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 1rem;
}

.post-header h1,
.page-header h1 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--text-lighter);
    font-size: 0.95rem;
}

.post-content,
.page-body {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.post-content p,
.page-body p {
    margin-bottom: 1rem;
    color: var(--text);
    word-break: break-word;
}

.post-content .blog-image,
img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    display: block;
}

.post-footer,
.page-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.page-body ul,
.page-body ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-body li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.page-body strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Features Grid */
.features {
    margin-top: 3rem;
}

.features h2 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s;
}

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.feature-card a {
    color: var(--white);
    font-weight: bold;
    border-bottom: 2px solid var(--white);
    display: inline-block;
}

.feature-card a:hover {
    color: var(--accent-light);
    border-color: var(--accent-light);
}

/* About, Dashboard, Gallery Pages */
.about,
.dashboard,
.gallery {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.about h2,
.dashboard h2,
.gallery h2 {
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.about ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.dashboard-placeholder,
.gallery-placeholder {
    background-color: var(--bg);
    border: 2px dashed var(--primary-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

.dashboard-placeholder p:first-child,
.gallery-placeholder p:first-child {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dashboard-placeholder ul,
.gallery-placeholder ul {
    margin-top: 1rem;
    text-align: left;
    display: inline-block;
    color: var(--text);
}

.dashboard-placeholder li,
.gallery-placeholder li {
    margin: 0.5rem 0;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow);
}

.data-table thead {
    background-color: var(--primary);
    color: var(--white);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-dark);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.data-table tbody tr:hover {
    background-color: var(--bg);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Text Utility */
.text-center {
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--accent-light);
}

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

/* Image responsiveness */
img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.blog-image {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .blog-post,
    .page-content {
        padding: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
