/* Post Page - Japandi Light Academia Styling */

:root {
    --cream: #faf8f3;
    --warm-beige: #e8e3d8;
    --sage: #9ca892;
    --charcoal: #2d2d2a;
    --deep-brown: #3e3832;
    --burgundy: #8b6f62;
    --accent-gold: #c9a875;
    --soft-white: #ffffff;
}

/* ================================
   Article Container
   ================================ */

.gh-article {
    background: var(--soft-white);
}

/* ================================
   Article Header
   ================================ */

.gh-article-header {
    padding-top: 8rem;
    padding-bottom: 6rem;
    text-align: center;
}

.gh-article-tag {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.8rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--burgundy);
    background: var(--cream);
    border: 1px solid var(--warm-beige);
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gh-article-tag:hover {
    background: var(--burgundy);
    color: white;
    border-color: var(--burgundy);
    opacity: 1;
}

.gh-article-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 4vw + 1rem, 7rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--charcoal);
    margin-bottom: 3rem;
}

.gh-article-excerpt {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--sage);
    max-width: 80rem;
    margin: 0 auto 4rem;
}

/* ================================
   Article Meta
   ================================ */

.gh-article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 6rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--warm-beige);
}

.gh-article-author-image {
    display: flex;
    gap: 0;
}

.gh-article-author-image a {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--soft-white);
    margin-left: -1rem;
    transition: all 0.3s ease;
}

.gh-article-author-image a:first-child {
    margin-left: 0;
}

.gh-article-author-image a:hover {
    transform: translateY(-0.3rem);
    z-index: 10;
    border-color: var(--burgundy);
    opacity: 1;
}

.gh-article-author-image img,
.gh-article-author-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gh-article-meta-wrapper {
    text-align: left;
}

.gh-article-author-name {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--deep-brown);
    margin-bottom: 0.3rem;
}

.gh-article-meta-content {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--sage);
}

.gh-article-meta-date {
    color: var(--sage);
}

.gh-article-meta-length {
    color: var(--sage);
}

.bull {
    margin: 0 0.5rem;
}

/* ================================
   Feature Image
   ================================ */

.gh-article-image {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.gh-article-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 2rem 4rem -1rem rgba(0, 0, 0, 0.1);
}

/* ================================
   Article Content
   ================================ */

.gh-content {
    padding-top: 4rem;
    padding-bottom: 8rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.9rem;
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: var(--charcoal);
}

/* Headings in content */
.gh-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--deep-brown);
    margin-top: 6rem;
    margin-bottom: 2rem;
}

.gh-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--deep-brown);
    margin-top: 5rem;
    margin-bottom: 1.5rem;
}

.gh-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--deep-brown);
    margin-top: 4rem;
    margin-bottom: 1rem;
}

.gh-content h5,
.gh-content h6 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--deep-brown);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

/* Paragraphs */
.gh-content p {
    margin-bottom: 2.5rem;
}

.gh-content p:first-of-type {
    font-size: 2.1rem;
}

/* Links */
.gh-content a {
    color: var(--burgundy);
    text-decoration: none;
    border-bottom: 1px solid var(--burgundy);
    transition: all 0.3s ease;
}

.gh-content a:hover {
    color: var(--deep-brown);
    border-bottom-color: var(--deep-brown);
    opacity: 1;
}

/* Lists */
.gh-content ul,
.gh-content ol {
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.gh-content li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.gh-content li::marker {
    color: var(--burgundy);
}

/* Blockquotes */
.gh-content blockquote {
    margin: 4rem 0;
    padding: 3rem 4rem;
    background: var(--cream);
    border-left: 4px solid var(--burgundy);
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 2.1rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--deep-brown);
}

.gh-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.gh-content pre {
    margin: 3rem 0;
    padding: 2.5rem;
    background: var(--charcoal);
    border-radius: 0.8rem;
    overflow-x: auto;
    font-size: 1.5rem;
    line-height: 1.6;
}

.gh-content code {
    padding: 0.3rem 0.6rem;
    background: var(--cream);
    border: 1px solid var(--warm-beige);
    border-radius: 0.3rem;
    font-size: 0.9em;
    color: var(--burgundy);
}

.gh-content pre code {
    padding: 0;
    background: none;
    border: none;
    color: var(--cream);
}

/* Images */
.gh-content figure {
    margin: 4rem 0;
}

.gh-content img {
    width: 100%;
    border-radius: 0.8rem;
    box-shadow: 0 1rem 3rem -1rem rgba(0, 0, 0, 0.1);
}

.gh-content figcaption {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--sage);
}

/* Horizontal Rule */
.gh-content hr {
    margin: 6rem auto;
    width: 30%;
    height: 1px;
    background: var(--warm-beige);
    border: none;
}

/* Tables */
.gh-content table {
    width: 100%;
    margin: 4rem 0;
    border-collapse: collapse;
}

.gh-content table th {
    padding: 1.5rem;
    background: var(--cream);
    border: 1px solid var(--warm-beige);
    font-weight: 600;
    text-align: left;
    color: var(--deep-brown);
}

