/* Archive & Single Post Styles */

.archive-grid {
    gap: var(--space-8);
}

.archive-card:hover .card__image {
    transform: scale(1.05);
}

.card__content {
    margin-top: var(--space-4);
}

.card__title {
    font-size: var(--text-lg); /* 1.25rem - Balanced for mobile and desktop */
    line-height: var(--leading-tight);
    font-family: var(--font-heading);
}

@media (min-width: 1024px) {
    .card__title {
        font-size: 1.125rem; /* Even smaller for desktop grid as requested */
    }
}


/* Post Content Styling (Typography) */
/* Post & Page Content Styling (Typography) */
.entry-content {
    font-size: var(--text-md);
    line-height: var(--leading-relaxed);
    color: var(--color-dark);
}

.entry-content p {
    margin-bottom: var(--space-6);
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--color-dark);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    font-family: var(--font-heading);
    line-height: var(--leading-tight);
}

.entry-content h2 { font-size: var(--text-2xl); }
.entry-content h3 { font-size: var(--text-xl); }
.entry-content h4 { font-size: var(--text-lg); }

/* Premium Blockquote Styling with Ornamental Quotation Mark */
.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-6) var(--space-8);
    margin: var(--space-8) 0;
    font-style: italic;
    background: var(--color-bg-alt);
    font-size: var(--text-lg);
    color: var(--color-dark);
    font-family: var(--font-heading);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    position: relative;
}

.entry-content blockquote p {
    margin-bottom: 0;
}

.entry-content blockquote::before {
    content: "“";
    position: absolute;
    top: -15px;
    left: var(--space-3);
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--color-primary-soft);
    opacity: 0.35;
    line-height: 1;
    pointer-events: none;
}

.entry-content img,
.entry-content figure {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-8) 0;
}

.entry-content figure figcaption {
    font-size: var(--text-xs);
    color: var(--color-muted);
    text-align: center;
    margin-top: var(--space-2);
}

/* Premium Table Styling with Responsive Scrolling */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-8) 0;
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    background: var(--color-primary-fog);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* On mobile/tablet, wrap table in responsive overflow container */
@media (max-width: 768px) {
    .entry-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
    }
}

.entry-content th,
.entry-content td {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.entry-content th {
    background: var(--color-primary-pale);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.entry-content tr:last-child td {
    border-bottom: none;
}

.entry-content tr:nth-child(even) {
    background: rgba(231, 205, 171, 0.15); /* very soft primary-soft transparent */
}

/* Premium Lists Styling */
.entry-content ul,
.entry-content ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.entry-content li {
    margin-bottom: var(--space-2);
    line-height: var(--leading-base);
}

.entry-content ul {
    list-style-type: none;
}

.entry-content ul li {
    position: relative;
    padding-left: var(--space-5);
}

.entry-content ul li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-size: 1.25rem;
    line-height: 1;
    top: 0;
}

/* Premium Post Navigation with SVG Icons */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--space-6);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    min-width: 0;
}

.post-navigation a {
    text-decoration: none;
    color: var(--color-muted);
    font-size: var(--text-sm);
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nav-previous a {
    align-items: flex-start;
}

.nav-next a {
    align-items: flex-end;
}

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

.nav-arrow-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 500;
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    color: var(--color-muted);
    transition: color 0.3s ease;
}

.post-navigation a:hover .nav-arrow-wrapper {
    color: var(--color-primary);
}

.nav-arrow {
    stroke: currentColor;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-previous a:hover .nav-arrow {
    transform: translateX(-4px);
}

.nav-next a:hover .nav-arrow {
    transform: translateX(4px);
}

.nav-title {
    color: var(--color-dark);
    font-weight: 600;
    font-size: var(--text-md);
    margin-top: var(--space-2);
    transition: color 0.3s ease;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.nav-next .nav-title {
    text-align: right;
}

.post-navigation a:hover .nav-title {
    color: var(--color-primary);
}

/* Post Tags */
.post-tags a {
    display: inline-block;
    padding: var(--space-1) var(--space-4);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-color: var(--color-primary-soft);
}

.tags-label {
    font-weight: 600;
    color: var(--color-dark);
    margin-right: var(--space-2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .post-hero {
        padding-top: calc(var(--space-20) + 60px) !important;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .nav-next a {
        align-items: flex-start;
    }
    
    .nav-next .nav-title {
        text-align: left;
    }
}
