/* =========================================
BLOG SYSTEM
Kelibatmu V2
========================================= */

/* =========================================
BLOG DETAIL LAYOUT
========================================= */

.blog-detail-section {
    padding: 1.5rem 0 5rem;
}

.blog-post {
    max-width: 860px;
    margin: 0 auto;
}

/* =========================================
BLOG HEADER
========================================= */

.blog-post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.45rem 0.9rem;

    border-radius: 999px;

    background: rgba(255,255,255,0.06);

    font-size: var(--kv2-font-meta);
    letter-spacing: var(--kv2-track-meta);

    margin-bottom: 1rem;
}

.blog-post-title {
    font-size: var(--kv2-font-hero);
    line-height: var(--kv2-line-hero);
    letter-spacing: var(--kv2-track-hero);
    margin-bottom: 0.8rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;

    opacity: 0.55;

    font-size: var(--kv2-font-meta);
}

.meta-divider {
    opacity: 0.4;
}

/* =========================================
FEATURED IMAGE
========================================= */

.blog-post-featured-image {
    margin-bottom: 2.5rem;
}

.blog-post-featured-image img {
    width: 100%;
    max-height: 560px;

    object-fit: cover;

    display: block;

    border-radius: 28px;
}

/* =========================================
TYPOGRAPHY SYSTEM
========================================= */

.typography-content {
    max-width: 720px;
    margin: 0 auto;

    font-size: var(--kv2-font-body);
    line-height: var(--kv2-line-body);

    color: rgba(255,255,255,0.84);
}

.typography-content p {
    margin-bottom: 1.5rem;
}

.typography-content h2,
.typography-content h3,
.typography-content h4 {
    line-height: 1.25;

    margin-top: 2.2rem;
    margin-bottom: 1rem;

    color: #ffffff;
}

.typography-content h2 {
    font-size: var(--kv2-font-section-title);
}

/* Premium manual-translation information */
.blog-translation-panel {
    position: relative;
    margin: 34px 0 28px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 196, 139, 0.16);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(24, 34, 29, 0.78), rgba(13, 20, 17, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), inset 18px 0 42px rgba(89, 145, 89, 0.035);
}

.blog-translation-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(transparent, rgba(130, 196, 122, 0.7), transparent);
}

.blog-translation-panel__header,
.blog-translation-panel__body,
.blog-translation-panel__meta,
.blog-translation-panel__actions,
.blog-translation-rating__buttons {
    display: flex;
}

