/* Blog Post Page Styles */

/* Post Header */
.post-header {
    background: linear-gradient(135deg, var(--warm-ivory), var(--ash-grey));
    padding: 120px 0 60px;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

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

.breadcrumb a:hover {
    color: var(--deep-emerald);
}

.breadcrumb span {
    color: var(--warm-brown);
    margin: 0 0.5rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-category {
    background-color: var(--terracotta);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.post-category.tutorial {
    background-color: var(--terracotta);
}

.post-category.technique {
    background-color: var(--deep-emerald);
}

.post-category.inspiration {
    background-color: var(--gold-ochre);
    color: var(--charcoal);
}

.post-category.artist-story {
    background-color: var(--muted-coral);
    color: var(--charcoal);
}

.post-category.tips {
    background-color: var(--warm-brown);
}

.post-date,
.read-time {
    color: var(--warm-brown);
    font-size: 0.9rem;
}

.read-time::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--muted-coral);
}

.post-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    line-height: 1.1;
}

.post-subtitle {
    font-size: 1.2rem;
    color: var(--warm-brown);
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 800px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--muted-coral), var(--gold-ochre));
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 1.1rem;
}

.author-bio {
    color: var(--warm-brown);
    font-size: 0.9rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--terracotta);
    background-color: var(--white);
    color: var(--terracotta);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: var(--terracotta);
    color: var(--white);
    transform: translateY(-2px);
}

/* Featured Image */
.post-featured-image {
    height: 400px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--terracotta), var(--deep-emerald));
}

/* Post Content */
.post-content {
    padding: 3rem 0;
    background-color: var(--white);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

.article-content {
    max-width: none;
}

/* Typography */
.article-content .lead {
    font-size: 1.2rem;
    color: var(--warm-brown);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--warm-ivory);
    border-left: 4px solid var(--terracotta);
    border-radius: 0 8px 8px 0;
}

.article-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--charcoal);
    border-bottom: 2px solid var(--ash-grey);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--charcoal);
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

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

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--warm-brown);
}

.article-content strong {
    color: var(--charcoal);
    font-weight: 600;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.table-of-contents {
    background-color: var(--warm-ivory);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.table-of-contents h3 {
    margin-bottom: 1rem;
    color: var(--charcoal);
    font-size: 1.1rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--warm-brown);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.table-of-contents a:hover {
    color: var(--terracotta);
}

.related-products {
    background-color: var(--ash-grey);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.related-products h3 {
    margin-bottom: 1rem;
    color: var(--charcoal);
    font-size: 1.1rem;
}

.related-product {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
}

.product-image-small {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
}

.product-details h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--charcoal);
}

.product-details .price {
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.share-article {
    background-color: var(--warm-ivory);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.share-article h3 {
    margin-bottom: 1rem;
    color: var(--charcoal);
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--white);
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.pinterest {
    background-color: #bd081c;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Related Articles */
.related-articles {
    background-color: var(--warm-ivory);
    padding: 4rem 0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--charcoal);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
    transition: transform 0.3s ease;
}

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

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.related-card:hover .related-placeholder {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-category {
    background-color: var(--muted-coral);
    color: var(--charcoal);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.related-content h3 {
    margin: 1rem 0 0.5rem;
    color: var(--charcoal);
    font-size: 1.1rem;
}

.related-content p {
    color: var(--warm-brown);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.related-link {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.related-link:hover {
    color: var(--deep-emerald);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 70px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--gold-ochre));
    transition: width 0.1s ease;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-sidebar {
        position: static;
        order: -1;
    }

    .table-of-contents,
    .related-products,
    .share-article {
        display: none;
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 100px 0 40px;
    }

    .post-title {
        font-size: 2.2rem;
    }

    .post-subtitle {
        font-size: 1rem;
    }

    .post-meta {
        gap: 1rem;
    }

    .post-featured-image {
        height: 250px;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
    }

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

    .post-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 90px 0 30px;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-subtitle {
        font-size: 0.95rem;
    }

    .post-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .article-content {
        padding: 0 1rem;
    }

    .article-content .lead {
        padding: 1rem;
        font-size: 1rem;
    }

    .article-content p {
        font-size: 1rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .post-featured-image {
        height: 200px;
        margin-bottom: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .post-actions,
    .article-sidebar,
    .related-articles,
    .footer {
        display: none !important;
    }

    .post-header {
        background: none !important;
        padding: 1rem 0;
    }

    .post-content {
        background: none !important;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .article-content {
        max-width: 100%;
    }

    .post-title {
        color: #000 !important;
    }

    .article-content h2,
    .article-content h3 {
        color: #000 !important;
    }
}

/* Accessibility Improvements */
.article-content a {
    color: var(--terracotta);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--deep-emerald);
}

.article-content a:focus {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background-color: var(--muted-coral);
    color: var(--charcoal);
}

::-moz-selection {
    background-color: var(--muted-coral);
    color: var(--charcoal);
}
