/* Blog ecosystem styles */
/* Page blog toggle */
.tab{border:1px solid var(--border);background:var(--card);padding:8px 14px;border-radius:999px;cursor:pointer}
.tab.active{background:#111;color:#fff;border-color:#111}
.chip{border:1px solid var(--border);background:var(--card);padding:6px 10px;border-radius:999px;cursor:pointer}

/* Single layout */
.blog-layout{display:grid;grid-template-columns:0.3fr 0.7fr;gap:20px}
.blog-sidebar{position:sticky;top:90px;align-self:start}
.post-header .post-title{margin:0 0 6px;font-size:clamp(24px,4vw,34px);font-weight:800}
.post-meta{display:flex;gap:10px;align-items:center;color:var(--muted);margin-bottom:8px}
.share{display:flex;gap:8px;margin:8px 0}
.share .share-btn{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--border);border-radius:10px}
.post-thumb .thumbnail{width:100%;height:auto;display:block}
.post-content blockquote{border-left:4px solid #1877f2;background:rgba(24,119,242,.06);padding:12px 14px;border-radius:8px}

/* Sidebar widgets */
.widget{margin-bottom:16px}
.newsletter-form{display:flex;gap:6px;flex-wrap:wrap}
.newsletter-form input[type=email]{flex:1;min-width:200px;padding:8px;border:1px solid var(--border);border-radius:8px}
.newsletter-form button{padding:8px 12px;border-radius:8px;border:1px solid var(--border);background:var(--card)}
#toc .toc-list{list-style:none;margin:0;padding:0}
#toc .toc-list li{margin:6px 0}
#toc .active > a{color:#1877f2}
.recent-list{list-style:none;margin:0;padding:0}
.recent-list li{display:flex;gap:8px;align-items:center;margin:8px 0}
.recent-list .thumb img{width:60px;height:60px;object-fit:cover;border-radius:8px}
.recent-list .title{display:block;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Responsive */
@media (max-width: 900px){.blog-layout{grid-template-columns:1fr}.blog-sidebar{order:2;position:static}.post-main{order:1}}



/* Blog Page Archive Styles */
.blog-header {
  text-align: center;
  margin-bottom: 40px;
}
.blog-header h1 {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: 2px;
}
.blog-header p {
  font-size: 16px;
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}
.blog-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  background-color: #F6F6F6;
  border-radius: 999px;
  padding: 6px;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #EAEAEA;
}
.blog-tabs .tab {
  padding: 10px 30px;
  border: none;
  background-color: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #757575;
  transition: all 0.3s ease;
}
.blog-tabs .tab.active {
  background-color: #fff;
  color: #000;
  box-shadow: 0px 2px 10px -2px rgba(0,0,0,0.1);
}
.blog-view { display: none; }
.blog-view.active { display: block; }
.view-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 30px;
}

/* Topic View */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px;
}
.topic-card .topic-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 0 15px;
}
.topic-card .topic-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.topic-card .topic-posts li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.topic-card .topic-posts li:first-child {
    border-top: 1px solid #eee;
}
.topic-card .topic-posts a { color: var(--text); }
.topic-card .read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination .page-numbers {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    font-weight: 600;
}
.pagination .page-numbers.current {
    background: #111;
    color: #fff;
}
.pagination .prev, .pagination .next {
    background: transparent;
}


/* Date View */
.date-filters {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 25px;
}
.filter-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    width: 120px;
    flex-shrink: 0;
}
.years, .months {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.chip {
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #757575;
    transition: all 0.2s ease;
}
.chip.active {
    color: #000;
    border-color: #000;
}
#date-results-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px;
    text-transform: uppercase;
}
.date-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #EAEAEA;
}
.date-posts li {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #EAEAEA;
}
.date-posts .post-date {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    width: 90px;
    flex-shrink: 0;
}
.date-posts .post-title {
    flex-grow: 1;
}
.date-posts .post-title a {
    color: var(--text);
    font-weight: 600;
}
.date-posts .post-link {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F6F6F6;
    border: 1px solid #EAEAEA;
    color: #000;
}

/* Responsive Blog Archive */
@media (max-width: 768px) {
    .topic-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .view-title {
        text-align: left;
    }
}



/* --- Comment Section --- */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.comments-title, #reply-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list > li {
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.comment-list > li:last-child {
    border-bottom: 1px solid var(--border);
}

.comment-list .children {
    list-style: none;
    padding-left: 40px;
    margin-top: 25px;
}

.comment-body {
    display: flex;
    gap: 15px;
}

.comment-author.vcard img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-content-wrapper {
    flex-grow: 1;
}

.comment-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-meta-header .fn {
    font-weight: 700;
    font-size: 16px;
}

.comment-meta-details {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    align-items: center;
}

.comment-meta-details .comment-separator {
    color: var(--muted);
}

.comment-meta-details .reply a {
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
}

.comment-content {
    line-height: 1.7;
}

/* --- Login Message --- */
.comment-login-message {
    background-color: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

.comment-login-message p {
    margin: 0;
    font-size: 16px;
    color: var(--text);
}

.comment-login-message a {
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
}

.comment-login-message a:hover {
    text-decoration: underline;
}

/* --- Comment Form --- */
#respond {
    margin-top: 40px;
}

#respond .comment-form {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.comment-form-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex: 1;
}

.comment-form-avatar {
    flex-shrink: 0;
}

.comment-form-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-form-content {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.comment-form-content textarea {
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: 120px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    outline: none;
    margin-bottom: 15px;
}

.comment-form-content textarea::placeholder {
    color: #999;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email {
    display: none;
}

.comment-form input[type="text"],
.comment-form input[type="email"] {
    display: none;
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.comment-form-anonymous {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.comment-form-anonymous input[type="checkbox"] {
    display: none;
}

.comment-form-anonymous label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    position: relative;
    padding-left: 50px;
}

/* Toggle Switch Styling */
.comment-form-anonymous label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 24px;
    background-color: #d0d0d0;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.comment-form-anonymous input[type="checkbox"]:checked + label::before {
    background-color: #D4756E;
}

.comment-form-anonymous label::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: left 0.3s ease;
}

.comment-form-anonymous input[type="checkbox"]:checked + label::after {
    left: 22px;
}

.form-submit-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-submit-buttons .btn-cancel {
    background: transparent;
    border: none;
    color: var(--text);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
}

.form-submit-buttons .btn-cancel:hover {
    color: #999;
}

.form-submit-buttons .submit {
    background-color: #D4756E;
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.form-submit-buttons .submit:hover {
    opacity: 0.9;
}

.logged-in-as, .comment-notes {
    display: none;
}
