/*
 * ===== Content Styling for XOSO THEME =====
 * Styles for Category, Post pages, and modern post cards.
 */

/* --- Category Page & Modern Post List --- */
.post-list-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
main.main-content img {
    max-width: 100%;
}
.post-card-modern {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-image-wrapper {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    overflow: hidden;
}

.post-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card-modern:hover .post-card-image {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.2rem;
    background-color: #e2e8f0;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    color: #1a202c;
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: #4a5568;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: auto;
}

.post-card-date,
.post-card-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-card-meta svg {
    stroke-width: 2;
}

/* --- Single Post Page (post-detail) --- */
.post-detail {
    padding: 2rem;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}
.post-content-body h2{
    font-size: 1.3rem;
}
.post-content-body h3{
    font-size: 1.2rem;
}
.post-content-body h4{
    font-size: 1.1rem;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-featured-image {
    margin: 0 0 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.post-content-body h2,
.post-content-body h3,
.post-content-body h4 {
    color: #1a202c;
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

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

.post-content-body a {
    color: var(--color-primary);
    text-decoration: underline;
}

.post-content-body ul,
.post-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4a5568;
}

.post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.tag-link {
    display: inline-block;
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.tag-link:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.related-posts .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a202c;
}

/* Full-width images inside figure elements */
figure img {
    width: 100%;
}

