/**
 * Blog-specific styles: archive, cards, single post, comments, pagination
 */

/* === Blog Archive Hero === */
.blog-hero {
    padding-top: 7rem; padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.blog-hero-title {
    font-size: 2.5rem; font-weight: 900; color: var(--white);
    line-height: 1.1; margin-bottom: 0.75rem;
}
.blog-hero-desc { color: var(--slate-400); font-size: 1.125rem; max-width: 32rem; font-weight: 300; }

/* === Featured Post Card === */
.featured-post {
    display: grid; grid-template-columns: 1fr;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.5rem; overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.5);
    margin-bottom: 3rem;
}
.featured-post:hover { border-color: rgba(19,127,236,0.3); }
.featured-post-img {
    position: relative; height: 16rem; order: 1;
    background: #0a0a0a; overflow: hidden;
}
.featured-post-img img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.8; mix-blend-mode: luminosity; transition: all 0.5s;
}
.featured-post:hover .featured-post-img img { mix-blend-mode: normal; opacity: 1; }
.featured-post-text {
    padding: 2rem; display: flex; flex-direction: column;
    justify-content: space-between; order: 2;
}
.featured-post-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.post-tag {
    padding: 0.25rem 0.5rem; font-size: 0.75rem;
    font-family: var(--mono); border-radius: 0.25rem;
    background: rgba(19,127,236,0.1); color: var(--primary-a11y);
    border: 1px solid rgba(19,127,236,0.2);
    transition: background 0.15s;
}
.post-tag:hover { background: rgba(19,127,236,0.2); }
.post-sep { height: 1px; width: 2rem; background: rgba(255,255,255,0.1); }
.post-reading-time { color: var(--slate-400); font-size: 0.75rem; font-family: var(--mono); }
.featured-post-title {
    font-size: 1.5rem; font-weight: 700; color: var(--white);
    margin-bottom: 1rem; transition: color 0.15s; line-height: 1.3;
}
.featured-post:hover .featured-post-title { color: var(--primary); }
.featured-post-excerpt { color: var(--slate-400); line-height: 1.625; margin-bottom: 2rem; max-width: 36rem; }
.post-read-more {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--white); font-weight: 500; transition: color 0.15s; width: fit-content;
}
.post-read-more:hover { color: var(--primary); }
.post-read-more .material-symbols-outlined { font-size: 1.125rem; }

/* === Post Grid === */
.posts-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1.5rem; margin-bottom: 3rem;
}
.post-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.5rem; overflow: hidden;
    transition: all 0.3s;
}
.post-card:hover { border-color: rgba(19,127,236,0.3); transform: translateY(-2px); }
.post-card-img {
    position: relative; height: 12rem;
    background: #0a0a0a; overflow: hidden;
}
.post-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.8; mix-blend-mode: luminosity; transition: all 0.5s;
}
.post-card:hover .post-card-img img { mix-blend-mode: normal; opacity: 1; }
.post-card-no-img {
    height: 4rem;
    background: linear-gradient(135deg, rgba(19,127,236,0.1), rgba(168,85,247,0.1));
}
.post-card-body { padding: 1.5rem; }
.post-card-meta {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.75rem; flex-wrap: wrap;
}
.post-card-title {
    font-size: 1.125rem; font-weight: 700; color: var(--white);
    margin-bottom: 0.5rem; line-height: 1.4; transition: color 0.15s;
}
.post-card:hover .post-card-title { color: var(--primary); }
.post-card-excerpt {
    color: var(--slate-400); font-size: 0.875rem;
    line-height: 1.625; margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
}
.post-card-date { font-size: 0.75rem; color: var(--slate-500); }
.post-card-read-more {
    font-size: 0.8125rem; font-weight: 500; color: var(--slate-400);
    display: flex; align-items: center; gap: 0.25rem; transition: color 0.15s;
}
.post-card-read-more:hover { color: var(--primary); }
.post-card-read-more .material-symbols-outlined { font-size: 1rem; }

/* === Category Page Header === */
.category-header {
    padding-top: 7rem; padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.category-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.25rem 0.75rem; border-radius: 9999px;
    border: 1px solid rgba(19,127,236,0.2);
    background: rgba(19,127,236,0.1);
    font-size: 0.75rem; font-weight: 500; color: var(--primary-a11y);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 1rem; font-family: var(--mono);
}
.category-title {
    font-size: 2.5rem; font-weight: 900; color: var(--white);
    line-height: 1.1; margin-bottom: 0.75rem;
}
.category-desc { color: var(--slate-400); font-size: 1.125rem; max-width: 32rem; font-weight: 300; }
.category-count { color: var(--slate-500); font-size: 0.875rem; margin-top: 0.5rem; font-family: var(--mono); }

