/**
 * Blog Styles
 * 
 * @package Beauty_Proryv
 */

/* ==========================================================================
   BLOG PAGE LAYOUT
   ========================================================================== */

.blog-page {
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 4rem;
    min-height: 100vh;
}

.blog-header {
    text-align: center;
    padding: 3rem 0;
    background: var(--bg-secondary);
    margin-bottom: 3rem;
}

/* ==========================================================================
   BLOG GRID
   ========================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   BLOG SINGLE POST
   ========================================================================== */

.blog-single {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
}

.blog-single__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.blog-single__category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--gradient-button);
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.blog-single__title {
    font-size: var(--fs-h1);
    margin-bottom: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-single__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: var(--fs-small);
}

.blog-single__image {
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.blog-single__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   BLOG CONTENT TYPOGRAPHY
   ========================================================================== */

.blog-single__content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.blog-single__content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.25rem;
    padding-top: 1rem;
}

.blog-single__content h3 {
    font-size: 1.375rem;
    margin: 2rem 0 1rem;
}

.blog-single__content h4 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem;
}

.blog-single__content p {
    margin-bottom: 1.5rem;
}

.blog-single__content ul,
.blog-single__content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.blog-single__content li {
    margin-bottom: 0.5rem;
}

.blog-single__content li::marker {
    color: var(--accent-primary);
}

.blog-single__content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-single__content a:hover {
    color: var(--accent-hover);
}

.blog-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}

.blog-single__content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-single__content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-single__content pre {
    background: var(--text-primary);
    color: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.blog-single__content code {
    background: var(--bg-secondary);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-single__content pre code {
    background: none;
    padding: 0;
}

.blog-single__content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    margin: 3rem 0;
}

.blog-single__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.blog-single__content th,
.blog-single__content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-single__content th {
    background: var(--bg-secondary);
    font-weight: 600;
}

/* ==========================================================================
   BLOG SINGLE FOOTER
   ========================================================================== */

.blog-single__footer {
    max-width: 750px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-secondary);
}

.blog-single__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.blog-single__share > span {
    font-weight: 600;
    color: var(--text-primary);
}

.blog-single__share a {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: var(--fs-small);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.blog-single__share a:hover {
    background: var(--accent-primary);
    color: #fff;
}

.blog-single__nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-single__nav-link {
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: var(--fs-small);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.blog-single__nav-link:hover {
    background: var(--accent-primary);
    color: #fff;
}

.blog-single__nav-link--prev {
    margin-right: auto;
}

.blog-single__nav-link--next {
    margin-left: auto;
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--bg-secondary);
}

.related-posts__title {
    text-align: center;
    margin-bottom: 2rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ==========================================================================
   AUTHOR BOX
   ========================================================================== */

.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-top: 3rem;
}

.author-box__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box__content {
    flex: 1;
}

.author-box__name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.author-box__bio {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box__avatar {
        margin: 0 auto;
    }
}

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */

.comments-area {
    max-width: 750px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-secondary);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
}

.comment-metadata {
    font-size: var(--fs-small);
    color: var(--text-light);
}

.comment-content {
    color: var(--text-secondary);
}

.comment-reply-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: var(--fs-small);
    color: var(--accent-primary);
}

/* ==========================================================================
   COMMENT FORM
   ========================================================================== */

.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-size: var(--fs-small);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.comment-form .submit {
    background: var(--gradient-button);
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

/* ==========================================================================
   CATEGORY PAGE
   ========================================================================== */

.category-description {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
}

/* ==========================================================================
   ARCHIVE PAGE
   ========================================================================== */

.archive-description {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */

.search-results__header {
    margin-bottom: 1rem;
}

.search-results__query {
    color: var(--accent-primary);
}

.search-results__count {
    color: var(--text-light);
    font-size: var(--fs-small);
    margin-top: 0.5rem;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-fast);
}

.pagination .page-numbers:hover {
    background: var(--accent-primary);
    color: #fff;
}

.pagination .page-numbers.current {
    background: var(--accent-primary);
    color: #fff;
}

.pagination .page-numbers.dots {
    background: none;
    box-shadow: none;
}

.pagination .prev,
.pagination .next {
    font-size: 1.25rem;
}

/* ==========================================================================
   SIDEBAR (if used)
   ========================================================================== */

.sidebar {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.widget a:hover {
    color: var(--accent-primary);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .blog-single__content {
        font-size: 1rem;
    }

    .blog-single__content h2 {
        font-size: 1.5rem;
    }

    .blog-single__content h3 {
        font-size: 1.25rem;
    }

    .blog-single__nav {
        flex-direction: column;
    }

    .blog-single__nav-link {
        text-align: center;
    }
}




