/* Blog & Post Styles - SEO Agency Pro */

/* BLOG LAYOUT */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-3xl);
    padding: var(--space-5xl) 0;
    padding-top: calc(var(--header-height) + var(--space-3xl))
}

.blog-layout--full {
    grid-template-columns: 1fr
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl)
}

.post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-default)
}

.post-card:hover {
    border-color: var(--color-border-glass-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow)
}

.post-card__thumbnail {
    width: 100%;
    height: 240px;
    object-fit: cover
}

.post-card__content {
    padding: var(--space-xl)
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md)
}

.post-card__category {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-accent-secondary);
    background: rgba(6, 182, 212, .1);
    padding: 2px 10px;
    border-radius: var(--radius-full)
}

.post-card__date {
    font-size: var(--fs-xs);
    color: var(--color-text-muted)
}

.post-card__title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm)
}

.post-card__title a {
    color: var(--color-text-primary)
}

.post-card__title a:hover {
    color: var(--color-accent-secondary)
}

.post-card__excerpt {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-lg)
}

.post-card__readmore {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text-accent);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: gap var(--transition-default)
}

.post-card__readmore:hover {
    gap: var(--space-sm);
    color: var(--color-accent-secondary)
}

.sticky .post-card {
    border-color: var(--color-accent-primary)
}

/* SINGLE POST */
.single-post-header {
    text-align: center;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
    position: relative
}

.single-post-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, .08) 0%, transparent 60%);
    pointer-events: none
}

.single-post-header .container {
    position: relative;
    z-index: 1
}

.single-post__content {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: var(--space-4xl)
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md)
}

.single-post__content p {
    margin-bottom: var(--space-lg);
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed)
}

.single-post__content ul,
.single-post__content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl)
}

.single-post__content li {
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
    list-style: disc
}

.single-post__content ol li {
    list-style: decimal
}

.single-post__content blockquote {
    border-left: 4px solid var(--color-accent-primary);
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-bg-glass);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: var(--space-lg)
}

.single-post__content blockquote p {
    font-style: italic;
    color: var(--color-text-primary);
    margin-bottom: 0
}

.single-post__content img {
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0
}

.single-post__content pre {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    overflow-x: auto;
    margin-bottom: var(--space-lg)
}

.single-post__content code {
    font-family: 'Fira Code', monospace;
    font-size: var(--fs-sm)
}

.single-post__content a {
    color: var(--color-accent-secondary);
    text-decoration: underline;
    text-underline-offset: 3px
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl)
}

.widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-xl)
}

.widget__title,
.widget-title {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-glass)
}

.widget ul li {
    margin-bottom: var(--space-sm)
}

.widget ul li a {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    transition: all var(--transition-fast)
}

.widget ul li a:hover {
    color: var(--color-text-primary);
    padding-left: 6px
}

/* SEARCH */
.search-form {
    display: flex;
    gap: var(--space-sm)
}

.search-form input[type="search"],
.search-form .search-field {
    flex: 1;
    padding: .75rem 1rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    outline: none;
    transition: border-color var(--transition-fast)
}

.search-form input[type="search"]:focus,
.search-form .search-field:focus {
    border-color: var(--color-accent-primary)
}

.search-form .search-submit {
    padding: .75rem 1.25rem;
    background: var(--color-accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all var(--transition-default)
}

.search-form .search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, .3)
}

/* COMMENTS */
.comments-section {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: var(--space-4xl)
}

.comments-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-2xl)
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl)
}

.comment {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-xl)
}

.comment .children {
    margin-top: var(--space-lg);
    padding-left: var(--space-xl);
    border-left: 2px solid var(--color-border-glass)
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md)
}

.comment-author .avatar {
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px
}

.comment-author .fn {
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary)
}

.comment-meta {
    font-size: var(--fs-xs);
    color: var(--color-text-muted)
}

.comment-body p {
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed)
}

.comment-reply-link {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-text-accent);
    margin-top: var(--space-sm);
    display: inline-block
}

.comment-respond .comment-form label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs)
}

.comment-respond .comment-form input[type="text"],
.comment-respond .comment-form input[type="email"],
.comment-respond .comment-form input[type="url"],
.comment-respond .comment-form textarea {
    width: 100%;
    padding: .75rem 1rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    outline: none;
    transition: border-color var(--transition-fast);
    margin-bottom: var(--space-md)
}

.comment-respond .comment-form input:focus,
.comment-respond .comment-form textarea:focus {
    border-color: var(--color-accent-primary)
}

.comment-respond .comment-form textarea {
    min-height: 150px;
    resize: vertical
}

.comment-respond .form-submit .submit {
    padding: .75rem 2rem;
    background: var(--color-accent-gradient);
    border: none;
    border-radius: var(--radius-lg);
    color: #fff;
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all var(--transition-default)
}

.comment-respond .form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .3)
}

/* 404 */
.error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height)
}

.error-404__code {
    font-family: var(--font-heading);
    font-size: 10rem;
    font-weight: var(--fw-extrabold);
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-md)
}

.error-404__title {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-md)
}

.error-404__text {
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto
}

/* PAGINATION */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl)
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border-glass);
    transition: all var(--transition-fast)
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-accent-gradient);
    color: #fff;
    border-color: transparent
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none
}

/* PAGE HEADER */
.page-header {
    text-align: center;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-2xl);
    position: relative
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, .06) 0%, transparent 60%);
    pointer-events: none
}

.page-header .container {
    position: relative;
    z-index: 1
}

.page-header__title {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-sm)
}

.page-header__description {
    font-size: var(--fs-lg);
    color: var(--color-text-muted)
}