/* ----------------------------------------------------------------------
   Global Styles & Variables
---------------------------------------------------------------------- */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --navy: #1a237e; /* A deep, elegant blue */
    --copper: #b87333; /* A sophisticated metallic accent */
    --blush: #fdeff2; /* A very light, subtle pink for backgrounds */
    --dark-text: #333333;
    --light-text: #666666;
}

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

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.7;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    margin-bottom: 0.75em;
}

a {
    color: var(--copper);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* ----------------------------------------------------------------------
   Layout & Header/Footer
---------------------------------------------------------------------- */
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

header nav a {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.site-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background-color: var(--blush);
    text-align: center;
}

.footer-navigation a {
    margin: 0 15px;
}

/* ----------------------------------------------------------------------
   Blog Post List (index.php & category.php)
---------------------------------------------------------------------- */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.8rem;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-summary {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.post-summary a {
    display: block;
    color: inherit;
}

.post-summary-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-summary-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    background-color: var(--blush);
    color: var(--copper);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.post-summary h2 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--copper);
}

/* ----------------------------------------------------------------------
   Single Post Page (post.php)
---------------------------------------------------------------------- */
.single-post {
    max-width: 750px;
    margin: 0 auto;
}

.single-post-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-meta {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 20px;
}

.post-content p,
.post-content ul,
.post-content ol {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
}

.post-content blockquote {
    margin: 2em 0;
    padding: 1em 1.5em;
    border-left: 5px solid var(--copper);
    background-color: var(--blush);
    font-style: italic;
    font-size: 1.2rem;
}
