.hidden-reply {
    display: none;
}

.replies-container.show-all .hidden-reply {
    display: block;
}



.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.stat-content {
    text-align: center;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-description {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

.comments-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comments-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 32px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.header-count {
    background: #3b82f6;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.comments-container {
    padding: 32px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-item {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 24px;
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.avatar-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.avatar-text.small {
    font-size: 12px;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.comment-author {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.comment-type {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-date {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.comment-content {
    margin-bottom: 16px;
}

.comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 8px;
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.comment-text.expanded {
    max-height: none;
}

.expand-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.expand-btn:hover {
    color: #1d4ed8;
}

.expand-btn.small {
    font-size: 11px;
}

.comment-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    gap: 16px;
}

.replies-count {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
}

.count-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.like-button {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.like-button:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    color: #374151;
}

.like-button.small {
    padding: 4px 8px;
    font-size: 11px;
}

.like-button svg {
    width: 14px;
    height: 14px;
}

.like-button.small svg {
    width: 12px;
    height: 12px;
}

.like-count {
    font-weight: 600;
}

.replies-section {
    margin-top: 20px;
    margin-left: 64px;
    position: relative;
}

.replies-section::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
    border-radius: 1px;
}

.replies-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reply-item {
    position: relative;
}

.reply-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.reply-avatar {
    width: 32px;
    height: 32px;
    background: #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.15);
}

.reply-body {
    flex: 1;
    min-width: 0;
}

.reply-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.reply-author {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.reply-type {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reply-date {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}

.reply-text-content {
    margin-bottom: 8px;
}

.reply-text {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    margin-bottom: 6px;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.reply-text.expanded {
    max-height: none;
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
}

.collapse-section {
    margin-top: 16px;
    text-align: center;
}

.collapse-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.collapse-btn:hover {
    background: #f8fafc;
    color: #374151;
}

.collapse-text {
    font-weight: 500;
}

.collapse-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.collapse-btn.expanded .collapse-icon {
    transform: rotate(180deg);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #9ca3af;
}

.empty-icon svg {
    width: 32px;
    height: 32px;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.empty-description {
    font-size: 14px;
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .comments-header {
        padding: 20px 24px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .comments-container {
        padding: 24px;
    }
    
    .comment-main {
        gap: 12px;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .avatar-text {
        font-size: 14px;
    }
    
    .replies-section {
        margin-left: 52px;
    }
    
    .replies-section::before {
        left: -26px;
    }
    
    .reply-avatar {
        width: 28px;
        height: 28px;
    }
    
    .avatar-text.small {
        font-size: 10px;
    }
} 