/**
 * Comments template 2 — social cards (avatar, inline meta, vote pills).
 */

.ah-comments-template-2 {
    --ah-vote-up: #0d9f4c;
    --ah-vote-down: #d93025;
}

.ah-comments-template-2 .ah-comments-heading {
    margin-bottom: clamp(1rem, 3vw, 1.35rem);
}

.ah-comments-template-2 .comments-box-title {
    font-size: clamp(1.05rem, 2.6vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--ahura-c-text-primary, #111) 10%, transparent);
    color: var(--ahura-c-text-primary, #111);
}

.ah-comments-template-2 .ah-comments-thread-wrap ol.comment-list {
    list-style: none;
    margin: 0;
    padding-block: clamp(0.5rem, 1.8vw, 1rem);
    padding-inline: clamp(0.35rem, 1.5vw, 1rem);
}

.ah-comments-template-2 .ah-comment-card {
    display: flex;
    gap: clamp(0.85rem, 2.5vw, 1.15rem);
    align-items: flex-start;
    padding: clamp(1.2rem, 3.2vw, 1.65rem);
    margin-bottom: clamp(0.85rem, 2vw, 1rem);
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--ahura-c-text-primary, #111) 9%, transparent);
    background: var(--ahura-c-bg-primary, #fff);
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--ahura-c-text-primary, #111) 5%, transparent),
        0 12px 40px rgba(0, 0, 0, 0.06);
}

.ah-comments-template-2 .ah-comment-card__avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.ah-comments-template-2 .ah-comment-card__main {
    flex: 1;
    min-width: 0;
}

.ah-comments-template-2 .ah-comment-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.5rem;
}

.ah-comments-template-2 .ah-comment-card__identity {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.ah-comments-template-2 .ah-comment-card__author {
    font-size: 1rem;
    font-weight: 700;
}

.ah-comments-template-2 .ah-comment-card__author a {
    color: var(--ahura-c-text-primary, #111);
    text-decoration: none;
}

.ah-comments-template-2 .ah-comment-card__author a:hover {
    color: var(--ahura-accent-color, #1d67e8);
}

.ah-comments-template-2 .ah-comment-card__time {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ahura-c-text-secondary, #666);
}

.ah-comments-template-2 .ah-comment-card__reply {
    flex-shrink: 0;
}

.ah-comments-template-2 .ah-comment-card__reply .comment-reply-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--ahura-accent-color, #1d67e8) 35%, var(--ahura-c-border-primary, #ccc));
    color: var(--ahura-accent-color, #1d67e8);
    background: color-mix(in srgb, var(--ahura-accent-color, #1d67e8) 8%, transparent);
    transition: filter 0.15s ease, transform 0.12s ease;
}

.ah-comments-template-2 .ah-comment-card__reply .comment-reply-link:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.ah-comments-template-2 .ah-comment-card__content {
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--ahura-c-text-primary, #222);
}

.ah-comments-template-2 .ah-comment-card__content p:last-child {
    margin-bottom: 0;
}

.ah-comments-template-2 .ah-comment-card__votes {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px dashed color-mix(in srgb, var(--ahura-c-text-primary, #111) 10%, transparent);
}

.ah-comments-template-2 .ah-comment-vote {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--ahura-c-text-primary, #111) 12%, transparent);
    background: var(--ahura-c-bg-secondary, #f4f5f7);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ah-comments-template-2 .ah-comment-vote .count {
    font-variant-numeric: tabular-nums;
}

.ah-comments-template-2 .ah-comment-vote--up {
    color: var(--ah-vote-up);
}

.ah-comments-template-2 .ah-comment-vote--down {
    color: var(--ah-vote-down);
}

.ah-comments-template-2 .ah-comment-vote:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ah-comments-template-2 .ah-comment-vote .ah-isax {
    font-size: 1rem;
}

.ah-comments-template-2 .ah-comment-card__pending {
    margin: 0 0 0.65rem;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    background: color-mix(in srgb, #f9a825 22%, transparent);
    color: #6d4c00;
}

/* Thread nesting */
.ah-comments-template-2 .children {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    padding-inline-start: clamp(0.75rem, 3vw, 1.25rem);
    border-inline-start: 3px solid color-mix(in srgb, var(--ahura-accent-color, #1d67e8) 35%, var(--ahura-c-border-primary, #ddd));
}

.ah-comments-template-2 .children .ah-comment-card {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Respond box */
.ah-comments-template-2 .comment-respond {
    margin-top: clamp(1rem, 3vw, 1.5rem);
    padding: clamp(1rem, 3vw, 1.35rem);
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--ahura-c-text-primary, #111) 10%, transparent);
    background: var(--ahura-c-bg-primary, #fff);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.ah-comments-template-2 .comment-respond .comment-reply-title {
    margin-top: 0;
}

/* Closed state */
.ah-comments-template-2 .no-comments {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    font-weight: 600;
    background: color-mix(in srgb, #e6123d 12%, transparent);
    color: #b71c1c;
    border: 1px solid color-mix(in srgb, #e6123d 22%, transparent);
}