.blog-translation-panel__header { align-items: center; gap: 12px; margin-bottom: 18px; }
.blog-translation-panel__header > svg { width: 22px; height: 22px; color: #91c58a; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.blog-translation-panel__eyebrow { margin: 0 0 2px; color: rgba(145, 197, 138, 0.82); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.blog-translation-panel h2 { margin: 0; color: rgba(240, 244, 239, 0.92); font-size: 15px; line-height: 1.3; }
.blog-translation-panel__body { align-items: flex-end; justify-content: space-between; gap: 24px; }
.blog-translation-panel__meta { flex: 1; gap: 34px; }
.blog-translation-panel__meta div { display: grid; gap: 4px; }
.blog-translation-panel__meta span { color: rgba(218, 228, 216, 0.5); font-size: 11px; }
.blog-translation-panel__meta strong { color: rgba(238, 243, 237, 0.85); font-size: 13px; font-weight: 600; }
.blog-translation-panel__actions { align-items: flex-end; gap: 18px; }
.blog-translation-action,
.blog-translation-rating button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; border: 1px solid rgba(167, 201, 159, 0.17); border-radius: 10px; padding: 7px 11px; color: rgba(230, 238, 228, 0.78); background: rgba(255, 255, 255, 0.025); font: inherit; font-size: 11px; text-decoration: none; cursor: pointer; }
.blog-translation-action:hover,
.blog-translation-rating button:hover { color: #b9e3b1; border-color: rgba(150, 207, 139, 0.38); background: rgba(115, 176, 106, 0.08); }
.blog-translation-action:focus-visible,
.blog-translation-rating button:focus-visible { outline: 2px solid rgba(147, 205, 137, 0.65); outline-offset: 2px; }
.blog-translation-action svg,
.blog-translation-rating button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.blog-translation-rating { display: grid; gap: 8px; }
.blog-translation-rating > p { margin: 0; color: rgba(218, 228, 216, 0.58); font-size: 11px; }
.blog-translation-rating__buttons { gap: 7px; }
.blog-translation-rating button:disabled { cursor: default; opacity: .5; }
.blog-translation-rating__status { min-height: 1.2em; color: #a9d7a2 !important; }
.blog-translation-fallback { margin: 28px 0; padding: 11px 14px; border-left: 2px solid rgba(155, 190, 149, 0.45); color: rgba(224, 232, 222, 0.64); background: rgba(255, 255, 255, 0.018); font-size: 12px; line-height: 1.6; }

@media (max-width: 768px) {
    .blog-translation-panel { padding: 17px; }
    .blog-translation-panel__body,
    .blog-translation-panel__actions { align-items: stretch; flex-direction: column; }
    .blog-translation-panel__meta { gap: 20px; }
    .blog-translation-rating__buttons { flex-wrap: wrap; }
}

@media (max-width: 390px) {
    .blog-translation-panel__meta { flex-direction: column; gap: 12px; }
    .blog-translation-rating__buttons { flex-direction: column; }
    .blog-translation-rating button,
    .blog-translation-action { justify-content: center; width: 100%; }
}

.typography-content h3 {
    font-size: var(--kv2-font-card-title);
}

.typography-content img {
    width: 100%;
    display: block;

    border-radius: 22px;

    margin: 2rem 0;
}

.typography-content blockquote {
    margin: 2rem 0;
    padding-left: 1.2rem;

    border-left: 2px solid rgba(255,255,255,0.18);

    opacity: 0.82;
    font-style: italic;
}

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

/* =========================================
INLINE SONG EMBED
========================================= */

.typography-content .inline-song-embed {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    max-width: 100%;

    margin: 0.75rem 0 1.5rem;
    padding: 0;

    border: 0;
    border-radius: 999px;

    background: transparent;
    color: var(--kv2-color-gold, #d4af37);

    cursor: pointer;
    white-space: normal;
}

.typography-content .inline-song-artwork {
    display: none;
}

.typography-content .inline-song-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.typography-content .inline-song-meta::before {
    content: "\266A";
    color: var(--kv2-color-gold, #d4af37);
    font-weight: 900;
}

.typography-content .inline-song-meta h4,
.typography-content .inline-song-meta p {
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.typography-content .inline-song-meta h4 {
    color: #ffffff;
    font-size: var(--kv2-font-caption);
    line-height: 1.4;
}

.typography-content .inline-song-meta h4::after {
    content: " \00B7";
    margin-left: 4px;
    color: var(--kv2-color-gold, #d4af37);
}

.typography-content .inline-song-meta p {
    color: var(--kv2-color-gold, #d4af37);
    font-size: var(--kv2-font-caption);
    font-weight: 800;
    line-height: 1.4;
    opacity: 1;
}

.typography-content .inline-song-btn {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* =========================================
READING PROGRESS
========================================= */

.reading-progress-bar {
    position: fixed;

    top: 0;
    left: 0;

    width: 0%;
    height: 2px;

    z-index: 9999;

    background: #ffffff;

    transition: width 0.12s linear;
}

/* =========================================
POST TAGS
========================================= */

.blog-post-footer {
    margin-top: 3rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-pill {
    padding: 0.55rem 0.9rem;

    border-radius: 999px;

    background: rgba(255,255,255,0.06);

    font-size: var(--kv2-font-caption);
}

/* =========================================
COMMENTS SYSTEM
========================================= */

.comments-section {
    max-width: 720px;
    margin: 4rem auto 0;
}

.comments-header {
    margin-bottom: 1.5rem;
}

.comments-header h2 {
    font-size: var(--kv2-font-section-title);
}

.comment-form textarea {
    width: 100%;

    min-height: 120px;

    resize: vertical;

    padding: 1rem;

    border-radius: 18px;
}

.comment-submit-btn {
    margin-top: 1rem;
}

.comment-item {
    margin-top: 1.5rem;
    padding: 1.2rem;

    border-radius: 20px;

    background: rgba(255,255,255,0.03);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    margin-bottom: 0.8rem;

    opacity: 0.6;

    font-size: var(--kv2-font-meta);
}

.empty-comments {
    opacity: 0.55;
}

/* =========================================
BLOG LISTING PAGE
========================================= */

.blog-header {
    padding: 0.5rem 0 1.8rem;
    text-align: center;
}

.blog-header h1 {
    font-size: var(--kv2-font-hero);
    line-height: var(--kv2-line-hero);
    letter-spacing: var(--kv2-track-hero);
    margin-bottom: 0.4rem;
}

.section-description {
    max-width: 620px;
    margin: 0 auto;

    opacity: 0.62;

    line-height: 1.7;

    font-size: var(--kv2-font-body);
}

/* =========================================
FEATURED BLOG
========================================= */

.featured-blog-section {
    margin-bottom: 2.5rem;
}

.featured-blog-card {
    display: grid;
    grid-template-columns: 1fr 0.9fr;

    text-decoration: none;
    color: inherit;

    background: rgba(255,255,255,0.035);

    border-radius: 30px;

    overflow: hidden;

    transition: 0.3s ease;
}

.featured-blog-card:hover {
    transform: translateY(-3px);
}

.featured-blog-image {
    min-height: 320px;
}

.featured-blog-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.featured-blog-content {
    padding: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-blog-content h2 {
    font-size: var(--kv2-font-section-title);
    line-height: var(--kv2-line-section-title);

    margin: 0.8rem 0;
}

.featured-blog-content p {
    opacity: 0.7;
    line-height: 1.8;

    margin-bottom: 1.5rem;

    font-size: var(--kv2-font-body);
}

.featured-read-more {
    opacity: 0.75;
    font-size: var(--kv2-font-button);
}

/* =========================================
BLOG GRID
========================================= */

.blog-grid-section {
    padding-bottom: 5rem;
}

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 1.5rem;
}

/* =========================================
BLOG CARD
========================================= */

.blog-card {
    background: rgba(255,255,255,0.035);

    border-radius: 24px;

    overflow: hidden;

    transition: 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
}

.blog-card-link {
    display: block;

    color: inherit;
    text-decoration: none;
}

.blog-card-image {
    aspect-ratio: 16 / 10;

    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.blog-card-content {
    padding: 1.2rem;
}

.blog-card-category {
    font-size: var(--kv2-font-meta);

    letter-spacing: var(--kv2-track-meta);

    opacity: 0.65;

    margin-bottom: 0.8rem;
}

.blog-card-title {
    font-size: var(--kv2-font-card-title);
    line-height: var(--kv2-line-card-title);

    margin-bottom: 0.8rem;
}

.blog-card-meta {
    font-size: var(--kv2-font-meta);

    opacity: 0.55;

    margin-bottom: 0.8rem;
}

.blog-card-excerpt {
    line-height: var(--kv2-line-body);

    opacity: 0.72;

    margin-bottom: 1.2rem;

    font-size: var(--kv2-font-small);
}

.blog-read-more {
    opacity: 0.75;
    font-size: var(--kv2-font-button);
}

/* =========================================
EMPTY STATE
========================================= */

.empty-blog-state {
    text-align: center;

    padding: 4rem 2rem;

    opacity: 0.65;
}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .featured-blog-card {
        grid-template-columns: 1fr;
    }

    .featured-blog-content {
        padding: 1.5rem;
    }

}

@media (max-width: 768px) {

    .blog-header {
        padding-top: 0.5rem;
    }

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

    .blog-detail-section {
        padding-top: 1rem;
    }

    .blog-post-title {
        font-size: var(--kv2-font-page-title);
    }

    .typography-content {
        font-size: var(--kv2-font-body);
        line-height: var(--kv2-line-body);
    }

    .typography-content .inline-song-embed {
        flex-direction: row;
        align-items: center;
    }

}

/* =========================================
COMMENTS SYSTEM EXTENSION
Cinematic Minimalist Design
========================================= */



/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.03);
    border-radius: 24px;
    margin-bottom: 2rem;
}

.login-prompt p {
    margin-bottom: 1rem;
    opacity: 0.7;
}

.login-prompt-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    color: white;
    text-decoration: none;
    transition: 0.25s ease;
}

.login-prompt-link:hover {
    background: rgba(255,255,255,0.2);
}

/* Comment Form Wrapper */
.comment-form-wrapper {
    margin-bottom: 2.5rem;
}

.comment-form-textarea,
.reply-form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    font-size: var(--kv2-font-small);
    resize: vertical;
    transition: 0.25s ease;
}

.comment-form-textarea:focus,
.reply-form-textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.06);
}

.comment-form-actions {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
}

.comment-submit-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 999px;
    color: white;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: var(--kv2-font-button);
}

.comment-submit-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Reply Form */
.reply-form-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.reply-form-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.reply-submit-btn,
.reply-cancel-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: var(--kv2-font-button);
    transition: 0.25s ease;
}

.reply-submit-btn {
    background: rgba(255,255,255,0.15);
    color: white;
}

.reply-submit-btn:hover {
    background: rgba(255,255,255,0.25);
}

.reply-cancel-btn {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
}

.reply-cancel-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Comment Item */
.comment-item,
.reply-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    transition: 0.2s ease;
}