.gh-content table td {
    padding: 1.5rem;
    border: 1px solid var(--warm-beige);
}

.gh-content table tr:nth-child(even) {
    background: var(--cream);
}

/* Drop Cap */
.gh-content.drop-cap > p:first-of-type:first-letter {
    float: left;
    margin: 0.1em 0.2em 0 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5em;
    line-height: 0.85;
    font-weight: 700;
    color: var(--burgundy);
}

/* ================================
   Ghost Cards Enhancement
   ================================ */

/* Bookmark Cards */
.gh-content .kg-bookmark-card {
    margin: 4rem 0;
}

.gh-content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    border: 2px solid var(--warm-beige);
    border-radius: 0.8rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gh-content .kg-bookmark-container:hover {
    border-color: var(--burgundy);
    box-shadow: 0 1rem 3rem -1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-0.3rem);
}

.gh-content .kg-bookmark-content {
    flex: 1;
    padding: 2.5rem;
}

.gh-content .kg-bookmark-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 0.8rem;
}

.gh-content .kg-bookmark-description {
    font-size: 1.5rem;
    color: var(--sage);
    line-height: 1.5;
}

.gh-content .kg-bookmark-thumbnail {
    width: 30%;
    min-width: 200px;
}

.gh-content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* Gallery Cards */
.gh-content .kg-gallery-container {
    margin: 4rem 0;
}

.gh-content .kg-gallery-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gh-content .kg-gallery-image img {
    border-radius: 0.5rem;
}

/* Button Cards */
.gh-content .kg-button-card {
    margin: 4rem 0;
    text-align: center;
}

.gh-content .kg-btn {
    display: inline-block;
    padding: 1.5rem 4rem;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: white;
    background: var(--burgundy);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gh-content .kg-btn:hover {
    background: var(--deep-brown);
    box-shadow: 0 1rem 2rem -0.5rem rgba(0, 0, 0, 0.3);
    transform: translateY(-0.2rem);
    opacity: 1;
}

/* Callout Cards */
.gh-content .kg-callout-card {
    margin: 4rem 0;
    padding: 3rem;
    background: var(--cream);
    border: 2px solid var(--warm-beige);
    border-radius: 0.8rem;
}

.gh-content .kg-callout-emoji {
    font-size: 3rem;
    margin-right: 1.5rem;
}

.gh-content .kg-callout-text {
    font-size: 1.8rem;
    line-height: 1.6;
}

/* ================================
   Comments Section
   ================================ */

.gh-comments {
    margin-top: 8rem;
    padding-top: 6rem;
    border-top: 1px solid var(--warm-beige);
}

/* ================================
   Related Articles
   ================================ */

.gh-container.is-grid {
    margin-top: 12rem;
    padding: 8rem 2rem;
    background: var(--cream);
}

.gh-container-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--deep-brown);
    text-align: center;
    margin-bottom: 6rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--warm-beige);
    text-transform: none;
}

/* Post Cards in Related Section */
.gh-container .gh-card {
    background: var(--soft-white);
    border: 2px solid var(--warm-beige);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.gh-container .gh-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 2rem 4rem -1rem rgba(0, 0, 0, 0.15);
    border-color: var(--burgundy);
}

.gh-container .gh-card-image {
    border-radius: 0;
}

.gh-container .gh-card-wrapper {
    padding: 3rem;
}

.gh-container .gh-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--deep-brown);
}

.gh-container .gh-card-excerpt {
    color: var(--sage);
    margin-top: 1.5rem;
}

.gh-container .gh-card-meta {
    margin-top: 2rem;
    color: var(--sage);
}

/* ================================
   Responsive Adjustments
   ================================ */

@media (max-width: 767px) {
    .gh-article-header {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    .gh-article-title {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }
    
    .gh-article-excerpt {
        font-size: 1.8rem;
    }
    
    .gh-article-meta {
        flex-direction: column;
        text-align: center;
        margin-bottom: 4rem;
    }
    
    .gh-article-meta-wrapper {
        text-align: center;
    }
    
    .gh-content {
        font-size: 1.7rem;
        padding-top: 3rem;
        padding-bottom: 6rem;
    }
    
    .gh-content h2 {
        font-size: 3rem;
        margin-top: 4rem;
    }
    
    .gh-content h3 {
        font-size: 2.4rem;
        margin-top: 3rem;
    }
    
    .gh-content blockquote {
        padding: 2rem;
        font-size: 1.8rem;
    }
    
    .gh-content .kg-bookmark-container {
        flex-direction: column;
    }
    
    .gh-content .kg-bookmark-thumbnail {
        width: 100%;
        min-width: unset;
        height: 200px;
    }
    
    .gh-container.is-grid {
        margin-top: 8rem;
        padding: 6rem 1.5rem;
    }
    
    .gh-container-title {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
}

/* ================================
   Print Styles
   ================================ */

@media print {
    .gh-article-tag,
    .gh-comments,
    .gh-container.is-grid {
        display: none;
    }
    
    .gh-content {
        max-width: 100%;
    }
}