/* === Pagination === */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 0.5rem; padding: 3rem 0 4rem;
}
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.25rem; font-size: 0.875rem; font-weight: 500;
    color: var(--slate-400); transition: all 0.15s;
}
.pagination a:hover { border-color: rgba(19,127,236,0.4); color: var(--white); background: rgba(19,127,236,0.1); }
.pagination .current {
    background: var(--primary); border-color: var(--primary);
    color: var(--white); font-weight: 700;
}
.pagination .dots { border: none; color: var(--slate-500); }
.pagination .prev, .pagination .next { font-weight: 600; }

/* === Single Post === */
.single-hero {
    padding-top: 7rem; padding-bottom: 2rem;
}
.breadcrumbs {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 2rem; font-size: 0.8125rem; color: var(--slate-500);
    font-family: var(--mono);
}
.breadcrumbs a { color: var(--slate-400); transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--slate-500); }
.single-meta {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.5rem; flex-wrap: wrap;
}
.single-title {
    font-size: 2.5rem; font-weight: 900; color: var(--white);
    line-height: 1.15; margin-bottom: 1.5rem;
}
.single-excerpt {
    font-size: 1.25rem; color: var(--slate-400); font-weight: 300;
    line-height: 1.6; margin-bottom: 2rem; max-width: 42rem;
}
.single-featured-img {
    width: 100%; max-height: 480px; overflow: hidden;
    border-radius: 0.5rem; margin-bottom: 3rem;
    border: 1px solid rgba(255,255,255,0.05);
}
.single-featured-img img {
    width: 100%; height: 100%; object-fit: cover;
}

/* === Post Content (the_content) === */
.post-content {
    font-size: 1.0625rem; line-height: 1.8; color: var(--slate-200);
    max-width: 720px; margin: 0 auto;
}
.post-content h2 {
    font-size: 1.75rem; font-weight: 800; color: var(--white);
    margin: 3rem 0 1rem; line-height: 1.3;
}
.post-content h3 {
    font-size: 1.375rem; font-weight: 700; color: var(--white);
    margin: 2.5rem 0 0.75rem; line-height: 1.3;
}
.post-content h4 {
    font-size: 1.125rem; font-weight: 700; color: var(--white);
    margin: 2rem 0 0.5rem;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content a {
    color: var(--primary-a11y); text-decoration: underline;
    text-underline-offset: 2px; transition: color 0.15s;
}
.post-content a:hover { color: var(--white); }
.post-content strong { color: var(--white); font-weight: 600; }
.post-content em { font-style: italic; }
.post-content ul, .post-content ol {
    margin: 0 0 1.5rem 1.5rem; color: var(--slate-300);
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.5rem; }
.post-content li::marker { color: var(--primary); }
.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem; margin: 2rem 0;
    background: rgba(19,127,236,0.05);
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--slate-300); font-style: italic;
}
.post-content blockquote p { margin-bottom: 0; }
.post-content code {
    font-family: var(--mono); font-size: 0.875em;
    background: rgba(255,255,255,0.08); color: var(--emerald-400);
    padding: 0.15em 0.4em; border-radius: 0.25rem;
}
.post-content pre {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.5rem; padding: 1.5rem;
    margin: 2rem 0; overflow-x: auto;
    font-size: 0.875rem; line-height: 1.7;
}
.post-content pre code {
    background: none; padding: 0; color: var(--slate-200);
}
.post-content img {
    border-radius: 0.5rem; margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.05);
}
.post-content hr {
    border: none; height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 3rem 0;
}
.post-content table {
    width: 100%; margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem; overflow: hidden;
}
.post-content th {
    background: var(--surface); color: var(--white);
    font-weight: 600; text-align: left;
    padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.post-content td {
    padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--slate-300);
}
.post-content figure { margin: 2rem 0; }
.post-content figcaption {
    text-align: center; font-size: 0.8125rem;
    color: var(--slate-500); margin-top: 0.5rem;
}

/* === Post Tags === */
.post-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 3rem; max-width: 720px; margin-left: auto; margin-right: auto;
}
.post-tags a {
    font-size: 0.75rem; color: var(--slate-400);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.25rem 0.5rem; border-radius: 0.25rem;
    transition: all 0.15s;
}
.post-tags a:hover { border-color: rgba(19,127,236,0.4); color: var(--primary-a11y); }