.comment-item:hover,
.reply-item:hover {
    background: rgba(255,255,255,0.05);
}

/* Avatar */
.comment-avatar {
    flex-shrink: 0;
}

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

.comment-avatar.small img {
    width: 32px;
    height: 32px;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--kv2-font-card-title);
}

.avatar-placeholder.small {
    width: 32px;
    height: 32px;
    font-size: var(--kv2-font-small);
}

/* Comment Main Content */
.comment-main {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    font-size: var(--kv2-font-small);
}

.comment-date {
    font-size: var(--kv2-font-caption);
    opacity: 0.5;
}

/* Comment Badges */
.comment-badge {
    font-size: var(--kv2-font-caption);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}

.comment-badge.pending {
    background: rgba(255,193,7,0.2);
    color: rgba(255,210,120,0.95);
}

.comment-badge.hidden {
    background: rgba(220,53,69,0.2);
    color: rgba(255,120,120,0.9);
}

/* Comment Content */
.comment-content {
    font-size: var(--kv2-font-small);
    line-height: var(--kv2-line-small);
    margin-bottom: 0.8rem;
    color: rgba(255,255,255,0.85);
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.comment-action-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: var(--kv2-font-caption);
    padding: 0.2rem 0.4rem;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.comment-action-btn:hover {
    color: rgba(255,255,255,0.8);
}

.like-btn.liked {
    color: rgba(255,120,140,0.95)
}

.like-btn.liked .like-icon {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.delete-btn:hover {
    color: rgba(255,120,120,0.9);
}

.moderate-btn:hover {
    color: rgba(255,210,120,0.95)
}

/* Replies Container */
.replies-container {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reply-item {
    margin-top: 0.5rem;
}

/* Empty State */
.empty-comments {
    text-align: center;
    padding: 3rem 2rem;
    opacity: 0.6;
}

.empty-comments p {
    margin-bottom: 0;
}

/* Optimistic UI States */
.comment-item.optimistic {
    opacity: 0.7;
    animation: fadeIn 0.3s ease;
}

.reply-item.optimistic {
    opacity: 0.7;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 0.7;
        transform: translateY(0);
    }
}

/* Loading State */
.comment-submit-btn.loading,
.reply-submit-btn.loading {
    opacity: 0.6;
    cursor: wait;
}

/* Hidden Utility */

.hidden {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comment-item,
    .reply-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .comment-header {
        gap: 0.5rem;
    }
    
    .comment-actions {
        gap: 0.6rem;
    }
    
    .replies-container {
        padding-left: 0.5rem;
    }
    
    .comment-action-btn {
        font-size: var(--kv2-font-caption);
    }
}
.kv2-profile-token-link {
  color: var(--color-accent-gold, #d4af37);
  font-weight: 800;
  text-decoration: none;
}

.kv2-profile-token-menu {
  position: absolute;
  z-index: 9999;
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 6px;
  background: rgba(12, 15, 17, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.kv2-profile-token-menu[hidden] {
  display: none;
}

.kv2-profile-token-menu__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 6px 8px;
  color: #fff;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.kv2-profile-token-menu__item[aria-selected="true"],
.kv2-profile-token-menu__item:hover {
  background: rgba(212, 175, 55, 0.16);
}

.kv2-profile-token-menu__item span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--color-accent-gold, #d4af37);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.kv2-profile-token-menu__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kv2-profile-token-menu__item strong,
.kv2-profile-token-menu__item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kv2-profile-token-menu__item small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.kv2-anchor-highlight {
  animation: kv2-anchor-pulse 2.8s ease;
}

@keyframes kv2-anchor-pulse {
  0%, 100% { box-shadow: none; }
  18%, 70% { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.24); }
}

/* Modern scoped comment UI for blog detail pages. */
.comments-section {
    border: 1px solid rgba(155, 204, 158, 0.14);
    border-radius: 22px;
    padding: clamp(1rem, 2.4vw, 1.35rem);
    border-color: rgba(155, 204, 158, 0.14);
    background:
        radial-gradient(circle at top left, rgba(119, 172, 122, 0.08), transparent 26rem),
        rgba(8, 18, 15, 0.72);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
}

.comments-header {
    align-items: flex-end;
    gap: 12px;
}

.comments-count {
    color: rgba(166, 219, 161, 0.86);
}

.blog-comment-trigger-wrapper,
.blog-comment-form-wrapper,
.blog-reply-form-container {
    margin: 16px 0;
}

.blog-comment-trigger-wrapper {
    display: none;
}

.blog-comment-composer-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.blog-comment-composer-main {
    min-width: 0;
}

.blog-comment-composer-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(240, 252, 239, 0.95);
    background: linear-gradient(145deg, rgba(40, 68, 56, 0.9), rgba(8, 13, 12, 0.95));
    font-size: var(--kv2-font-small);
    font-weight: 850;
}

.blog-comment-composer-avatar--reply {
    width: 34px;
    height: 34px;
    font-size: var(--kv2-font-caption);
}

.blog-comment-composer-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-comment-trigger-btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    border: 1px solid rgba(185, 221, 183, 0.14);
    border-radius: 18px;
    padding: 0 14px;
    color: rgba(225, 238, 225, 0.72);
    background: rgba(255, 255, 255, 0.035);
    text-align: left;
}

.blog-comment-trigger-btn:hover,
.blog-comment-trigger-btn:focus-visible {
    border-color: rgba(155, 214, 151, 0.28);
    background: rgba(255, 255, 255, 0.055);
}

.trigger-icon {
    opacity: 0.7;
}

.blog-comment-form-glass,
.blog-reply-form-glass {
    border: 1px solid rgba(185, 221, 183, 0.14);
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
}

.blog-comment-form-header,
.blog-reply-form-header {
    margin: 0 0 6px;
    color: rgba(247, 252, 247, 0.92);
}

.blog-comment-form-close,
.blog-reply-form-close {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(185, 221, 183, 0.12);
    border-radius: 999px;
    color: rgba(225, 238, 225, 0.72);
    background: rgba(255, 255, 255, 0.045);
}

.blog-comment-form-textarea,
.blog-reply-form-textarea {
    min-height: 38px;
    border: 0;
    border-radius: 16px;
    padding: 8px 10px;
    color: rgba(244, 251, 244, 0.94);
    background: transparent;
    resize: vertical;
    transition: min-height 180ms ease;
}

.blog-reply-form-textarea {
    min-height: 36px;
}

.blog-comment-form-wrapper.kv2-comment-composer--active .blog-comment-form-textarea,
.blog-comment-form-wrapper.kv2-comment-composer--has-text .blog-comment-form-textarea {
    min-height: 70px;
}

.blog-reply-form-container.kv2-comment-composer--active .blog-reply-form-textarea,
.blog-reply-form-container.kv2-comment-composer--has-text .blog-reply-form-textarea {
    min-height: 56px;
}

.blog-comment-form-textarea:focus,
.blog-reply-form-textarea:focus {
    outline: 2px solid rgba(137, 205, 139, 0.34);
    outline-offset: 2px;
}

.blog-comment-form-actions,
.blog-reply-form-actions {
    display: none;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.blog-comment-form-wrapper.kv2-facebook-composer {
    margin: 14px -2px 0;
}

.blog-comment-form-wrapper.kv2-facebook-composer .kv2-facebook-composer__send {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
}

.blog-comment-form-wrapper.kv2-facebook-composer [data-kv2-composer-cancel] {
    color: #a9e6a0;
    background: transparent;
}

.blog-comment-form-wrapper.kv2-comment-composer--active .blog-comment-form-actions,
.blog-comment-form-wrapper.kv2-comment-composer--has-text .blog-comment-form-actions,
.blog-reply-form-container.kv2-comment-composer--active .blog-reply-form-actions,
.blog-reply-form-container.kv2-comment-composer--has-text .blog-reply-form-actions,
.blog-reply-form-container--open .blog-reply-form-actions {
    display: flex;
}

.blog-comment-submit-btn,
.blog-reply-submit-btn {
    min-height: 34px;
    border: 1px solid rgba(155, 214, 151, 0.34);
    border-radius: 999px;
    padding: 0 16px;
    color: #06140e;
    background: linear-gradient(135deg, #a9e6a0, #5ebd72);
    box-shadow: 0 8px 20px rgba(62, 142, 82, 0.22);
}

.blog-comment-cancel-btn,
.blog-reply-cancel-btn {
    min-height: 34px;
    border: 1px solid rgba(185, 221, 183, 0.14);
    border-radius: 999px;
    padding: 0 14px;
    color: rgba(225, 238, 225, 0.72);
    background: rgba(255, 255, 255, 0.045);
}

.blog-comments-list {
    display: grid;
    gap: 14px;
}

.blog-comment-item,
.blog-reply-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.blog-comment-avatar {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(240, 252, 239, 0.95);
    background: linear-gradient(145deg, rgba(40, 68, 56, 0.9), rgba(8, 13, 12, 0.95));
    text-decoration: none;
}

.blog-comment-avatar img,
.blog-comment-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    object-fit: cover;
}

.blog-comment-main {
    min-width: 0;
}

.blog-comment-header {
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.blog-comment-author {
    color: rgba(247, 252, 247, 0.96);
    font-weight: 800;
}

.blog-comment-date {
    color: rgba(214, 228, 214, 0.58);
}

.blog-comment-content {
    display: inline-block;
    border-radius: 16px;
    padding: 8px 11px;
    color: rgba(235, 244, 235, 0.84);
    background: rgba(255, 255, 255, 0.06);
    line-height: 1.5;
}

.blog-comment-actions {
    gap: 8px;
    margin-top: 8px;
}

.blog-comment-action-btn,
.blog-replies-toggle-btn {
    min-height: 30px;
    border: 0;
    border-radius: 999px;
    padding: 0 8px;
    color: rgba(216, 230, 216, 0.72);
    background: transparent;
}

.blog-comment-action-btn:hover,
.blog-comment-action-btn:focus-visible,
.blog-replies-toggle-btn:hover,
.blog-replies-toggle-btn:focus-visible,
.blog-like-btn.liked,
.blog-like-btn.is-liked {
    color: #a9e6a0;
    background: rgba(122, 190, 125, 0.1);
}

.blog-replies-container {
    margin-top: 12px;
    padding-left: 14px;
    border-left: 1px solid rgba(155, 214, 151, 0.22);
    display: grid;
    gap: 12px;
}

.blog-reply-item {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 12px 0 0;
    border-width: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.blog-reply-item .blog-comment-avatar {
    width: 32px;
    height: 32px;
}

.empty-comments {
    border: 1px dashed rgba(185, 221, 183, 0.16);
    border-radius: 18px;
    color: rgba(225, 238, 225, 0.62);
    background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 768px) {
    .comments-section {
        padding: 14px;
        border-radius: 18px;
    }

    .blog-comment-composer-row,
    .blog-comment-item,
    .blog-reply-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .blog-comment-composer-avatar,
    .blog-comment-avatar {
        width: 34px;
        height: 34px;
    }

    .blog-comment-item {
        padding: 12px;
        border-radius: 18px;
    }

    .blog-replies-container {
        padding-left: 10px;
    }

    .blog-comment-form-actions,
    .blog-reply-form-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* Blog comment actions reuse the approved compact Status presentation. */
:root :is(.blog-comment-item, .blog-reply-item) .kv2-action-bar--compact-comment {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  margin-top: 4px;
  gap: 4px;
}
