/* Main styles.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Serif+Pro:wght@400;600&display=swap');

/* === Variables === */
:root {
    --serif-font: "Playfair Display", Georgia, serif;
    --body-font: "Source Serif Pro", Georgia, serif;
    --background: #e8e3d9;
    --sage: #5d6b65;
    --olive: #606344;
    --gold: #a39a64;
    --terracotta: #9b6b5a;
    --brown: #745847;
    --dark-brown: #463532;
    --navy: #2d3142;
    --black: #1c1c1c;
    --text: #2d2420;
    --paper: #fffdfa;
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    font-family: var(--body-font);
    line-height: 1.8;
    color: var(--text);
    font-size: 1.125rem;
}

h1, h2, h3, h4 {
    font-family: var(--serif-font);
    font-weight: normal;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* === Layout & Container === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr minmax(auto, 800px) 300px;
    gap: 2.5rem;
    padding: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* === Header & Navigation === */
header {
    background-color: var(--sage);
    color: var(--background);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

nav {
    background-color: var(--navy);
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav a {
    color: var(--background);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--gold);
}

/* Header and Logo styles */
header {
    background-color: var(--sage);
    color: var(--background);
    border-bottom: 3px solid var(--gold);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: center; /* Center the entire content */
    align-items: center;
    gap: 2rem;
}

.logo-container {
    width: 120px;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block; /* Ensures proper centering */
}

.logo:hover {
    transform: scale(1.05);
}

.site-title {
    text-align: center; /* Center the text */
}

.site-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.site-title p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .logo {
        width: 100px;
        height: 100px;
        margin: 0 auto; /* Center logo on mobile */
    }
}

/* === Blog Posts === */
.blog-posts {
    grid-column: 2;
}

.post {
    background: var(--paper);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-header {
    margin-bottom: 1.8rem;
}

.post-title {
    color: var(--background);
    font-size: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.post-meta {
    color: var(--);
    font-style: italic;
    font-size: 1.1rem;
}

.post-content {
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

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

.read-more {
    color: var(--sage);
    font-family: var(--serif-font);
    transition: all 0.2s ease;
}

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

.read-more::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* === Sidebar === */
.sidebar {
    grid-column: 3;
}

.sidebar-section {
    background: var(--paper);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-title {
    color: var(--sage);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--gold);
}

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

.categories-list li {
    margin-bottom: 0.8rem;
}

.categories-list a {
    color: var(--text);
    transition: color 0.2s ease;
    font-size: 1.1rem;
}

.categories-list a:hover {
    color: var(--terracotta);
}

/* === Reviews Specific === */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.review-card {
    background: var(--paper);
    border: 1px solid var(--gold);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.review-content {
    padding: 1.5rem;
}

.review-title {
    color: var(--sage);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: var(--serif-font);
}

.rating {
    color: var(--gold);
    font-size: 1.3rem;
    margin: 1.2rem 0;
    letter-spacing: 2px;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--sage);
    color: var(--paper);
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 2px;
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.reviews-header {
    text-align: center;
    margin: 2rem 0;
}

.reviews-header h2 {
    color: var(--sage);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.reviews-header p {
    color: var(--text);
    font-size: 1.2rem;
    opacity: 0.9;
}

/* === Full Review Styles === */
.full-review {
    background: var(--paper);
    padding: 2.5rem;
    margin: 2rem 0;
    border: 1px solid var(--gold);
}

.full-review-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gold);
}

.full-review-title {
    color: var(--sage);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.review-section {
    margin: 2rem 0;
}

.review-section-title {
    color: var(--sage);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gold);
}

/* === Filter Section === */
.filter-section {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-button {
    padding: 0.5rem 1.2rem;
    background: var(--paper);
    border: 1px solid var(--gold);
    color: var(--sage);
    cursor: pointer;
    font-family: var(--serif-font);
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background: var(--sage);
    color: var(--paper);
}

/* === Utility Classes === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }

.fade { opacity: 0.7; }
.bold { font-weight: bold; }
.italic { font-style: italic; }

/* === Footer === */
footer {
    background-color: var(--navy);
    color: var(--background);
    text-align: center;
    padding: 2.5rem;
    margin-top: 2.5rem;
    border-top: 3px solid var(--gold);
}

footer p {
    opacity: 0.9;
}

/* === Media Queries === */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr minmax(auto, 800px) 1fr;
    }
    
    body {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .blog-posts, .sidebar {
        grid-column: 1;
    }

    nav a {
        display: block;
        margin: 0.5rem 0;
    }

    .post, .sidebar-section {
        padding: 1.5rem;
    }

    header {
        padding: 2rem 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

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

    .filter-section {
        flex-direction: column;
    }

    .filter-button {
        width: 100%;
    }
}

/* === Print Styles === */
@media print {
    body {
        background: white;
        color: black;
    }

    nav, .sidebar, .filter-section {
        display: none;
    }

    .main-content {
        display: block;
        padding: 0;
    }

    .post, .review-card, .full-review {
        break-inside: avoid;
        border: none;
        box-shadow: none;
    }
}