/* === Author Box === */
.author-box {
    display: flex; gap: 1.5rem; align-items: flex-start;
    background: var(--surface); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.5rem; padding: 2rem;
    margin: 2rem auto 3rem; max-width: 720px;
}
.author-avatar {
    width: 4rem; height: 4rem; border-radius: 9999px;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.1);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info { flex: 1; }
.author-label { font-size: 0.6875rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.author-name { font-size: 1.125rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.author-bio { font-size: 0.875rem; color: var(--slate-400); line-height: 1.6; }

/* === Post Navigation === */
.post-nav {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
    padding: 2rem 0 3rem; max-width: 720px; margin: 0 auto;
}
.post-nav-link {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding: 1.25rem; background: var(--surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.5rem; transition: all 0.15s;
}
.post-nav-link:hover { border-color: rgba(19,127,236,0.3); }
.post-nav-label { font-size: 0.6875rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.1em; }
.post-nav-title { font-size: 0.9375rem; font-weight: 600; color: var(--white); transition: color 0.15s; }
.post-nav-link:hover .post-nav-title { color: var(--primary); }
.post-nav-next { text-align: right; }

/* === Comments === */
.comments-section {
    max-width: 720px; margin: 0 auto;
    padding: 3rem 0 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.comments-title {
    font-size: 1.5rem; font-weight: 700; color: var(--white);
    margin-bottom: 2rem;
}
.comment-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.comment-item {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.5rem; padding: 1.5rem;
}
.comment-item .children { margin-top: 1.5rem; margin-left: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.comment-item .children .comment-item {
    border-color: rgba(19,127,236,0.15);
}
.comment-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.comment-avatar { width: 2.5rem; height: 2.5rem; border-radius: 9999px; overflow: hidden; flex-shrink: 0; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-author-name { font-weight: 600; color: var(--white); font-size: 0.9375rem; }
.comment-date { font-size: 0.75rem; color: var(--slate-500); }
.comment-body { color: var(--slate-300); font-size: 0.9375rem; line-height: 1.7; }
.comment-body p { margin-bottom: 0.75rem; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-reply-link {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.8125rem; color: var(--slate-400);
    margin-top: 0.75rem; transition: color 0.15s;
}
.comment-reply-link:hover { color: var(--primary); }

/* === Comment Form === */
.comment-respond { margin-top: 2rem; }
.comment-respond .comment-reply-title {
    font-size: 1.25rem; font-weight: 700; color: var(--white);
    margin-bottom: 1.5rem;
}
.comment-respond label {
    display: block; font-size: 0.8125rem; font-weight: 500;
    color: var(--slate-400); margin-bottom: 0.5rem;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--surface); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.375rem; color: var(--white);
    font-size: 0.9375rem; transition: border-color 0.15s;
    margin-bottom: 1rem;
}
.comment-respond input:focus,
.comment-respond textarea:focus {
    outline: none; border-color: var(--primary);
}
.comment-respond textarea { min-height: 120px; resize: vertical; }
.comment-respond .submit {
    display: inline-flex; align-items: center; justify-content: center;
    height: 2.75rem; padding: 0 2rem;
    background: var(--primary); color: var(--white);
    font-weight: 600; font-size: 0.875rem;
    border: none; border-radius: 0.25rem;
    cursor: pointer; transition: background 0.15s;
}
.comment-respond .submit:hover { background: #0c6dcc; }
.comment-form-cookies-consent {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1rem;
}
.comment-form-cookies-consent label { margin-bottom: 0; }

/* === No Posts === */
.no-posts {
    text-align: center; padding: 4rem 0;
}
.no-posts-title { font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.no-posts-desc { color: var(--slate-400); }

/* === Blog Responsive (768px+) === */
@media (min-width: 768px) {
    .blog-hero-title { font-size: 3rem; }
    .category-title { font-size: 3rem; }
    .featured-post { grid-template-columns: 7fr 5fr; }
    .featured-post-img { height: auto; order: 2; }
    .featured-post-text { padding: 2.5rem; order: 1; }
    .featured-post-title { font-size: 1.875rem; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .single-title { font-size: 3rem; }
    .post-nav { grid-template-columns: 1fr 1fr; }
}

/* === Blog Large screens (1024px+) === */
@media (min-width: 1024px) {
    .blog-hero-title { font-size: 3.5rem; }
    .category-title { font-size: 3.5rem; }
    .single-title { font-size: 3.25rem; }
    .featured-post-text { padding: 3rem; }
}

/* === WordPress Core Alignment === */
.alignwide { max-width: 1080px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--slate-500); text-align: center; margin-top: 0.5rem; }
